Mitsubishi Electric MELSEC iQ-F Series Training Manual page 108

Fx5u
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

5.3
Comparison Operation Instructions
This section describes how to compare numerical values.
=
>=
• The comparison instruction compares the value in the source 1 (s1) and that in the source 2 (s2), and brings the devices in
the continuity state when conditions are satisfied.
• The instruction can be regarded as one normally open contact (
conditions are satisfied.
=
(s1)
(s2)
••••• The ladder goes in the continuity state when the value in the source 1 is equal to that in the
source 2.
<
(s1)
(s2)
••••• The ladder goes in the continuity state when the value in the source 1 is smaller than that in the
source 2.
>
(s1)
(s2)
••••• The ladder goes in the continuity state when the value in the source 1 is larger than that in the
source 2.
<=
(s1)
(s2)
••••• The ladder goes in the continuity state when the value in the source 1 is equal to or smaller than
that in the source 2.
>=
(s1)
(s2)
••••• The ladder goes in the continuity state when the value in the source 1 is equal to or larger than
that in the source 2.
(s1)
(s2)
<>
••••• The ladder goes in the continuity state when the value in the source 1 are not equal to that in the
source 2.
<>
>
Size comparison
<
<=
X102
0
X103
6
9
>
13
=
17
<=
21
<>
25
>
32
<=
>=
39
=
46
>
K20
C10
Y174
<
K40
C10
Project name
Program name
OUT
C0
MOV
C0
(s1)
(s2)
C0
K1
C0
K4
C0
K6
C0
K8
C0
K2
<
C0
K7
C0
K3
C0
K7
C0
K10
RST
) because it goes in the continuity state only when
5 BASIC INSTRUCTIONS -PART 2-
5.3 Comparison Operation Instructions
RB-15
MAIN
K99
D0
Y170
Y171
Y172
Y173
Y174
Y175
C0
END
Y174
5
5 - 23

Advertisement

Table of Contents
loading

Table of Contents