5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-95
API Mnemonic
Operands
Function
111
D EZCP P
Floating Point Zone Compare
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S F H
KnX KnY KnM KnS T
C
D
V
Z
S
1
*
*
S
2
*
*
S
*
*
D
*
*
*
DEZCP, DEZCPP: 12 steps
Operands:
S
1
: Lower bound of zone comparison
S
2
: Upper bound of zone comparison
S
: Comparison value
D
: Comparison result
Explanations:
1. The data of
S
is compared to the data range of
S
1
~
S
2
and the result (
>
,
=
,
<
) is indicated by three bit
devices in
D
2.
D
occupies 3 consecutive devices.
3. F refers to floating point input. Be sure to add a decimal point when using it.
4. Only 32-bit instructions DEZCP and DEZCPP are applicable.
5. If
S
1
or
S
2
is specified with floating point value F, the instruction will operate in binary floating point.
6. Operand
S
1
should be smaller than operand
S
2.
When
S
1
>
S
2
, the instruction takes
S
1
as the 1
st
comparison
value and performs normal comparison similar to ECMP instruction.
Program Example:
1. If the specified device is M10, M10~M12 will automatically be used.
2. When X0 = ON, one of M10~M12 will be ON. When X0 = OFF, DEZCP instruction is not executed, M10~M12
will retain their previous state before X0 = OFF.
3. RST or ZRST instruction is required if users need to reset the comparison result.
X0
DEZCP
D0
D10
D20
M10
M11
M12
M10 = ON when (D1,D0)>(D21,D20)
M11 = ON when (D1,D0)
(D21,D20) < (D11,D10)
<
M12 = ON when (D21 D20)>(D11,D10)
,
M10
Points to note:
For floating point operations, see “5.3 Numeric Values for Data Processing”.
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...