593
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
Explanation of function and operation
1. 16-b16-bit operation (BKCMP=, >, <, <>, <=, >= / BKCMP=P, >P, <P, <>P, <=P, and >=P)
1) "n" 16-bit binary data starting from
are compared with "n" 16-bit binary data starting from
,
and the comparison result is stored in "n" points starting from
.
2) A constant can be directly specified in
.
3) The table below shows the comparison result in each instruction:
4) When the comparison result is ON (1) in all of "n" points starting from
, M8090 (block comparison
signal) turns ON.
Instruction
Comparison result ON (1) condition
Comparison result OFF (0) condition
BKCMP=(FNC194)
=
<>
BKCMP>(FNC195)
>
<=
BKCMP<(FNC196)
<
>=
BKCMP<>(FNC197)
<>
=
BKCMP<=(FNC198)
<=
>
BKCMP>=(FNC199)
>=
<
S
1
S
2
D
FNCOOO
*1
BKCMP
*2
Command
input
S
1
S
2
n
D
*1 The number out of 194 to 199 is put in "OOO".
*2 The symbol out of "=", ">", "<", "<>", "<=", or
">=" corresponding to the FNC No. is put in
.
S
1
+0
+1
+2
+n-2
+n-1
"n"
points
>
S
2
+0
+1
+2
+n-2
+n-1
"n"
points
D
+0
Comparison result
+1
+2
+n-2
+n-1
"n"
points
K1234
K5678
K7777
K5000
K4321
K5321
K3399
K6543
K5678
K1200
OFF(0)
ON(1)
ON(1)
OFF(0)
ON(1)
*3
*3 An operation example of BKCMP>
(FNC195) instruction is shown here.
S
1
S
1
=
S
2
+0
+1
+2
+n-2
+n-1
"n"
points
D
+0
Comparison result
+1
+2
+n-2
+n-1
"n"
points
K32000
K32000
K4321
K1234
K32000
K5678
ON(1)
OFF(0)
OFF(0)
ON(1)
OFF(0)
*4
*4 An operation example of BKCMP=
(FNC194) instruction is shown
here.
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
D
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......