FX Series Programmable Controlers Applied Instructions 5
5-137
5.10.3 EBCD (FNC 118)
Operation:
Converts a floating point value at S into separate
mantissa and exponent parts at D and D
+1
(scientific format).
Points to note:
a) The instruction must be double word format. The destinations D and D
+1 represent the
mantissa and exponent of the floating point number respectively.
b) To provide maximum accuracy in the conversion the mantissa D will be in the range 1000 to
9999 (or 0) and the exponent D
+1 corrected to an appropriate value.
c) E.g. S= 3.4567 × 10
-5
will become D= 3456, D+1 =-8
Mnemonic Function
Operands
Program steps
SD
EBCD
FNC 118
(Float to
Scientific
conversion)
Converts floating
point number
format to scientific
number format
D - must be in floating
point format (32 bits).
D - 2 consecutive
devices are used
D - mantissa
D
+1 - exponent.
DEBCD,
DEBCDP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
DEBCD
X14
D102 D200