EasyManuals Logo
Home>Mitsubishi>Controller>FX1N Series

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N 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
Page #138 background imageLoading...
Page #138 background image
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 FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX1N Series
CategoryController
LanguageEnglish

Related product manuals