Realtoformatstring - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

RealToFormatString

The RealToFormatString instruction converts a REAL variable to a text string with the specified format.
Instruction
RealToFormatString REAL-to-Formatted
Text String
Variables
Name
Meaning
In
Data to
convert
Exponent
Exponent
Sign
Sign column
MinLen
Minimum
number of
digits
DecPlace
Precision
Out
Conversion
result
Bit strings
In
Exponent
OK
Sign
OK
MinLen
DecPlace
Out
Function
The RealToFormatString instruction converts REAL variable In to a text string. In is expressed as an
alphanumeric text string and output to conversion result Out. A NULL character (16#00) is placed at the
end of Out.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Data to convert
TRUE: Exponent
FALSE: No exponent
TRUE: Sign column
Input
FALSE: No sign column
Minimum number of digits in Out
Number of decimal digits in Out
Output
Conversion result
OK
OK
Graphic expression
(@)RealToFormatString
EN
ENO
In
Exponent
Sign
MinLen
DecPlace
Valid range
Depends on
data type.
0 to 15
327 bytes max.
(326 single-byte
alphanumeric
characters plus
the final NULL
character)
Integers
OK
2 Instruction Descriptions
ST expression
Out:=RealToFormat-
String(In, Exponent, Sign,
MinLen, DecPlace);
Out
Unit
Default
0.0
FALSE
---
6
---
---
Times, durations, dates,
and text strings
2
OK
2-289

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents