Positioning spindle in spindle-specific syntax (M19, POS)
Syntax: | ||
M19 | Positioning spindle | non-modal |
POS=.. | Spindle position in [°] | modal |
The spindle M function M19 executes spindle positioning and must be used in conjunction with the POS word. M03/M04 and the spindle speed (REV) in the same NC block are optional. However, a valid spindle speed (> 0) must be set. M19 may not be used together with M5 (spindle stop).
Spindle position POS in [°] is modal and need not be respecified if M19 is programmed again. If no spindle position was previously programmed, the motion is moved to position "zero” by default.
If the spindle is not rotating, positioning is executed with the shortest motion path.
Spindle positioning with M19 is only permitted for position-controlled spindles.
Programing Example
Programming of one spindle "S”:
N10 S[REV100 POS45 M19 M3] (Move cw at 100 rpm to position 45)
N20 S[M03 REV1000] (Spindle rotation cw at 1000 rpm)
N30 S[M19 M4 REV150] (Move ccw at 150 rpm to position 45)
(->POS is modal!)
N40 S[M05] (Spindle stop)
N50 S[M19] (Move on shortest path at 150 rpm to)
(position 45)
N60 S[REV200 M19 POS90] (Move on shortest path at 200 rpm to)
(position 90)
N70 S[M03 REV1000] (Spindle rotation cw at 1000 rpm)
N80 S[M05] (Spindle stop)
N90 M30 (Program end)
Programing Example
Programming two spindles "S2”and "S2”:
(For N10: Move both spindles cw at 1000 rpm to position 45)
N10 S[M03 REV200 M19 POS45] S2[M04 REV200 POS45 M19]
N20 S[REV1000] S2[REV1500] (S E FAC 1000 rpm)
(S2 ccw at 1500 rpm)
N30 S[M04] (S ccw 1000 rpm)
N40 S2[M19 POS0] (Move S2 ccw to position 0)
N50 S[M05 REV300] (S stop, store speed 300 rpm)
(For N60: Move S cw at 300 rpm to position 90,)
(For N60: Move S2 cw at 200 rpm to position 45)
N60 S[M03 M19 POS90] S2[M03 REV200 POS45 M19]
N80 M30 (Program end)
Channel parameter list [1]:
The synchronisation mode must be defined spindle-specific for M19. The M function is not executed for synchronisation mode "0” (NO_SYNCH).
:
spindel[0].bezeichnung S1
spindel[0].log_achs_nr 6
spindel[0].s_synch 0x00000001
spindel[0].m3_synch 0x00000002
spindel[0].m4_synch 0x00000002
spindel[0].m5_synch 0x00000008
spindel[0].m19_synch 0x00000001