Delta C2000 series User Manual page 475

Classical field oriented. control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
CMP
10
D
P
Bit Devices
X
Y
M
K
S
1
S
2
* *
D
Operand
Operand D occupies 3 consecutive devices.
1.
Explanation
2.
3.
1.
2.
Example
3.
X10
4.
X10
S1
S2
D
Word Devices
H KnX KnY KnM T
: value comparsion 1, S
S
1
The contents in S
and S
1
The two comparison values are compared algebraically and the two values
are signed binary values. When b15 = 1 in 16-bit instruction, the comparison
will regard the value as negative binary values.
Designate device Y0, and operand D automatically occupies Y0, Y1, and Y2.
When X10 = On, CMP instruction will be executed and one of Y0, Y1, and Y2
will be On. When X10 = Off, CMP instruction will not be executed and Y0,
Y1, and Y2 remain their status before X10 = Off.
If the user need to obtain a comparison result with ≥ ≤, and ≠, make a series
parallel connection between Y0 ~ Y2.
CMP
K10
D10
Y0
If K10>D10, Y0 = On
Y1
If K10=D10, Y1 = On
Y2
If K10<D10, Y2= On
To clear the comparison result, use RST or ZRST instruction.
M0
RST
RST
M1
RST
M2
Chapter 16 PLC Function |C2000 Series
Compare
C
D
16-bit command ( 7 STEPS)
CMP
32bits command (13 STEPS)
Flag signal: None
: value comparison 2 , D: result comparison
2
are compared and result is stored in D.
2
Y0
16-52
CMPP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents