7. Basic Commands
SET
- 127 -
Program example
(1) Program to set Y8B (ON) when X8 turns ON, and reset Y8B (OFF) when X9 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD X9
11 RST Y8B
12 LD X8
13 SET Y8B
X8
X9
10
12
SET
Y8B
RST
Y8B
14
X8 (SET input) OFF
X9
(RST input) OFF
Y8B OFF
ON
ON
ON
Operation of SET and RST commands