Delta AS Series Programming Manual page 362

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0202
D
FLT
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts the binary integer in S into the single-precision floating-point number and stores the
conversion result in D.
2.
The operand S used in the instruction FLT cannot be the 32-bit counter, and not the device E.
3.
The source device S used in the instruction FLT occupies one register, and D used in FLT occupies two registers.
4.
The source device S used in the instruction DFLT occupies two registers, and D used in DFLT also occupies two
registers.
When the absolute value of the conversion result is larger than the value that can be represented by the
maximum floating-point number, SM602 is ON, and the maximum floating-point number is stored in D.
When the absolute value of the conversion result is less than the value that can be represented by the
minimum floating-point number, SM601 is ON, and the minimum floating-point number is stored in D.
When the conversion result is zero, SM600 is ON.
Operand
S, D
P
S
T
C
HC
Pulse instruction
: Source device
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 binary integer into a binary
D
FR
SM
SR
16-bit instruction
AS
AS
Function
floating-point number
E
K
16#
"$"
F
32-bit instruction
AS
6 - 8 3
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents