Omron SYSMAC CP Series Instruction & Reference Manual page 284

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
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).
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
2-248
0.00
FSTR
D0
D10
D100
0
Conversion
0.327457
Storage
conditions
Total number of characters
3 . 2 7 4 5 7 E - 0 1
Spaces Fractional part
D100
20(Space)
D101
33(3)
D102
32(2)
D103
35(5)
D104
2D(-)
D105
31(1)
0001(Hex)
Scientific notation
D10
000B(Hex)
Total characters = 11 characters
D11
0003(Hex)
D12
Fractional digits = 3 digits (characters)
Rounded off
20(Space)
2E(.)
37(7)
45(E)
30(0)
00
CP1E CPU Unit Instructions Reference Manual(W483)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents