![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.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...