Concat - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

CONCAT

The CONCAT instruction joins two to five text strings.
Instruction
CONCAT
Concatenate String
Variables
Name
Meaning
In1 to InN
Strings to
join
Out
Result of
joining
* If you omit the input parameter that connects to InN, the default value is not applied, and a building error will occur. For
example, if N is 3 and the input parameters that connect to In1 and In2 are omitted, the default values are applied, but if the
input parameter that connects to In3 is omitted, a building error will occur.
Bit strings
In1 to InN
Out
Function
The CONCAT instruction joins 2 to 5 text strings in strings to join In1 to InN in that order. It adds a NULL
character to the end.
The following example is for when In1 is 'AB', In2 is 'C' and In3 is 'DEF'. The value of variable abc will
be 'ABCDEF'.
LD
EN
'AB'
In1
'C'
In2
'DEF'
In3
2-548
Name
FB/FUN
FUN
I/O
Description
Input
Text strings to join, where N
is 2 to 5
Output
Text string that resulted from
joining
CONCAT
ENO
abc
Graphic expression
(@)CONCAT
EN
ENO
In1
:
InN
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=CONCAT('AB', 'C', 'DEF');
NY-series Instructions Reference Manual (W560)
ST expression
Out:=CONCAT(In1,···, InN);
Out
Unit
Default
---
''*
---
---
Times, durations,
dates, and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents