6 - 158
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.19 Bit device set, reset functions (SET, RST)
Code SET, RST
Function Bit device set, reset functions
The specified device is turned ON/OFF.
Format
E
ON device (Y, M)
TY;S#
y
Device ON command
S
OFF device (Y, M)
TY;R#
y
Device OFF command
[Explanation]
(1) The specified device in the G-code program can be turned ON/OFF.
(2) Refer to Section 6.11.2 (2) for the usable device ranges.
[Program Example]
1) SET #M0 ; Turns ON device M0.
2) RST #M0 ; Turns OFF device M0.
3) SET #Y10 ; Turns ON device Y10.