Programming instructions

11-18
Special NC Functions NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
CAUTION
The DCD command can be used within an NC block for
reading any number of D corrections. However, only one D
correction can be written to at any one time.
DCD commands in parentheses are not permitted.
Handling MTD Commands
@100=MTD(110,1,1,1)
MTD(110,1,1,1)=@110
MTD(110,1,1,1)=@100+@110+@120
@100=MTD(110,1,1,1)+MTD(110,1,1,1)
@100=MTD(110,1,1,1)+MTD(110,1,1,1)+MTD(110,1,1,1)
@100=MTD(110,1,1,1) @110=MTD(110,1,1,1) @120=MTD(110,1,1,1)
MTD(110,1,1,1)=MTD(110,1,1,2)
MTD(110,1,1,1)=MTD(110,1,1,2)+MTD(110,1,1,3)
MTD(110,1,1,1)=@100 MTD(110,1,1,2)=@110 MTD(110,1,1,3)=@120
@100=(MTD(110,1,1,1)+@110)+@120
CAUTION
The MTD command can be used within an NC block for
reading any number of data elements from the machine
data. However, only one data element can be written to at
any one time.
MTD commands in parentheses are not permitted.
Allocations Between AXD, OTD, TLD, DCD and MTD Commands
AXD(X:P-7-3616)=MTD(110,1,1,1)+MTD(110,1,1,1)
AXD(X:P-7-3616)=OTD(,,,4,1)+OTD(,,,4,1)
AXD(X:P-7-3616)=TLD(,1,1,,0,6,)+TLD(,1,1,,0,6,)
AXD (X:P-7-3616)=DCD(,,1)+DCD(,,1)
MTD(110,1,1,1)=AXD(X:P-7-3616)
TLD(,1,1,,0,6,)=AXD(X:P-7-3616)
OTD(,,,4,1)=AXD(X:P-7-3616)
DCD(,,1)=AXD(X:P-7-3616)
NOTE
The restrictions for the individual commands must be ob-
served when allocations are made between the AXD,
OTD, TLD, DCD, and MTD commands.
Possible allocations - Examples
Illegal allocations - Examples
Possible allocations - Examples
Illegal allocations - Examples