Floating-point Math Instructions
3-14-22 FLOATING-POINT TO ASCII: FSTR(448)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
516
FLOATING LESS THAN Comparison (<F)
15
S1: D100
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
S1+1: D101
0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1
Decimal value: 2.3
Does not yield an ON condition.
15
S1: D100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
S1+1: D101
0 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0
Decimal value: 4,294,967,296
Expresses a 32-bit floating-point value (IEEE754-format) in standard decimal
notation or scientific notation and converts that value to ASCII text.
FSTR(448)
S
S: First source word
C: First control word
C
D: First destination word
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
CIO 0 to CIO 6142 CIO 0 to CIO 6141 CIO 0 to CIO 6143
Work Area
W0 to W510
Holding Bit Area
H0 to H510
Auxiliary Bit Area
A0 to A958
Timer Area
T0000 to T4094
Counter Area
C0000 to C4094
DM Area
D0 to D32766
Indirect DM
@ D0 to
addresses in binary
@ D32767
Indirect DM
*D0 to *D32767
addresses in BCD
Constants
#00000000 to
#FFFFFFFF
(binary)
Data Registers
---
0
15
S2: D200
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
S2+1: D201
1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0
Decimal value: 3.5
2.3> 3.5
0
15
S2: D200
1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1
S2+1: D201
0 1 0 0 1 1 1 1 1 0 1 0 0 1 0 1
Decimal value: 5,566,555,656
4294967296<5566555656
Yields an ON condition.
Step program areas
Subroutines
OK
S
W0 to W509
H0 to H509
A0 to A957
T0000 to T4093
C0000 to C4093
D0 to D32765
@ D0 to
@ D32767
*D0 to *D32767
---
Section 3-14
0
FSTR(448)
@FSTR(448)
Not supported.
Interrupt tasks
OK
C
D
W0 to W511
H0 to H511
A448 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to
@ D32767
*D0 to *D32767
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers