7-329
ZONE(P),DZONE(P)
1
2
3
4
6
6
7
8
7.13 Data Control Instructions
7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))
Program Example
(1) The following program performs zone control by applying negative and positive bias values
of 100 to 100 for the data set at D0 and stores the result of control at D1 when X0 is turned
ON.
[Ladder Mode] [List Mode]
[Operation]
• The value (D0) + ( 100) is stored at D1 if D0 0.
D0 200 D1 300
• The value 0 is stored at D1 if D0 0.
• The value of (D0) + 100 is stored at D1 if 0 D0.
D0700D1800
(2) The following program performs zone control by applying negative and positive bias values
of 10000 to 10000 for the data set at D0 and D1 and stores the result of control at D10 and
D11 when X1 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
• The value (D1, D0) + ( 10000) is stored at (D11, D10) if (D1, D0) 0.
(D1,D0) 12345 (D11,D10) 22345
• The value 0 is stored at (D11, D10) if (D1, D0) 0.
• The value (D1, D0) + 10000 is stored at (D11, D10) if 0 (D1, D0).
(D1,D0) 50000 (D11,D10) 60000
Step
Instruction
Device
Example
Example
Step
Instruction
Device
Example
Example