EasyManua.ls Logo

Mitsubishi FX1S Series

Mitsubishi FX1S Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FX Series Programmable Controlers Applied Instructions 5
5-18
5.2.1 CMP (FNC 10)
Operation:
The data of S
1 is compared to the data of S2. The
result is indicated by 3 bit devices specified from
the head address entered as D. The bit devices
indicate:
S
2 is less than S1 - bit device D is ON
S
2 is equal to S1 - bit device D+1 is ON
S
2 is greater than S1 - bit device D+2 is ON
Mnemonic Function
Operands
Program steps
S
1
S2 D
CMP
FNC 10
(Compare)
Compares two
data values -
resultsof<,=and
> are given.
K, H,
KnX, KnY, KnM, KnS,
T, C, D, V, Z
Y, M, S
Note:
3 consecutive
devices are
used.
CMP, CMPP:
7steps
DCMP,
DCMPP:
13 steps
FX
1S
FX1N FX2N
FX2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
C 20 M 0
[ S2 ] [ D ]
[ S1 ]
K 100CMP
M0
M1
M2
C20>K100,M0=ON
C20=K100,M1=ON
C20>K100,M2=ON
Note: The destination (D) device statuses will be kept even if the CMP instruction is
deactivated. Full algebraic comparisons are used, i.e. -10 is smaller than +2 etc.

Table of Contents

Other manuals for Mitsubishi FX1S Series

Related product manuals