FSTR
Instruction
FLOATING-POINT TO ASCII
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
C
First control word
D
First destination word
C: FIrst Control Word
Data format
Total characters
Fractional digits
Note There are limits on the total number of characters
and the number of fractional digits.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
C
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
FSTR
@FSTR
Block program areas
Step program areas
OK
OK
Description
0 hex: Decimal format
1 hex: Scientific notation
2 to 18 hex (2 to 24 characters, see note)
0 to 7 hex (see note)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
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.)
• OFF in all other cases.
P_EQ
• ON if the conversion result is 0.
• OFF in all other cases.
Function
code
Expresses a 32-bit floating-point value (IEEE754-
448
format) in standard decimal notation or scientific
notation and converts that value to ASCII text.
FSTR
FSTR(448)
S
S: First source word
C
C: First control word
D
D: First destination word
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
REAL
2
UINT
3
UINT
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
TR
bits
---
---
503
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?