7 Applied Instructions
7.23 Data Table Operation
710
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Program example
1. Program example 1
In the program example shown below, the BCD data set in X020 to X037 is controlled by the zone from 
"-1000" to "1000", and the controlled value is output to D1 when X000 turns ON.
Operation
1) In the case of "D0 < 0", "D0 + (-1000)" is output to D1.
2) In the case of "D = 0", "0" is output to D1.
3) In the case of "0 < D0", "D0 + 1000" is output to D1.
X000
BIN
EN
s
ENO
d
K4X020 D0
ZONEP
EN ENO
d
s1
s2
s3
K-1000
K1000
D0
D1
[Structured ladder] [ST]
BIN(X000,K4X020,D0);
D1:=ZONEP(X000,K-1000,K1000,D0);
Input
0
Output
1000
-1000
1000
-1000