Programming instructions

NC Programming 17VRS Motion Blocks
4-49
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
NC-program Changeover Between Spindle and C Axis
The changeover between C axis mode and main spindle mode is per-
formed in terms of the NC syntax by programming the C-axis (Cxxx.xxx)
or the main spindle (M03 Sxxxx). If the C-axis is programmed in the fol-
lowing NC-block when the main spindle mode is active, the CNC per-
forms the changeover with the help of the SPS. NC-block preparation and
NC-block processing are stopped until the changeover operation is com-
pleted.
The same mechanism is active as is used in the changeover from C axis
mode to main spindle mode.
After the changeover from the main spindle mode to C-axis mode, all
the spindles active in the process must be traversed one time with
G90 absolute input data as absolute dimensions, before G91 input
data as incremental values can be used.
M19 S0 Orient main spindle
G00 G54 G90 X100 Z200 M03 S1000 Base position, spindle mode
Machining
G00 G17 G06 X100 Z250 C90 Base position, C-axis mode
G01 G91 X-40 C-270 RZ50 F1200 Machining
G00 G18 G54 G90 X120 Z200 M03 S1200 Base position, spindle mode
RET Return to program beginning
Approach Logic for Endlessly Rotating Rotary Axes
Modulo calculation is used for positioning endlessly rotating rotary axes.
Possible positioning methods:
Shortest wayG36
Positive direction G37
Negative direction G38
NOTE
Modulo calculation can only be used with absolute co-
ordinate programming (G90).
It does not have an effect on incremental coordinate
programming (G91).
The G36, G37, and G38 commands form the G code group „Rotary axis
approach logic“ (no. 21).
Changeover with a rotary-axis
capable main spindle drive
Modulo calculation