7 APPLICATION INSTRUCTIONS
7.12 Data Control Instructions
865
7
Zone control of 16-bit binary data
ZONE(P)(_U)
These instructions add a bias value to the specified input value (16-bit binary).
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=ZONE(EN,s1,s2,s3,d);
ENO:=ZONEP(EN,s1,s2,s3,d);
ENO:=ZONE_U(EN,s1,s2,s3,d);
ENO:=ZONEP_U(EN,s1,s2,s3,d);
FBD/LD
Instruction Execution condition
ZONE
ZONE_U
ZONEP
ZONEP_U
Operand Description Range Data type Data type (label)
(s1) ZONE(P) Negative bias value to be added to the input
value
-32768 to 32767 16-bit signed binary ANY16_S
ZONE(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(s2) ZONE(P) Positive bias value to be added to the input value -32768 to 32767 16-bit signed binary ANY16_S
ZONE(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(s3) ZONE(P) Input value used for zone control -32768 to 32767 16-bit signed binary ANY16_S
ZONE(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(d) ZONE(P) Device for storing the output value controlled by
zone control
16-bit signed binary ANY16_S
ZONE(P)_U 16-bit unsigned binary ANY16_U
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)
(s3)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)