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 #301 background imageLoading...
Page #301 background image
2-253
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Type Conversion Instructions
2
**_TO_STRING (Integer-to-Text String Conversion Group)
**_TO_STRING (Integer-to-Text
String Conversion Group)
These instructions convert integers to text strings.
* The valid range depends on the data type of In. Refer to Function for details.
These instructions convert an integer, In, to a text string. The number given in In is output to conversion
result Out as a text string. A NULL character (16#00) is placed at the end of Out.
The text in Out is left-aligned. If the value in In requires fewer digits than provided by the data type of In,
zeros will not be output to the upper digits of Out. In other words, leading zeros are suppressed. If In
contains a negative value, a minus sign (−) is added to the front of the text string.
The name of the instruction is determined by the data type of In. For example, if In is the INT data type,
the instruction is INT_TO_STRING.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_STRING Integer-to-Text
String Conversion
Group
FUN Out:=**_TO_STRING(In);
"**" must be an integer data
type.
Variables
Name Meaning I/O Description Valid range Unit Default
In Data to
convert
Input Data to convert Depends on data type.
--- 0
Out Conver-
sion result
Output Conversion result *
--- ---
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 OK OK OK OK OK OK OK
Out OK
Function
"**" must be an integer data type.
(@)**_TO_STRING
EN ENO
In Out

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