5 - 19 5 - 19
5 MELSEC FUNCTIONS
5.5.13 Character string data connection (2 devices) STRING_PLUS_M
The specified character string data are connected.
Function definition
BOOL STRING_PLUS_M (BOOL EN, STRING S1, STRING D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Data to connect (character string data)
D IN/OUT
Data to be connected, connection result (character string
data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, character string "ABC" is connected *)
(* to the end of the character string stored in StrResult and the connected
*)
(* character strings are stored into StrResult.
*)
STRING_PLUS_M (X0, "ABC" StrResult);
Corresponding MELSEC command
$+ (Character string connection)
5.5.14 Character string data connection (3 devices) STRING_PLUS_3_M
The specified character string data are connected.
Function definition
BOOL STRING_PLUS_3_M (BOOL EN, STRING S1, STRING S2, STRING D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Data to be connected (character string data)
S2 IN
Data to connect (character string data)
D OUT
Connection result (character string data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the character string stored in
*)
(* StrData2 is connected to the end of the character string stored in StrData1
*)
(* and the connected character strings are stored into StrResult.
*)
STRING_PLUS_3_M (X0, StrData1, StrData2, StrResult);
Corresponding MELSEC command
$+ (Character string connection)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......