![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030684.webp)
644
Floating-point Math Instructions
Section 3-15
a) Decimal Notation (C = 0000 hex)
• When there is no fractional part (C+2 = 0000 hex):
1
≤
Number of Integer Digits
≤
24
• When there is a fractional part (C+2 = 0001 to 0007 hex):
1
≤
Number of Integer Digits
≤
(24
−
Fractional digits
−
2)
b) Scientific Notation (C = 0001 hex)
1 digit (fixed)
3.
Limits on the Number of Digits in the Fractional Part
a) Decimal Notation (C = 0000 hex)
• Fractional Digits
≤
7
• Also: Fractional Digits
≤
(Total Number of ASCII Characters
−
3)
b) Scientific Notation (C = 0001 hex)
• Fractional Digits
≤
7
• Also: Fractional Digits
≤
(Total Number of ASCII Characters
−
3)
Flags
Examples
Converting to ASCII Text in Decimal Notation
When CIO 000000 is ON in the following example, FSTR(448) converts the
floating-point data in D00001 and D00000 to decimal-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 (decimal notation, 7 characters total, 3 fractional digits).
Name
Label
Operation
Error Flag
ER
ON if the data in S+1 and S is not a valid floating-point
number (NaN).
ON if the data in S+1 and S is +
∞
or
–
∞
.
ON if the Data Format setting in C is not 0000 or 0001.
ON if the Total Characters setting in C+1 is not within the
allowed range. (See
1. Limits on the Total Number of
ASCII Characters
above for details.)
ON if the Fractional Digits setting in C+2 is not within the
allowed range. (See
3. Limits on the Number of Digits in
the Fractional Part
above for details.)
OFF in all other cases.
Equals Flag
=
ON if the conversion result is 0.
OFF in all other cases.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...