7 Applied Instructions
7.2 Move and Compare
173
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
Program examples
1. When the seven-segment display unit has 1 digit
2. When the seven-segment display unit has 2 to 4 digits
3. When the seven-segment display unit has 5 to 8 digits
PLC
BCD
EN
s
ENO
d
X000
D0 K1Y000
[Structured ladder]
[ ST ]
BCD(X000, D0, K1Y000);
PLC
Output destination
K4 K3 K2 K1
BCD
EN
s
ENO
d
X000
D0
K2Y000
[Structured ladder]
[ ST ]
BCD (X000, D0, K2Y000);
In the case of 2 digits: K2
In the case of 3 digits: K3
In the case of 4 digits: K4
PLC
K4 K3 K2 K1K8 K7 K6 K5
DBCD
EN
s
ENO
d
X000
Var_BCD1
*1
Var_BCD2
*2
[
Structured ladder
]
[ ST ]
DBCD (X000, Var_BCD1
*1
, Var_BCD2
*2
);
In the case of 5 digits: K5
In the case of 6 digits: K6
In the case of 7 digits: K7
In the case of 8 digits: K8
D1,D0
*1 Var_BCD1 is a global label and is defined as D0.
*2 Var_BCD2 is a global label and is defined as K5Y000.
K5Y000
Output destination