Hey, I have an Okuma Horizontal Mill 600HII, with control system, OSP-P300M and had a couple questions about variables.

1. I was curious there are any common variables that are used in the machine that I cannot use for gauging variables.
I know that sometimes common variables are written to, to save different work offsets, but are there any that automatically have data saved in them?

2. Can local variables be used to store the gauging measurements for calculations and to output to a .TXT file (using the WRITE C and PUT commands)?
When creating and using local variables, do I need to declare them before hand?

For example;

.
.
CALL OO10 PMOD=1 PELI=1 PIN=1.25 (End Face gauging)
XM02 = VS29 (using local variable I created, XM02, to save system variable for measurement)
.
.
FWRITC MD1: Measurements.TXT: A
PUT 'X Measurement: '
PUT XM02
WRITE C
PUT '****'
WRITE C
CLOSE C

M30


I am not sure if the code above will work but please help if you know more about this.
Thank you

Karl