String Concatenation - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

String concatenation

CONCAT(_E)
High
Basic
Process
performance
Structured ladder/FBD
CONCAT_E
EN
ENO
s1
s2
to
s28
The following function(s) can go in the dotted squares.
CONCAT, CONCAT_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Concatenates the character string input to (s2) to (s28) following the one input to (s1), and outputs the operation result from
(d).
This function concatenates character string (s2) to (s28) with ignoring '00H', which indicates the end of character string (s1).
If the concatenated character string has over 255 bytes, the character string up to 255 bytes is output.
s1
'ABCDE'
High-order byte Low-order byte
1st word
42
(B)
H
2nd word
44
(D)
H
3rd word
00
H
• The values to be input to (s1) and (s2) to (s28) are string type data within the range from 0 to 255 bytes.
• The number of pins of (s) can be changed in the range from 2 to 28.
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
5 APPLICATION FUNCTIONS
156
5.7 Standard Character String Functions
LCPU
Redundant Universal
ST
ENO:=
CONCAT_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1 to s28(_IN)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
+
41
(A)
1st word
H
43
(C)
2nd word
H
45
(E)
3rd word
H
4th word
ENO
TRUE
FALSE
(EN, s1, s2
n28, d);
s2
'123456'
High-order byte Low-order byte
32
(2)
31
(1)
H
H
34
(4)
33
(3)
H
H
36
(6)
35
(5)
H
H
00
H
*1
Data type
Bit
String (255)
Bit
String (255)
d
'ABCDE123456'
High-order byte Low-order byte
1st word
42
(B)
41
H
2nd word
44
(D)
43
H
3rd word
31
(1)
45
H
4th word
33
(3)
32
H
5th word
35
(5)
34
H
6th word
00
36
H
(d)
Operation output value
Undefined value
(A)
H
(C)
H
(E)
H
(2)
H
(4)
H
(6)
H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents