Programming instructions
11-2
Special NC Functions NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
The meaning of the SERCOS parameters (group letter S) and their func-
tions are described by the SERCOS committee in the publication
"SERCOS Interface."
The meaning of the SERCOS parameters (group letter P) and their func-
tions are described in the documentation for the SERCOS digital drive.
•
The reading or writing of drive data using the "AXD command" should
be programmed in a separate NC-block which does not contain any
other NC-commands.
•
The reading or writing of drive data using the "AXD command" always
takes place at the end of the NC-block. In other words, the assignment
of a value to a NC-variable into which the drive datum was read cannot
be used in the same NC-block as the basis for deciding whether a
conditional branch/jump is to be performed.
•
When drive data is read or written using the "AXD" command, NC
block preprocessing is interrupted. Thus if tool path compensation
(G41, G42) is active, it is considered to be finished. Likewise,
"contouring mode (acceleration)" (G08) is no longer possible.
•
A drive data which has been read can only be assigned to a NC vari-
able and not to an address letter. The expression which is to be as-
signed can only consist of the "AXD command." No other operands or
operators are permitted.
•
When the "AXD command" is used to write drive data, the assigned
expression can be a formula or a constant.
NOTE
Please remember that any parameters which you modify
using the "AXD command" will henceforth be active on
the drive and will use the new value in all operating
modes. For this reason, be certain to use the CNC user
interface to a save default parameter set which is known
to work properly as a backup on your hard drive.
Example NC program - AXD command
Activating friction torque compensation allows one to compensate for po-
sition deviations at circle quadrant transitions In the example shown here,
the active gain factor is increased from 4 to 7.
T11 BSR .M6
Tool change
SF D10
G00 G90 G54 G06 G08 X199 Y136 Z5 Start position
S5000 M03
Spindle ON
@50=AXD(X:S-0-0104)
Read active gain factor for X axis
@51=AXD(Y:S-0-0104)
Read active gain factor for Y axis
AXD(X:S-0-0104)=7*1000
New gain factor for the X axis
AXD(Y:S-0-0104)=7*1000
New gain factor for the Y axis
AXD(X:S-0-0155)=70
Friction torque compensation for
X
AXD(Y:S-0-0155)=110
Friction torque compensation for
Y
G01 Z-5 F1000
Lower cutter into material
G41 X199 Y141 F8000
Starting point for circ. machining
G03 X180 Y122 I199 J122
Insertion circle
G01 X180 Y100
Transition element
G02 X180 Y100 I100 J100 Full circle
∅
160
G01 X180 Y77
Transition element
G03 X198 Y59 I198 J77
Withdrawal circle
G00 Z5
Cutter to safety distance
AXD(X:S-0-0104)=@50
Old gain factor for the X axis
AXD(Y:S-0-0104)=@51
Old gain factor for the Y axis
AXD(X:S-0-0155)=0
Friction torque comp. OFF for X
AXD(Y:S-0-0155)=0
Friction torque comp. OFF for Y
T0 BSR .M6
Tool change
RET
End of program
NC program