Link Character Strings - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

22.4

Link Character Strings

CONCAT(_E)
These functions concatenate character strings and output the result.
*1
Ladder diagram
[Without EN/ENO]
s1
d
s2
*1 The input variable "s" can be changed in the range of 2 to 28.
Setting data
■Descriptions, types, and data types
Argument
Description
EN
Execution condition (TRUE: Execution, FALSE: Stop)
s1 to s28
Input
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
Processing details
■Operation processing
• These functions concatenate the character string input to the input variables (s2) to (s28) after the one input to (s1) and
output the result from (d).
• When character strings are concatenated, 00H indicating an end of the character string specified by (s1) is ignored and the
character string specified by (s2) to (s28) is concatenated.
• When the concatenated character string exceeds 255 bytes, these functions output a character string within 255 bytes.
(s1)
(s1)
"ABCDE"
"ABCDE"
High-order byte Low-order byte
High-order byte Low-order byte
1st word
1st word
42H (B)
41H (A)
42H (B)
41H (A)
2nd word
2nd word
44H (D)
44H (D)
43H (C)
43H (C)
3rd word
3rd word
00H
00H
45H (E)
45H (E)
• A value input to the input variables (s1) and (s2) to (s28) is the STRING type data value and within the range from 0 to 255
byte(s).
[With EN/ENO]
EN
ENO
s1
d
s2
(s2)
(s2)
"123456"
"123456"
High-order byte Low-order byte
High-order byte Low-order byte
1st word
32H (2)
32H (2)
31H (1)
31H (1)
1st word
2nd word
2nd word
34H (4)
34H (4)
33H (3)
33H (3)
3rd word
3rd word
36H (6)
36H (6)
35H (5)
35H (5)
4th word
4th word
00H
00H
*1
Structured text
[Without EN/ENO]
d:=CONCAT(s1,s2);
[With EN/ENO]
d:=CONCAT_E(EN,ENO,s1,s2);
Type
Input variable
Input variable
Output variable
Output variable
(d)
(d)
"ABCDE123456"
"ABCDE123456"
High-order byte Low-order byt
High-order byte Low-order byte
1st word
42H (B)
42H (B)
1st word
2nd word
2nd word
44H (D)
44H (D)
3rd word
3rd word
31H (1)
31H (1)
4th word
4th word
33H (3)
33H (3)
5th word
5th word
35H (5)
35H (5)
6th word
6th word
00H
00H
22 CHARACTER STRING FUNCTIONS
Data type
BOOL
STRING(255)
BOOL
STRING(255)
e
41H (A)
41H (A)
43H (C)
43H (C)
45H (E)
45H (E)
32H (2)
32H (2)
34H (4)
34H (4)
36H (6)
36H (6)
22.4 Link Character Strings
22
819

Advertisement

Table of Contents
loading

Table of Contents