EasyManua.ls Logo

Inovance H3U Series - Number Format; Conversion from; EBCD Conversion from Binary to Decimal Floating-Point Number Format

Inovance H3U Series
737 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...
153
4
4 Instructions 4.5.1 Data Conversion
Example 1:
M10
M8
ǒFLT D10 D120Ǔ
S D
ǒDFLT D20 D130Ǔ
When M8 = ON, the 16-bit BIN integer in D10 is converted to a binary
floating-point number. The result is stored in (D121, D120).
When M10 = ON, the 32-bit BIN integer in (D21, D20) is converted to a
binary floating-point number. The result is stored in (D131, D130).
Example 2:
0
ǒFLT D100 D110Ǔ
Use instructions to complete the following floating-point number operations.
D100/K125.5*(X17~X0)=D200
ǒDEDIV K1255 K10 D120Ǔ
ǒBIN K4X0 D130Ǔ
ǒFLT D130 D140Ǔ
ǒDEDIV D110 D120 D150Ǔ
ǒDEMUL D150 D140 D200Ǔ
ǒDEBCD D200 D160Ǔ
ǒDINT D200 D170Ǔ
The BIN integer in D100 is converted to a binary floating-point
number. The result is stored in (D111, D110).
The value in K1255 is divided by that in K10. The result
(a binary floating-point number) is stored in (D121, D120).
The BCD value in X17 to X0 is converted to a 16-bit BIN
integer. The result is stored in D130.
The BIN integer in D130 is converted to a binary floating-point
number. The result is stored in (D141, D140).
The binary floating-point number in (D111, D110) is divided by
that in (D121, D120). The result (a binary floating-point
number) is stored in (D151, D150).
The binary floating-point number (D151, D150) is multiplied by
that in (D141, D140). The result (a binary floating-point
number) is stored in (D201, D200).
The binary floating-point number in (D201, D200) is converted
to a decimal equivalent. The result is stored in (D161, D160).
This function is used for decimal floating-point number
monitoring.
The binary floating-point number in (D201, D200) is converted
to a 32-bit BIN integer. The result is stored in (D171, D170).
EBCD: Conversion from binary to decimal oating-point number format
Overview
The EBCD instruction converts binary oating-point numbers to decimal equivalents.
EBCD S D
Conversion from
binary to decimal
oating-point
number format
Applicable model:
H3U
S Data source Binary oating-point variable 32-bit instruction (9
steps)
DEBCDP:
Continuous
execution
D
Operation
result
Unit that stores the decimal equivalent of a binary
oating-point number

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals