To_String (Integer-To-Text String Conversion Group) - Omron NY532-5400 Reference Manual

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

Advertisement

**_TO_STRING (Integer-to-Text
String Conversion Group)
These instructions convert integers to text strings.
Instruction
**_TO_STRING
Integer-to-Text
String Conversion
Group
Variables
Name
Meaning
In
Data to
convert
Out
Conversion
result
* The valid range depends on the data type of In. Refer to Function for details.
Bit strings
In
Out
Function
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.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Input
Data to convert
Output
Conversion result
OK OK OK OK OK OK OK OK
Graphic expression
(@)**_TO_STRING
EN
ENO
In
"**" must be an integer data type.
Valid range
Depends on data type.
*
Integers
2 Instruction Descriptions
ST expression
Out:=**_TO_STRING(In);
"**" must be an integer data
Out
type.
Unit
Default
---
0
---
---
Times, durations, dates,
and text strings
2
OK
2-283

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents