9 - 18
MELSEC-
A
9 PROGRAM EXAMPLES
Read remote input (RX) (X100 to X15F)
Confirm R2 data link state
Change to bank 0
Read RXn0 to RX(n+5)
F
to X100 to X15F
Read R2 data link state
(SW0080)
Error LED
Error LED
Error LED
Write Y100 to Y15F
in RYn0 to RY(n+5)
Station No. 1 R2 data
link normal
Station No. 1 R2 data
link abnormal
Station No. 2 R2 data
link normal
Station No. 2 R2 data
link abnormal
Station No. 3 R2 data
link normal
Station No. 3 R2 data
link abnormal
Change to bank 0
Write remote output (RY) (Y100 to Y15F)
(b) Program to change to bank 0
Specify partial
refresh
Specif
y
bank 0
Execute partial
refresh
(c) Program to change to bank 2
Specify partial
refresh
Specify bank 2
Execute partial
refresh