FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DBKCMP=, >, <, <>, <=, >= / DBKCMP=P, >P, <P, <>P, <=P, and >=P)
1)
"n" 32-bit binary data starting from [
[
S
+1,
2
Command
input
[
S
[
S
1
[
S
1
[
+2n-3,
S
1
[
+2n-1,
S
1
2)
A constant can be directly specified in [
[
+1,
S
S
1
*4 An operation example of DBKCMP=
(FNC194) instruction is shown here.
3)
The table below shows the comparison result for each instruction:
Instruction
DBKCMP=(FNC194)
DBKCMP>(FNC195)
DBKCMP<(FNC196)
DBKCMP<>(FNC197)
DBKCMP<=(FNC198)
DBKCMP>=(FNC199)
4)
When the comparison result is ON (1) in all of "n" points starting from [
comparison signal) turns ON.
Related device
Device
M8090
Block comparison signal
610
S
], and the comparison result is stored in "n" points starting from [
2
FNCOOO
*1
S
S
1
DBKCMP
*2
+1,
]
K1234
S
1
1
+3,
+2]
K5678
S
1
+5,
+4]
K5000
S
1
points
+2n-4]
K40000
S
1
+2n-2]
K4321
S
1
*3 An operation example of DBKCMP>
(FNC195) instruction is shown here.
*4
=
]
K32000
1
Comparison result ON (1) condition
[
S
S
+1,
1
1
[
S
+1,
S
1
1
[
S
S
+1,
1
1
[
S
S
+1,
1
1
[
S
S
+1,
1
1
[
S
+1,
S
1
1
→ For the block comparison signal use method, refer to Subsection 6.5.2.
Name
Turns ON when all comparison results are "ON (1)" in a block data instruction.
DBKCMP= (FNC194), DBKCMP> (FNC195), DBKCMP< (FNC196), DBKCMP<> (FNC197),
DBKCMP<= (FNC198), and DBKCMP>= (FNC199)
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
+1,
] are compared with "n" 32-bit binary data starting from
S
S
1
1
*1 The number out of 194 to 199 is put in "OOO".
*2 The symbol out of "=", ">", "<", "<>", "<=", or
D
n
2
[
+1,
S
2
[
+3,
S
2
*3
[
+5,
"n"
S
2
>
[
+2n-3,
S
S
2
2
[
+2n-1,
S
S
2
2
+1,
].
S
S
1
1
[
+1,
S
S
2
2
[
+3,
+2]
S
S
2
2
[
+5,
+4]
S
S
2
2
[
+2n-3,
+2n-4]
S
S
2
2
[
+2n-1,
+2n-2]
S
S
2
2
[
]
S
S
=
+1,
]
2
2
[
]
>
S
+1,
S
]
2
2
< [
]
S
S
+1,
]
2
2
≠ [
]
S
S
+1,
]
2
2
[
]
S
S
<=
+1,
]
2
2
[
]
>=
S
+1,
S
]
2
2
25 Block Data Operation – FNC190 to FNC199
D
+1,
">=" corresponding to the FNC No. is put in
]
K5321
S
2
+2]
K3399
S
2
+4]
K5678
S
"n"
2
points
+2n-4]
K6543
+2n-2]
K1200
Comparison result
+0
D
+1
+2
+n-2
+n-1
]
K32000
K4321
K32000
"n"
points
K1234
K5678
Comparison result
+0
ON(1)
D
+1
OFF(0)
+2
ON(1)
+n-2
OFF(0)
+n-1
OFF(0)
Comparison result OFF (0) condition
] ≠ [
S
S
S
[
+1,
+1,
1
1
2
S
S
S
[
+1,
] <= [
+1,
1
1
2
S
S
S
[
+1,
] >= [
+1,
1
1
2
[
S
+1,
S
] = [
S
+1,
1
1
2
S
S
S
[
+1,
] > [
+1,
1
1
2
S
S
S
[
+1,
] < [
+1,
1
1
2
D
+1,
D
Description
D
].
.
OFF(0)
ON(1)
OFF(0)
"n"
points
ON(1)
ON(1)
"n"
points
S
]
2
S
]
2
S
]
2
S
]
2
S
]
2
S
]
2
], the M8090 (block