EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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
Loading...
3. Instructions
524
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
DBL
DBL(843) converts the 16-bit signed binary value in S to double-precision (64-bit) floating-point data
(IEEE754-format) and places the result in words D to D+3. 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 DBLL(844).
Example conversions:
A signed binary value of 3 is converted to 3.0.
A signed binary value of -3 is converted to -3.0.
DBLL
DBLL(844) converts the 32-bit signed binary value in S+1 and S to double-precision (64-bit) floating-
point data (IEEE754-format) and places the result in words D to D+3. A single 0 is added after the
decimal point in the floating-point result.
Signed binary data within the range of -2,147,483,648 to 2,147,483,647 can be specified for S+1 and S.
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 -15,777,215.0.
D+1CH
SCH
DCHD+2CHD+3CH
Floating-point data (64 bits)
Signed binary data (16 bits)
S+1CH
D+1CH
SCH
DCHD+2CHD+3CH
Floating-point data (64 bits)
Signed binary data (32 bits)

Table of Contents

Related product manuals