EasyManua.ls Logo

Xinje XD5 - Floating Zone Compare [EZCP]

Xinje XD5
389 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...
158
ECMP D10 D20 M0
M0
M1
M2
X0
D·S S2·
The instruction will compare the two source data S1 and S2. The result is stored in three bits
from D.
If a constant K or H used as source data, the value is converted to floating value.
ECMP K500 D100 M10
X0
Note: Before the instruction is executed, the comparison data must be all floating numbers (if
it is an integer, it can be converted by FLT instructions); otherwise, the execution result will
be wrong.
4-9-2Floating Zone Compare [EZCP]
1. Summary
Floating Zone Compare [EZCP]
16 bits
-
32 bits
EZCP
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands
Function
Data Type
S1
Soft element address need compare
32 bits, BIN
S2
Upper limit of compare data
32 bits, BIN
S3
Lower limit of compare data
32 bits, BIN
(D11,D10) > (D21<D20)
Binary Floating Binary Floating
(D11,D10) = (D21<D20)
Binary Floating Binary Floating
(D11,D10) < (D21<D20)
Binary Floating Binary Floating
When X0 is OFF, even ECMP doesn’t run, M0~M2 will keep the
status before X0 is OFF.
(K500) : (D101, D100) →M10,M11,M12
Binary converts Binary floating
to floating

Table of Contents

Related product manuals