Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 539

Table of Contents

Advertisement

Converting to ASCII Text in Scientific Notation
When CIO 0.00 is ON in the following example, FSTR(448) converts the floating-point data in D1 and
D0 to scientific-notation ASCII text and writes the ASCII text to the destination words beginning with
D100. The contents of the control words (D10 to D12) specify the details on the data format (scientific
notation, 11 characters total, 3 fractional digits).
0.00
15
1 0 1 0 1 0 0 0 0 1 1 1 0 0 1 0
D0
0 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1
D1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
FSTR
D0
D10
D100
Conversion
0
0.327457
0001(Hex)
Storage
D10
conditions
000B(Hex)
D11
0003(Hex)
D12
Total number of characters
3 . 2 7 4 5 7 E - 0 1
Fractional
Spaces
Rounded off
part
D100
20 (Space)
20 (Space)
D101
33 (3)
2E (.)
D102
32 (2)
37 (7)
D103
35 (5)
45 (E)
D104
2D ( )
30 (0)
D105
31 (1)
00
Scientific notation
Total characters = 11 characters
Fractional digits = 3 digits (characters)
3. Instructions
3
501

Advertisement

Table of Contents
loading

Table of Contents