Mitsubishi Electric MELSEC FX3U Programming Manual page 641

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

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 [
from [
+1,
S
2
Command
input
FNCOOO
DBKCMP
[
S
1
[
+3,
S
1
[
+5,
S
1
[
+2n-3,
S
1
[
+2n-1,
S
1
2) A constant can be directly specified in [
[
+1,
S
S
1
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
S
], and the comparison result is stored in "n" points starting from [
S
2
*1
S
S
1
2
*2
+1,
]
K1234
S
1
+2]
K5678
S
1
+4]
K5000
S
"n"
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
Comparison result ON (1) condition
[
S
+1,
S
] =
1
1
[
S
+1,
S
] >
1
1
+1,
< [
[
S
S
]
1
1
≠ [
+1,
[
S
S
]
1
1
S
+1,
S
] <=
[
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 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
+1,
] are compared with "n" 32-bit binary data starting
S
1
1
*1 The number out of 194 to 199 is put in "OOO".
*2 The symbol out of "=", ">", "<", "<>", "<=", or
D
n
">=" corresponding to the FNC No. is put in
[
+1,
S
S
2
2
[
+3,
+2]
S
S
2
2
*3
[
+5,
+4]
S
S
2
2
>
[
+2n-3,
+2n-4]
S
S
2
2
[
+2n-1,
+2n-2]
S
S
2
2
+1,
].
S
S
1
1
[
+1,
]
K32000
S
S
2
2
[
+3,
+2]
K4321
S
S
2
2
[
+5,
+4]
K32000
S
S
2
2
[
+2n-3,
+2n-4]
K1234
S
S
2
2
[
+2n-1,
+2n-2]
K5678
S
S
2
2
Comparison result OFF (0) condition
[
S
+1,
S
]
[
S
2
2
1
[
S
+1,
S
]
[
S
+1,
2
2
1
+1,
]
+1,
S
S
[
S
2
2
1
+1,
]
S
S
[
S
2
2
1
[
S
+1,
S
]
S
[
2
2
1
[
S
+1,
S
]
[
S
2
2
1
Description
+1,
D
]
K5321
K3399
K5678
"n"
points
K6543
K1200
Comparison result
+0
OFF(0)
D
+1
ON(1)
+2
OFF(0)
+n-2
ON(1)
+n-1
ON(1)
"n"
points
Comparison result
D
+0
ON(1)
+1
OFF(0)
+2
ON(1)
points
+n-2
OFF(0)
+n-1
OFF(0)
≠ [
+1,
S
]
S
+1,
S
]
1
2
2
[
S
] <=
S
+1,
S
]
1
2
2
] >=
[
+1,
]
S
S
S
1
2
2
[
+1,
] =
+1,
]
S
S
S
1
2
2
[
+1,
S
] >
S
+1,
S
]
1
2
2
< [
+1,
S
]
S
+1,
S
]
1
2
2
+1,
], the M8090 (block
D
D
21
].
D
22
.
23
"n"
24
points
25
26
"n"
27
28
29
30
639

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents