EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #307 background imageLoading...
Page #307 background image
2-259
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Type Conversion Instructions
2
RealToFormatString
RealToFormatString
The RealToFormatString instruction converts a REAL variable to a text string with the specified format.
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.
Instruction Name FB/FUN Graphic expression ST expression
RealToFormat-
String
REAL-to-Format-
ted Text String
FUN Out:=RealToFormat-
String(In, Exponent, Sign,
MinLen, DecPlace);
Variables
Name Meaning I/O Description Valid range Unit Default
In Data to
convert
Input
Data to convert
Depends on
data type.
---
0.0
Exponent Exponent TRUE: Exponent
FALSE: No exponent
FALSE
Sign Sign column TRUE: Sign column
FALSE: No sign column
MinLen Minimum
number of
digits
Minimum number of digits in Out
6
DecPlace Precision Number of decimal digits in Out 0 to 15
Out Conversion
result
Output Conversion result 327 bytes max.
(326 single-byte
alphanumeric
characters plus
the final NULL
character)
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK
Exponent OK
Sign OK
MinLen OK
DecPlace OK
Out OK
Function
(@)RealToFormatString
EN ENO
In Out
Exponent
Sign
MinLen
DecPlace

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals