To_String (Bit String-To-Text String Conversion Group) - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

**_TO_STRING (Bit String-to-Text
String Conversion Group)
These instructions convert bit strings to text strings.
Instruction
**_TO_STRING
Bit String-to-Text
String Conversion
Group
Variables
Name
Meaning
In
Data to
convert
Out
Conver-
sion result
* The valid range depends on the data type of In. Refer to Function for details.
Bit strings
In
OK OK OK OK
Out
Function
These instructions convert a bit string, In, to a text string. The hexadecimal number given in In is output
to conversion result Out as a text string. The #16 prefix of the hexadecimal number is not output to Out.
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,
the upper digits of Out will contain 0. In other words, the unused digits are padded with zeros. The num-
ber of bytes in Out (including the NULL character) will always be one greater than twice the number of
bytes in In.
The name of the instruction is determined by the data type of In. For example, if In is the WORD data
type, the instruction is WORD_TO_STRING.
NJ-series Instructions Reference Manual (W502)
Name
FB/FUN
FUN
I/O
Description
Input
Data to convert
Output
Conversion result
Graphic expression
(@)**_TO_STRING
EN
ENO
In
Out
"**" must be a bit string data type.
Valid range
Depends on data type.
*
Integers
2 Instruction Descriptions
ST expression
Out:=**_TO_STRING(In);
"**" must be a bit string data
type.
Unit
Default
0
---
---
---
Times, durations,
dates, and text strings
2
OK
2-255

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents