649
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison
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
FNC232 to FNC237 are data comparison instructions connected to other contacts in series.
The contents of
are compared with the contents of
in the binary format, and a contact becomes
conductive (ON) or non-conductive (OFF) depending on the comparison result.
Cautions
1. Negative value
When the most significant bit is "1" in the data stored in
or
, it is regarded as a negative value in
comparison.
• In the 16-bit operation: bit 15
• In the 32-bit operation: bit 31
2. When using 32-bit high speed counters
Make sure to execute the 32-bit operation (such as "ANDD=", "ANDD>" and "ANDD<") when comparing 32-
bit high speed counters (D200 and later).
If a 32-bit high speed counter is specified in the 16-bit operation (such as "AND=", "AND>" and "AND<"), a
program error or operation error is caused.
3. Programming of data comparison instructions
In programming in GX Developer, symbols "
≤
" and "
≥
" cannot be input.
Separate "
≤
" into "<" and "=", and separate "
≥
" into ">" and "=" in input.
When inputting a data comparison instruction in a circuit diagram, use the symbol "-[ ]-".
The input procedure is described below:
Operating procedure
a) Display the circuit program edit window, and put the cursor in a position where a data comparison
instruction is to be used.
b) Select the coil symbol “-[ ]-”.
c) Input "Instruction"
→
"space"
→
"value or device"
→
"space"
→
"value or device".
For an input example, refer to "Instruction input window in GX Developer" shown below.
d) Click the [OK] button.
e) Input other contacts and coil drive units consecutively.
Instruction input window in GX Developer
FNC No.
16-bit instruction
32-bit instruction
ON condition
OFF condition
232
AND=
AND=
=
≠
233
AND>
AND>
>
<=
234
AND<
AND<
<
>=
235
AND<>
AND<>
≠
=
236
AND<=
AND<=
<=
<
237
AND>=
AND>=
>=
>
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
S
1
S
2
S
1
S
2
<Input example for 16-bit operation>
<Input example for 32-bit operation>