Download Print this page

Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 145

Hide thumbs Also See for MELSEC FX Series:

Advertisement

FXCPU Structured Programming Manual
(Basic & Applied Instruction)
3. Applicable devices
Bit Devices
Operand
System User
type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
: Refer to "Cautions".
Function and operation explanation
1. 16-bit operation(CMP, CMPP)
The comparison value specified by
each other. According to the result (smaller, equal or larger), any of the three points of the devices specified
by
turns on.
• The source data specified by
• Comparison is executed algebraically. Example: -10 < 2
Command input
Comparison
value data
Comparison
source data
M100
M101
M102
Even if the command input turns OFF and CMP instruction is not executed,
d
to
d
+2 latch the status just before the command input turns OFF from ON.
*1 This defines the head bit device that stores the comparison result. (Defines M100)
Word Devices
System
Digit Specification
1
and the comparison source specified by
and
are handled as BIN (binary) values.
CMP
EN
ENO
s1
d
*1
Label1
(M100)
s2
Turns on in the case of
s1
>
Turns on in the case of
=
s1
Turns on in the case of
s1
<
Special
Index
User
Unit
V Z Modifier
2
3
2
3
Command
input
s2
48
s2
d
Latched
s2
d
+1
s2
d
+2
7 Applied Instructions
7.2 Move and Compare
Others
Real
Character
Constant
Pointer
Number
String
K
H
E
" "
are compared with
51
50
49
s1
Latched
Latched
143
1
P
2
3
4
5
6
7
8
A

Advertisement

loading

This manual is also suitable for:

Fxcpu