Adddelimiter - Omron NY532-5400 Reference Manual

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

Advertisement

AddDelimiter

The AddDelimiter instruction converts the values in a structure to text strings and adds delimiters.
Instruction
AddDelimiter
Put Text Strings
with Delimiters
Variables
Name
Meaning
In
Input
structure
Delimiter
Delimiter
Out
Return
value
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
Delimiter
Refer to Function for the enumerators for the enumerated data type _eDELIMITER.
Out
Function
The AddDelimiter instruction starts from the beginning of input structure In and converts the values of
the members to text strings, which it separates with delimiter Delimiter and then concatenates. The con-
catenated text string is output to return value Out. A NULL character is placed at the end of Out.
The data type of Delimiter is enumerated type _eDELIMITER. The meanings of the enumerators are as
follows:
Enumerator
_COMMA
_TAB
_SEMICOLON
_SPACE
The values of the members of In are converted according to their data type, as described next.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Input
Structure to convert to text
strings
Delimiter
Output
Text strings with delimiters 1,986 bytes max. (1,985 single-
',' (comma)
'$T' (tab)
';'(semicolon)
' ' (blank character)
Graphic expression
AddDelimiter
EN
ENO
In
Delimiter
Valid range
Depends on data type of mem-
bers.
_COMMA
_TAB
_SEMICOLON
_SPACE
byte alphanumeric characters
plus the final NULL character)
Integers
Structure
Meaning
2 Instruction Descriptions
ST expression
Out:=AddDelimiter(In,Delim-
iter);
Out
Unit
Default
---
*
---
_COMMA
---
---
Times, durations,
dates, and text strings
2
OK
2-571

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents