Mitsubishi Electric MELSEC FX3U Programming Manual page 640

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
Explanation of function and operation
1. 16-bit operation (BKCMP=, >, <, <>, <=, >= / BKCMP=P, >P, <P, <>P, <=P, and >=P)
1) "n" 16-bit binary data starting from
and the comparison result is stored in "n" points starting from
Command
input
FNCOOO
BKCMP
+0
S
1
+1
+2
+n-2
+n-1
*3 An operation example of BKCMP>
(FNC195) instruction is shown here.
2) A constant can be directly specified in
K32000
S
1
*4 An operation example of BKCMP=
(FNC194) instruction is shown
here.
3) The table below shows the comparison result in each instruction:
Instruction
BKCMP=(FNC194)
BKCMP>(FNC195)
BKCMP<(FNC196)
BKCMP<>(FNC197)
BKCMP<=(FNC198)
BKCMP>=(FNC199)
4) When the comparison result is ON (1) in all of "n" points starting from
signal) turns ON.
638
S
*1
S
S
1
2
*2
K1234
S
2
K5678
*3
K5000
"n"
>
points
K7777
K4321
+0
S
2
+1
*4
+2
=
+n-2
+n-1
Comparison result ON (1) condition
S
=
1
S
>
1
<
S
1
<>
S
1
S
<=
1
S
>=
1
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
are compared with "n" 16-bit binary data starting from
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
+0
K5321
+1
K3399
+2
K5678
"n"
points
+n-2
K6543
+n-1
K1200
.
S
1
K32000
K4321
K32000
"n"
points
K1234
K5678
Comparison result OFF (0) condition
S
2
S
2
S
2
S
2
S
2
S
2
.
D
Comparison result
+0
OFF(0)
D
+1
ON(1)
+2
OFF(0)
+n-2
ON(1)
+n-1
ON(1)
Comparison result
+0
ON(1)
D
+1
OFF(0)
+2
ON(1)
"n"
points
+n-2
OFF(0)
+n-1
OFF(0)
<>
S
S
1
2
S
<=
S
1
2
>=
S
S
1
2
S
=
S
1
2
S
>
S
1
2
<
S
S
1
2
, M8090 (block comparison
D
,
S
2
.
"n"
points

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents