Concatenation Of Character Strings - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.10.5 Concatenation of character strings

All the specified character strings are concatenated.
Function definition
Function definition
6 - 73
STRING CONCAT( STRING S1, STRING S2,....,STRING Sn );
Argument
Argument Name
IN/OUT
S1 to Sn
IN
Return value
Return Value
STRING
Concatenation result (character string data)
Remarks: This function cannot be used with the Basic model QCPU.
Secure the area of the number of concatenated characters + 1 character as
the data area that will store the concatenated character string data.
Example of use
Argument Type
STRING
s_result :=
CONCAT( s_ary1, s_ary2,
s_ary3 );
BOOL_ CONCAT_E( BOOL EN, STRING S1, STRING S2,....,STRING Sn, STRING
D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the character string data stored in
(*
sData1 and sData2 are concatenated, and the result is stored into Result.
M0 := CONCAT_E( X0, sData1, sData2, Result ) ;
CONCAT
CONCAT_E
Data to be concatenated (character string data)
ST Program
Conversion Result
LD
$MOV
$+
$+
Execution condition (Function is executed only when the result is TRUE)
Data to be concatenated (character string data)
Concatenation result (character string data)
Description
Description
Used Instruction
SM400
LD,$MOV,$+
s_ary1
s_result
s_ary2
s_result
s_ary3
s_result
Description
Description
*)
*)
6 - 73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents