EasyManua.ls Logo

Delta VP3000 Series - Page 348

Delta VP3000 Series
714 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...
Chapter 7 Second Development PlatformVP3000
339
API Instruction code Operand Function
111 D EZCP P S
1
, S
2
, S, D
Binary floating-point number zone
comparison
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (17 steps)
DEZCP
C
ontinuous
execution
type
DEZCPP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
S
D
Caution for using operand
Operand D occupies 3 consecutive devices.
See the specification of each model for the scope of device’s usage.
Description
S
1
: lower bound of binary floating-point in zone comparison
S
2
: upper bound of binary floating-point in zone comparison
S: binary floating-point number comparison value
D: comparison result, occupies 3 consecutive devices
S is compared with S
1
and S
2
, and the result is stored in D.
If S
1
or S
2
is a designated constant K or H, the instruction will convert the constant into a binary
floating-point value before the comparison.
When S
1
> S
2
, the instruction uses S
1
as upper / lower bound for comparison.
Example
Designate the device to be M0, and this automatically occupies M0 to M2.
When X0 = ON, DEZCP instruction is executed, and one of M0, M1, and M2 will be ON. When
X0 = OFF, EZCP instruction is not executed, and M0, M1, and M2 remain their status before X0
= OFF.
To clear the comparison result, use RST or ZRST instruction.

Table of Contents

Related product manuals