Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 540

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

• Scientific Notation
Real numbers expressed as an integer part, fractional part, and exponent part.
Example: 1.2456E-2 (1.2456 10
The data format (decimal or scientific notation) is detected automatically.
The ASCII text must be stored in S and subsequent words in the following order: leftmost byte of S,
rightmost byte of S, leftmost byte of S+1, rightmost byte of S+1, etc.
Decimal notation
SP SP 1
(2D)(20)(20)(31)(32)(33)(2E)(34)(35)(36)(37)(38)
Spaces are
ignored during
conversion
Scientific notation
SP SP 1 . 2 3 4 E + 0 2
(2D)(20)(20)(31)(2E)(32)(33)(34)(45)(2B)(31)(38)
Spaces are
ignored during
conversion
CS/CJ/NSJ Series Instructions Reference Manual (W474)
-2
)
Conversion of ASCII text number to
15
87
0
32-bit floating-point data
2D
20
20
31
123.456
32
33
2E
34
Sign
35
36
37
38
00
00
2 3 . 4 5 6 7 8
If there are more than 6 digits, the 7th
and higher digits are ignored.
(Digits do not include the sign, decimal
point, and exponent characters.)
15
87
0
Conversion of ASCII text number
2D
20
to 32-bit floating-point data
20
31
2
1.234 10
2E
32
33
34
Sign
45
2B
30
32
00
00
32-bit floating-point data
1 1 1 0 1 0 0 1 0 1 1 1 1 0 0 1
1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 0
Exponent
Stored in D and D+1.
15
D
1 1 1 0 1 0 0 1 0 1 1 1 1 0 0 1
D+1
1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 0
32-bit floating-point data
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1
1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 0
Exponent
Stored in D and D+1.
15
D
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1
D+1
1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 0
3. Instructions
0
0
503
3

Advertisement

Table of Contents
loading

Table of Contents