Delta AH500 Programming Manual page 261

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0212
FBCD
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The single-precision floating-point number in the register specified by S is converted into the
decimal floating-point number, and the conversion result is stored in the register specified by
D.
2.
The floating-point operation in the PLC is based on the single-precision floating-point numbers,
and the instruction FBCD is used to convert the single-precision floating-point number into the
decimal floating-point number.
3.
The Flags: SM600 (zero flag), SM601 (borrow flag), and SM602 (carry flag)
When the absolute value of the conversion result is larger than the value which can be
represented by the maximum floating-point number, SM602 is ON.
When the absolute value of the conversion result is less than the value which can be
represented by the minimum floating-point number, SM601 is ON.
When the conversion result is zero, SM600 is ON.
Example:
When X0.0 is ON, the single-precision floating-point number in (D1, D0) is converted into the
decimal floating-point number, and the conversion result is stored in (D3, D2).
Binary floating-point number
Decimal fl oating-point number
Additional remark:
If the value in S exceeds the range of values which can be represented by the floating-point
numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 32-bit instruction (5 steps) 64-bit instruction
AH500
S : Data source
D : Conversion result
Real number: 23 bits; Ex ponent: 8 bi ts ; sign: 1 bit
D 1
D 0
Exponent
Real number
Mathem atic al form
D 3
D 2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Converting the binary floating-point
number into the decimal
floating-point number
L
SM SR
E
PR
AH500
Double word
Double word
[D2]
10
X
Function
K
16# "$"
DF
-
[D 3]
6 - 9 3

Advertisement

Table of Contents
loading

Table of Contents