High level language
168
Example of how to use CNC variables.
P1=V.A.ORGT[10].Y Reads P1 for the zero
offset 10 on the Y axis
P1=V.G.EXTORG Reads P1 for the active
zero offset number
P1=V.G.TOOL Reads P1 for the active
tool number
P1=V.SP.PRGS Reads P1 for the
programmed S
P1=V.G.PRGF Reads P1 for the
programmed F
P1=V.A.ATIPPOS.Y Reads P1 for the
current Y axis
coordinate
Reads P1 for tool radius T10, corrector 1
P1=V.TM.TORT[10][1]+ V.TM.TOIT[10][1]
Reads
P1 for the tool length T10, corrector 1
P1=V.TM.TOLT[10][1]+ V.TM.TOKT[10][1]
Writes the tool radius T10 equal to 5.01 on the tool
table, and cancels the radius wear
V.TM.TORT[10][1]=5.01
V.TM.TOIT[10][1]=0
Writes the tool length T10 equal to 89.3 on the tool
table, and cancels the length wear
V.TM.TOLT[10][1]=89.3
V.TM.TOKT[10][1]=0
Instruction Meaning