7 Applied Instructions
7.23 Data Table Operation
711
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
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
VAR_01
*1
VAR_02
*2
VAR_11
*3
VAR_12
*4
VAR_13
*5
VAR_14
*6
*1. VAR_01 is a global label and is defined as K8X020.
*2. VAR_02 is a global label and is defined as D0.
*3. VAR_11 is a global label and is defined as K-10000.
*4. VAR_12 is a global label and is defined as K10000.
*5. VAR_13 is a global label and is defined as D0.
[Structured ladder] [ST]
DBIN(X000,VAR_01,VAR_02);
VAR_14:=DZONEP(X000,VAR_11,VAR_12,VAR_13);
Input
0
Output
10000
-10000
10000
-10000