7 APPLICATION INSTRUCTIONS
7.23 File Register Read/Write Instructions
997
7
Writing 1-byte data to the file register
ZRWRB(P)
These instructions write the data in the lower bits of the specified device to the file register with the specified serial byte
number.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=ZRWRB(EN,s1,s2);
ENO:=ZRWRBP(EN,s1,s2);
FBD/LD
Instruction Execution condition
ZRWRB
ZRWRBP
Operand Description Range Data type Data type (label)
(s1) Serial byte number of the file register to be written 0 to 4294967295 32-bit unsigned binary ANY32
(s2) Device number where the write data is stored -32768 to 32767 16-bit signed binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(s2)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)