EasyManuals Logo

Delta DVP-PLC User Manual

Delta DVP-PLC
586 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 #230 background imageLoading...
Page #230 background image
6 Application Instructions API 00-49
DVP-PLC Application Manual
6-18
API Mnemonic Operands Function
10
D CMP P
Compare
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices Word Devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S
1
* * * * * * * * ***
S
2
* * * * * * * * ***
D * * *
CMP, CMPP: 7 steps
DCMP, DCMPP: 13 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
1
: Comparison Value 1 S
2
: Comparison Value 2 D: Comparison result
Explanations:
1. If S
1
and S
2
are used in device F, only 16-bit instruction is applicable.
2. Operand D occupies 3 consecutive devices.
3. See the specifications of each model for their range of use.
4. The contents in S
1
and S
2
are compared and the result will be stored in D.
5. The two comparison values are compared algebraically and the two values are signed binary values. When b15
= 1 in 16-bit instruction or b31 = 1 in 32-bit instruction, the comparison will regard the value as negative binary
values.
Program Example:
1. Designate device Y0, and operand D automatically occupies Y0, Y1, and Y2.
2. 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.
3. If the user need to obtain a comparison result with , and , make a series parallel connection between Y0 ~
Y2.
X10
Y0
Y1
Y2
CMP
K10
D10
Y0
If K10>D10, Y0 = On
If K10=D10, Y1 = On
If K10<D10, Y2= On
4. To clear the comparison result, use RST or ZRST instruction.
X10
RST M0
RST
RST
M1
M2
X10
ZRST M0 M2

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-PLC and is the answer not in the manual?

Delta DVP-PLC Specifications

General IconGeneral
ManufacturerDelta Electronics
ModelDVP-PLC
CategoryController
Humidity5% to 95% RH, non-condensing
Programming LanguageLadder Diagram (LD), Instruction List (IL), Sequential Function Chart (SFC)
CPU TypeVarious, depending on the specific model within the DVP series (e.g., ES2, EX2, SX2, SA2, EH3, etc.)
Operating TemperatureTypically 0°C to 55°C (32°F to 131°F)
Storage TemperatureTypically -25°C to 70°C (-13°F to 158°F)

Related product manuals