EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 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...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-96
API
Applicable model
20PM
111
D
D
EZCP
P
P
Binary floating-point zonal
comparison
Bit device Word device
X Y M S F H KnX KnY KnM KnS T C D V Z
S
1
S
2
S
D
Note: The operand D occupies three consecutive devices.
The value in S
1
is less than the value in S
2
.
Please refer to specifications for more information about device
ranges.
F represents a floating-point value. There is a decimal point in a
floating-point value.
Only the 32-bit instructions DEZCP and DEZCPP are valid.
16-bit instruction
32-bit instruction (12 steps)
DEZCP
Continuity
instruction
DEZCPP
Pulse
instruction
Flag: None
Explanation
S
1
: Minimum binary floating-point value; S
2
: Maximum binary floating-point
value; S: Binary floating-point value; D: Comparison result (D occupies three
consecutive devices.)
The instruction is used to compare the binary floating-point value in S with that
in S
1
, and compare the binary floating-point value in S with that in S
2
. The
comparison result is stored in D.
If S
1
is a floating-point value, the instruction will be used to compare S
1
with the
binary floating-point value in S
2
. If S
2
is a floating-point value, the instruction
will be used to compare the binary floating-point value in S
1
with S
2
.
If the binary floating-point value in S
1
is greater than that in S
2
, the binary
floating-point value in S
1
will be taken as the maximum/minimum value during
the execution of the instruction EZCP.
Example
If the operand D is M0, M0, M1, and M2 will be occupied automatically.
When X0 is ON, the instruction DEZCP is executed, and M0, M1, or M2 is ON.
When X0 is OFF, the execution of the instruction DEZCP stops, and the states
of M0, M1, and M2 remain unchanged.
If users want to reset M0, M1, or M2, they can use the instruction RST or
ZRST.
X
0
DEZCP D0 D10 D20
M0
M1
M2
If the value in (D1, D0) >the value in (D21, D20) , M0 will be ON.
If the value in (D1, D0) <the value in (D21, D20) <the value in (D11, D10),
M1 will be ON.
If the value in (D21, D20) >the value in (D11, D10), M2 will be ON.
M0
Additional
rema
rk
Please refer to section 5.3 for more information about performing operations on
floating-point values.

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals