Programming instructions

11-16
Special NC Functions NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Example
@100=MTD(250,1,2,4) Read machine data element
Page=250, L1=1, L2=2, EL=4
X=MTD(260,1,,5) Move X axis to the position that is speci-
fied in the machine data element. L2
does not exist.
@50=MTD(270,,3,6) L1 is of the PROCESS type. The ele-
ments of the active process are read.
A specific process specification is
possible.
@120=MTD(280,1,1,4)+4 Utilization in a calculation.
MTD(250,1,2,4)=@100 Write machine data element.
MTD(260,1,,5)=X Write the current X value to the machine
data element.
MTD(270,,3,6)=@110+@120 Allocate calculation.
NOTE
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 (see Chapter ‘Possible Allocations Between
AXD, TLD, OTD, DCD, MTD’ below).
11.7 Possible Allocations Between AXD, OTD, TLD, DCD, MTD
Some restrictions must be observed when AXD, OTD, TLD, DCD, or
MTD commands are handled.
Handling AXD Commands
AXD(X:P-7-3616)=@100
AXD(X:P-7-3616)=@100+@110+@120
@100=AXD(X:P-7-3616)
@100=AXD(X:P-7-3616) @110=AXD(X:P-7-3616)
@100=(AXD(X:P-7-3616)+@110)+@120
AXD(X:P-7-3616)=1000 AXD(X:P-7-3616)=1
AXD(X:P-7-3616)=AXD(X:P-7-3616)
CAUTION
Only one AXD command is permitted in an NC block.
Several AXD allocations in a line are not permitted. AXD
commands in parentheses are not permitted.
Possible allocations - Examples
Illegal allocations - Examples