EasyManuals Logo
Home>Omron>Controller>CQM1H - PROGRAM

Omron CQM1H - PROGRAM User Manual

Omron CQM1H - PROGRAM
602 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #379 background imageLoading...
Page #379 background image
354
Floating-point Math Instructions Section 5-24
Example conversions:
A floating-point value of 2,147,483,640.5 is converted to 2,147,483,640.
A floating-point value of –2,147,483,640.5 is converted to –2,147,483,640.
Flags 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.)
ON if the data in S+1 and S is not a number (NaN).
ON if the integer portion of S+1 and S is not within the range of
–2,147,483,648 to 2,147,483,647.
EQ: ON if the result is 0000 0000.
5-24-3 16-BIT TO FLOATING: FLT(––)
Limitations The content of S must contain signed binary data with a (decimal) value in the
range of –32,768 to 32,767.
DM 6143 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, FLT(––) is not executed. When the exe-
cution condition is ON, FLT(––) converts the 16-bit signed binary value in 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.
Only values within the range of –32,768 to 32,767 can be specified for S. To
convert signed binary data outside of that range, use FLTL(––).
Example conversions:
A signed binary value of 3 is converted to 3.0.
A signed binary value of –3 is converted to –3.0.
Flags 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 Operand Data Areas
FLT(−− )
S
R
000
@FLT(−− )
S
R
000
S: Source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
R: First result word
IR, SR, AR, DM, EM, HR, LR
Third operand: Always 000
−−−
R+1 R
S
Floating-point data (32 bits)
Signed binary data (16 bits
)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CQM1H - PROGRAM and is the answer not in the manual?

Omron CQM1H - PROGRAM Specifications

General IconGeneral
BrandOmron
ModelCQM1H - PROGRAM
CategoryController
LanguageEnglish

Related product manuals