Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-244
CP1E CPU Unit Instructions Reference Manual(W483)
FSTR
Applicable Program Areas
Operands
C: First Control Word
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
FLOATING-POINT TO ASCII FSTR @FSTR 448
Expresses a 32-bit floating-point value (IEEE754-
format) in standard decimal notation or scientific
notation and converts that value to ASCII text.
Symbol
FSTR
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S First source word REAL 2
C First control word UINT 3
D First destination word UINT Variable
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
S
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
C, D ---
Name Label Operation
Error Flag P_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 +o or -o.
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.)
Equals Flag P_EQ ON if the conversion result is 0.
OFF in all other cases.
D: First destination word
FSTR(448)
S
C
D
C: First control word
S: First source word
0 hex: Decimal format
1 hex: Scientific notation
2 to 18 hex (2 to 24 characters, see note)
0 to 7 hex (see note)
Note There are limits on the total number of characters
and the number of fractional digits.
Data format
Total characters
Fractional digits