Programming instructions

NC Programming 17VRS Special NC Functions
11-13
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
11.5 Reading and Writing D Corrections from the NC Program
‘DCD’
The DCD command enables the D corrections to be read and written from
the NC program.
DCD([0..6],[1..99],[1..4])
P S V
Value
Storage
Process
Name Sym-
bol
Range Meaning
Process P 0..6 The active process is addressed if a process number is not
specified.
Memory S 1..99 The active memory is addressed if the parameter is not specified
Value W 1..4 1 = value of the length correction L1
2 = value of the length correction L2
3 = value of the length correction L3
4 = value of the radius correction R
An NC variable can be used instead of the constant.
A mathematical calculation cannot be used instead of a constant or a
NC variable.
The optional parameters do not need to be set.
The commas that are used for separating the parameters must always
be used.
The parameter specifications must be inside the valid range. The NC
does not check the validity before the program execution. If a parameter
value is outside the valid range, the NC interrupts program execution and
issues an error message.
Example
@102=DCD(,3,4) The variable 102 obtains the radius correc-
tion value R of the D memory 3.
DCD(1,2,1)=Z-10 The value ‘Z10’ is written to the length cor-
rection value L1 of the D memory 2 of proc-
ess 1
DCD(,,3)=DCD(,,3)+1 The value L3 of the active D memory and of
the active process is incremented by 1.
Syntax
General requirements for the
DCD command
Tests during the access