Subdelimiter - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

SubDelimiter

The SubDelimiter instruction reads delimited data from a text string and stores the results as the values
of the members of a structure.
Instruction
Name
SubDelimiter
Get Text
Strings Minus
Delimiters
Variables
Name
Meaning
In
Input text
string
Delimiter
Delimiter
OutStruct
Storage
structure
Out
Return value
Bit strings
In
Delimiter
Refer to Function for the enumerators for the enumerated data type _eDELIMITER.
OutStruct
Out
OK
Function
The SubDelimiter instruction converts the delimited text string data from input text string In and stores
the results as the values of the members of storage structure OutStruct. The text strings are delimited
with delimiter Delimiter. The results are stored as the values of the members in order from the start of
the structure.
The data type of Delimiter is enumerated type _eDELIMITER. The meanings of the enumerators are as
follows:
Enumerator
_COMMA
_TAB
_SEMICOLON
_SPACE
2-582
FB/FUN
FUN
I/O
Description
Input
Delimited text string to
convert to the values of
the members of a struc-
ture
Delimiter
In-out
Structure to store results
of data conversion
Output
Always TRUE
Integers
',' (comma)
'$T' (tab)
';'(semicolon)
' '(blank character)
Graphic expression
SubDelimiter
EN
ENO
In
Out
OutStruct
Delimiter
Valid range
1,986 bytes max. (1,985
single-byte alphanumeric
characters plus the final
NULL character)
_COMMA, _TAB,
_SEMICOLON, _SPACE
8,192 bytes max.
TRUE only
Structure
Meaning
NY-series Instructions Reference Manual (W560)
ST expression
Out:=SubDelimiter(In,
OutStruct,
Delimiter);
Unit
Default
---
''
---
_COMMA
---
---
---
---
Times, durations,
dates, and text strings
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents