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