EasyManua.ls Logo

Xinje XD5 - BCD Convert to Binary [BIN]

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...
142
<16 bits>
INT D10 D20
S· D·
X0
<32 bits>
DINT D10 D20
S· D·
X0
The binary source number is converted into a BIN integer and stored at the destination device.
Abandon the value behind the decimal point.
The inverse instruction is FLT.
When the result is 0, the flag bit is ON.
When converting, less than 1 and abandon it, zero flag is ON.
The result is over below data, the carry flag is ON.
16 bits operation: -32,768~32,767
32 bits operation: -2,147,483,648~2,147,483,647
INT D0 D10
X0
For example, if D0 is floating value 130.2, after executing INT, D10 value is integer 130.
4-8-4BCD convert to binary [BIN]
1. Summary
BCD convert to binary [BIN]
16 bits
BIN
32 bits
-
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands
Function
Data Type
S
Source soft element address
BCD
D
Target soft element address
16 bits/32 bits, BIN
Description
(D11,D10) → (D20)
Binary Float BIN integer
Give up the data after the decimal dot
(D11,D10) → (D20,D21)
Binary Float BIN integer
Give up the data after the decimal dot

Table of Contents

Related product manuals