7.17 Other Instructions
7.17.5 Writing 1 byte directly to file register
7-357
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
ZR
WRB
ZRWRB
(2) File register numbers correspond to serial byte numbers are as indicated below.
If n 12340 is specified, the data will be written to the lower 8 bits of ZR11170.
If n 43257 is specified, the data will be written to the upper 8 bits of ZR21628.
O
peration Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• A device number (serial byte number) that exceeds the allowable specification range has
been specified.
(Error code: 4101)
Program Example
In the following program, the data at the lower bits of Var_D101 are written to the lower bits of
ZR16000 and the upper bits of R16003 when X0 turns ON.
[Structured ladder]
Z
R0
S
er
i
a
l by
te
N
o
. 0
S
er
i
a
l by
te
N
o
. 1
S
er
i
a
l by
te
N
o
. 2
S
er
i
a
l by
te
N
o
. 3
Z
R1
S
er
i
a
l by
te
N
o
. 4
S
er
i
a
l by
te
N
o
. 5
S
er
i
a
l by
te
N
o
. 5000
S
er
i
a
l by
te
N
o
. 5001
S
er
i
a
l by
te
N
o
. 5002
S
er
i
a
l by
te
N
o
. 5003
S
er
i
a
l by
te
N
o
. 5004
S
er
i
a
l by
te
N
o
. 5005
S
er
i
a
l by
te
N
o
. 5006
S
er
i
a
l by
te
N
o
. 5007
Z
R2501
Z
R2502
Z
R2503
S
torage
d
est
i
nat
i
on
w
hen
an
even
num
b
er
i
s
spec
i
f
i
e
d
S
torage
d
est
i
nat
i
on
w
hen
an
o
dd
num
b
er
i
s
spec
i
f
i
e
d
Z
R2
Z
R2500
b15
b8b7
b0
b15
b8 b7
b0
Z
R11170
43
H
b15
b8 b7
b0
I
gnore
d
W
r
i
te
d
est
i
nat
i
on
spec
i
f
i
cat
i
on
n
12340
b15
b8 b7
b0
43
H
s
21
54
54
H
H
H
b15
b8 b7
b0
Z
R21628
50
H
b15
b8 b7
b0
I
gnore
d
W
r
i
te
d
est
i
nat
i
on
spec
i
f
i
cat
i
on
n
43257
b15
b8 b7
b0
50
H
s
43
H
12
H
43
H
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......