6. BASIC INSTRUCTIONS
6 − 90
MELSEC-A
(4) Partial refresh processing is still performed if the SEG instruction is executed
with the CPU set in X/Y direct mode, but in this case, input (X)/output (Y)
ON/OFF status does not change.
(5) Setting B0 (0 point) refreshes all devices in the unit, beginning with the head
device number specified.
Program Examples SEG
(1) The following example refreshes Y10 to Y27.
(2) Pulse output using the SET and RST instructions in direct mode should be
changed as shown below when the I/O control is changed to refresh mode.
CAUTION
Pulse signals cannot be output using the programs above when the A2CPU is used.
K4 K4
SEG Y010 B003
SET M9052
X001
0
• Coding
0 LD X001
1 SET M9052
4 SEG K4Y010 K4B003
11 END
SET Y022
X001
0
RST Y022
K4 K4
SEG Y020 B001
SET M9052
X001
0
SET Y022
K4 K4
SEG Y020 B001
RST Y022