·528·
Installation manual
CNC 8060
CNC 8065
10.
CNC VARIABLES.
(REF: 1402)
Understanding how variables work.
Accessing the variables. from the PLC. Accessing numeric variables
When the PLC accesses numeric variables that can have decimals, the values will be given
in PLC units.
Example of how to access synchronous variables.
Reading the actual (real) feedrate.
<condition> = CNCRD (G.FREAL, R12, M12)
The PLC activates mark M12 when the operation begins and keeps it active until the operation
ends.
CPS R12 GT 2000 = ···
There is no need to wait for consulting the data because the synchronous variables are resolved
immediately.
It resets the clock enabled by the PLC with the value contained in register R13.
<condition> = CNCWR (R13, PLC.TIMER, M13)