Delta AS Series Programming Manual page 380

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0213
FBIN
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts the decimal floating-point number in the register specified by S into the single-precision
floating-point number, and stores the conversion result in the register specified by D.
2.
Suppose the value in S is 1234, and the value in S+1 is 3. The instruction converts the value in S into 1.234x10
3.
The value in D should be a single-precision floating-point number, and the values in S and S+1 represent the
decimal real number and the decimal exponent respectively.
4.
Use the FBIN instruction to convert a decimal floating-point number into a single-precision floating-point number.
5.
The real number of decimal floating-point numbers are from -9,999 to +9,999, the exponents of decimal floating-
point numbers are from -41 to +35. The practical range of decimal floating-point numbers in the PLC is between
±1175×10-41 and ±3402×10+35. When the operation result is zero, SM600 is ON.
Operand
S, D
P
S
T
C
HC
Pulse instruction
: Data source
S
: Conversion result
D
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Converting a decimal floating-point
number into a binary floating-point number
D
FR
SM
SR
16-bit instruction
AS
-
Function
E
K
16#
"$"
F
32-bit instruction
AS
6 - 1 0 1
6_
6
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents