32-Bit To Floating: Fltl; Floating-Point Add: +F - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Floating-point Math Instructions
5-24-4 32-BIT TO FLOATING: FLTL(––)
Limitations
Description
Flags
5-24-5 FLOATING-POINT ADD: +F(––)
Ladder Symbols
FLTL(−−)
@FLTL(−−)
S
R
000
The result will not be exact if a number with an absolute value greater than
16,777,215 (the maximum value that can be expressed in 24-bits) is con-
verted.
DM 6143 to DM 6655 cannot be used for R.
When the execution condition is OFF, FLTL(––) is not executed. When the
execution condition is ON, FLTL(––) converts the 32-bit signed binary value in
S+1 and S to 32-bit floating-point data (IEEE754-format) and places the result
in R+1 and R. A single 0 is added after the decimal point in the floating-point
result.
S+1
R+1
Signed binary data within the range of –2,147,483,648 to 2,147,483,647 can
be specified for S+1 and S. The floating point value has 24 significant binary
digits (bits). The result will not be exact if a number greater than 16,777,215
(the maximum value that can be expressed in 24-bits) is converted by
FLTL(––).
Example Conversions:
A signed binary value of 16,777,215 is converted to 16,777,215.0.
A signed binary value of –16,777,215 is converted to –16,777,215.0.
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON if both the exponent and mantissa of the result are 0.
Ladder Symbols
+F(−−)
@+F(−−)
Au
Ad
R
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
IR, SR, AR, DM, EM, HR, LR
R
Third operand: Always 000
000
Signed binary data (32 bits)
S
Floating-point data (32 bits)
R
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Au
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ad
R
IR, SR, AR, DM, EM, HR, LR
Section 5-24
Operand Data Areas
S: First source word
R: First result word
−−−
Operand Data Areas
Au: First augend word
Ad: First addend word
R: First result word
355

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents