EasyManuals Logo
Home>Omron>Controller>SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 User Manual

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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
Page #685 background imageLoading...
Page #685 background image
645
Floating-point Math Instructions Section 3-15
Converting to ASCII Text in Scientific Notation
When CIO 000000 is ON in the following example, FSTR(448) converts the
floating-point data in D00001 and D00000 to scientific-notation ASCII text and
writes the ASCII text to the destination words beginning with D00100. The
contents of the control words (D00010 to D00012) specify the details on the
data format (scientific notation, 11 characters total, 3 fractional digits).
3-15-26ASCII TO FLOATING-POINT: FVAL(449)
Purpose Converts a number expressed in ASCII text (decimal or scientific notation) to
a 32-bit floating-point value (IEEE754-format) and outputs the floating-point
value to the specified words.
This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
2E (.)
32 (2)
00
1010100001110010
0011111010100111
FSTR
D00000
D00010
D00100
000000
15 0
D00000
D00001
0000(Hex)
0007(Hex)
0003(Hex)
D00010
D00011
D00012
0.327457
30 (0)
33 (3)
37 (7)
D00100
D00101
D00102
D00103
0.327457
20 (Space)20 (Space)
Decimal notation
Total characters = 7 characters
Fractional digits = 3 digits (characters)
Conversion
Rounded off
Storage
conditions
Spaces
Total number of characters
Fractional part
2E (.)
37 (7)
45 (E)
30 (0)
00
1010100001110010
0011111010100111
FSTR
D00000
D00010
D00100
000000
15 0
D00000
D00001
0001(Hex)
000B(Hex)
0003(Hex)
D00010
D00011
D00012
0.327457
33 (3)
32 (2)
35 (5)
2D (−)
31 (1)
D00100
D00101
D00102
D00103
D00104
D00105
3.27457E-01
20 (Space)20 (Space)
Scientific notation
Total characters = 11 characters
Fractional digits = 3 digits (characters)
Conversion
Rounded off
Storage
conditions
Spaces
Total number of characters
Fractional
part

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CJ - REFERENCE MANUAL 08-2008
CategoryController
LanguageEnglish

Related product manuals