EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 145

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
143
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
1. 16-bit operation(CMP, CMPP)
The comparison value specified by and the comparison source specified by are compared with
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 and are handled as BIN (binary) values.
Comparison is executed algebraically. Example: -10 < 2
Operand
type
Bit Devices Word Devices Others
System User Digit Specification
System
User
Special
Unit
Index
Constant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS
TCD R
U\G
VZModifier K H E
""
P
zzzzzzz
S2 S3
zz z z z
zzzzzzz
S2 S3
zz z z z
zz z
S1
z
*1 This defines the head bit device that stores the comparison result. (Defines M100)
Command input
Even if the command input turns OFF and CMP instruction is not executed,
to +2 latch the status just before the command input turns OFF from ON.
Command
input
48
49
50
51
Latched
Latched
Latched
CMP
EN
s1
s2
ENO
d
Comparison
value data
Comparison
source data
Label1
*1
(M100)
M100
M101
M102
s2
d
+1
d
+2
d
d
s1
s1 s2
Turns on in the case of >
d
s1 s2
Turns on in the case of =
s1 s2
Turns on in the case of <

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals