String_To_** (Text String-To-Bit String Conversion Group) - Omron NY532-5400 Reference Manual

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

Advertisement

STRING_TO_** (Text String-to-Bit
String Conversion Group)
These instructions convert text strings to bit strings.
Instruction
STRING_TO_**
Text String-to-Bit
String Conversion
Group
Variables
Name
Meaning
In
Data to
convert
Out
Conversion
result
* The valid range depends on the data type of Out. Refer to Function for details.
Bit strings
In
Out
OK OK OK OK
Function
These instructions interpret the content of a text string, In, as a hexadecimal number and convert it to a
bit string.
Basically, the text string in In must consist only of '0' to '9', 'a' to 'f', and 'A' to 'F'. The following excep-
tion is possible.
• Any continuous blank characters or zeros at the beginning of In are ignored.
• Any single underbars ('_') at any location are ignored.
• An error occurs if there are two or more consecutive underbars ('_') at any location.
• An error occurs if there are any underbars ('_') at the beginning or end.
• An error occurs if there are any underbars ('_') between the minus signs ('−') or plus sign ('+') and the
number at the beginning.
The name of the instruction is determined by the data type of conversion result Out. For example, if Out
is the BYTE data type, the instruction is STRING_TO_BYTE.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Input
Data to convert
Output
Conversion result
Graphic expression
(@)STRING_TO_**
EN
ENO
In
"**" must be a bit string data type.
Valid range
*
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=STRING_TO_** (In);
"**" must be a bit string data
Out
type.
Unit
Default
---
''
---
---
Times, durations, dates,
and text strings
2
OK
2-301

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents