Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Fundamentals
56 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Example:
X7
;No "=" required, 7 is a value, but the "=" character can
;also be used here
X4=20
;Axis X4 ("=" required)
CR=7.3
;2 letters ("=" required)
S1=470
;Speed for 1st spindle 470 rpm
M3=5
;Spindle stop for 3rd spindle
The extended address notation is only permitted for the following direct addresses:
Address Meaning
X, Y, Z Axis addresses
I, J, K Interpolation parameters
S Spindle speed
SPOS,
SPOSA
Spindle position
M Miscellaneous functions
H Auxiliary functions
T Tool number
F Feed
In the case of extended address notation, the number (index) can be substituted by a
variable for addresses M, H and S and for SPOS and SPOSA. The variable identifier is
enclosed in square brackets.
Example:
S[SPINU]=470
;Speed for the spindle, whose number is stored in the
;SPINU variables.
M[SPINU]=3
;Clockwise rotation for the spindle, whose number is stored in the
;SPINU variables.
T[SPINU]=7
;Selection of the tool for the spindle, whose number is stored in the
;SPINU variables.