609
ZRWRB, ZRWRBP
1
2
3
4
4
6
7
8
7.18 Other instructions
7.18.5 ZRWRB, ZRWRBP
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program Example
(1) The following program reads the lower 8 bits of ZR16000 and the upper 8 bits of ZR16003, and stores them at D100 and
D101 when X0 is ON.
[Ladder Mode] [List Mode]
[Operation]
n : Serial byte number for the file register to be written (BIN 32 bits)
: Number of the device where the data to be written is stored (BIN 16 bits)
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101
The specified device number (serial byte number) exceeds the
available range.
–– –– –– ––
7.18.5 ZRWRB, ZRWRBP File regis ter direct 1-b yte write
7.18.5
ZRWRB, ZRWRBP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
n ––
––
Step Instruction Device
b15 b8 b7 b0
ZR16001
ZR16002
8F
H
25
H
32
H
34
H
42
H
12
H
00
H
93
H
ZR16000
ZR16003
25
H
D100
93
H
D101
00
H
00
H
b15 b8 b7 b0
Ser
ial byte No. 32000
(Lower 8 bits of ZR16000)
Serial byte No. 32007
(Upper 8 bits of ZR16003)
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
ZRWRB
ZRWRBP
n
n
ZRWRB
ZRWRBP
S
S
S
S