Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 515

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Floating-point Math Instructions
Description
Flags
Precautions
482
Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
FLT(452) 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.
S
R+1
R
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(453).
Example conversions:
A signed binary value of 3 is converted to 3.0.
A signed binary value of –3 is converted to –3.0.
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
The content of S must contain signed binary data with a (decimal) value in the
range of –32,768 to 32,767.
S
H0 to H511
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
#0000 to #FFFF (binary)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Signed binary data (16 bits)
Floating-point data (32 bits)
Operation
OFF
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
ON if the result is negative.
OFF in all other cases.
Section 3-14
R
H0 to H510
A448 to A958
T0000 to T4094
C0000 to C4094
D0 to D32766
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents