29 Applied Instructions (Data Table Operation)
29.3 ZONE / Zone Control
690
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
2. Program example 2
In the program example below, the BCD data set in X020 to X057 is controlled by the zone from "-10000" to
"10000", and the controlled value is output to D11 and D10 when X000 turns ON.
Operation
1) In the case of "(D1, D0) < 0", "(D1, D0) + (-10000)" is output to
(D11, D10).
2) In the case of "(D1, D0) = 0", "0" is output to (D11, D10).
3) In the case of "0 < (D1, D0)", "(D1, D0) + 10000" is output to
(D11, D10)
X000
DBIN
EN
s
ENO
d
DZONEP
EN ENO
d
s1
s2
s3
K8X020
D0
K-10000
K10000
D0
D1
[Structured ladder/FBD] [ST]
DBIN(X000,K8X020,D0);
DZONEP(X000,K-10000,K10000,D0,D1);
Input
0
Output
10000
-10000
10000
-10000