Programming instructions

NC Programming 17VRS Special NC Functions
11-7
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
An NC variable can be used as parameter instead of the constant.
A mathematical calculation cannot be used instead of a constant or an
NC variable.
The optional parameters do not need to be set.
The commas used to separate the parameters must always be used.
The zero offset values for "G50/G51," "G52" and the active zero offset
value
cannot
be written using the OTD command.
Example NC program - read zero offset table data
@100=OTD(,,,,1) Read total active X axis zero offset
X=OTD(1,0,2,4,1) Traverse X axis to the position which is
located in the ZO table in NC memory A
for process 0 of the 2nd zero offset table
for G54
@80=G(4) Read G-code of zero offset
@80=@80-50 Prepare value for the OTD command
@100=OTD(,,,@080,1) Read active X axis zero offset for the
ZO entry corresponding to the active
G-code (G50-G59)
Example NC program - write zero offset table data
OTD(,,,4,1)=SQRT(X*X+Y*Y) Assign the result of the declared calcula-
tion to the X axis entry for the offset per
G54 in the current NC memory for the
active process in the active zero point ta-
ble.
OTD(,,,4,1)=@100+OTD(,,,,1) Calculate the new X axis zero offset value
corresponding to G54 from the contents of
the variable 100 and the active X axis zero
offset.
CAUTION
The read zero point data is in machine coordinates.
General requirements for the
OTD command