EasyManua.ls Logo

Delta VP3000 Series - Page 347

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 Platform VP3000
338
API Instruction code Operand Function
110 D ECMP P S
1
, S
2
, D
Binary floating-point number
comparison
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (13 steps)
DECMP
Continuous
execution
type
DECMPP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
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
: binary floating-point number comparison value 1
S
2
: binary floating-point number comparison value 2
D: comparison result, occupies 3 consecutive devices
The binary floating-point value 1 and 2 are compared with each other. The comparison 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.
Example
Designate the device to be M10, and this automatically occupies M10 to M12.
When X0 = ON, DECMP instruction is executed, and one of M10, M11, and M12 will be ON.
When X0 = OFF, DECMP instruction is not executed, and M10, M11, and M12 remain their
status before X0 = OFF.
If you need to obtain a comparison result with ,, and , make a serial-parallel connection
between M10 –M12.
To clear the comparison result, use RST or ZRST instruction.

Table of Contents

Related product manuals