EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - 7.2 Move and Compare; 7.2.1 CMP

Mitsubishi Electric MELSEC FX Series
838 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...
7 Applied Instructions
7.2 Move and Compare
142
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
7.2 Move and Compare
7.2.1 CMP
Outline
This instruction compares two values, and outputs the result (smaller, equal or larger) to bit devices (3
points).
For the contact comparison instruction, refer to Section 7.22.
For floating point comparison, refer to Section 7.12.1.
1. Format and operation, execution form
2. Set data
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder ST
CMP 16 bits Continuous CMP(EN,s1,s2,d);
CMPP 16 bits Pulse CMPP(EN,s1,s2,d);
DCMP 32 bits Continuous DCMP(EN,s1,s2,d);
DCMPP 32 bits Pulse DCMPP(EN,s1,s2,d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Data or device number handled as comparison value ANY16 ANY32
Data or device number handled as comparison source ANY16 ANY32
Output
variable
ENO Execution state Bit
Head bit device to which comparison result is output. ARRAY [0..2] OF Bit
CMP
EN
s1
s2
ENO
d
CMPP
EN
s1
s2
ENO
d
DCMP
EN
s1
s2
ENO
d
DCMPP
EN
s1
s2
ENO
d

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals