Mitsubishi Electric MELSEC-Q/L Programming Manual page 161

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

Advertisement

• The values to be input to (s1) and (s2) are string type data within the range from 0 to 255 bytes.
• The value to be input to n is word (signed) type data within the range from 1 to 255.
(The input value must not exceed the number of characters of character string input to input variable (s1).)
■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.
Operation error
• No operation error occurs.
Program example
■INSERT(_E)
The program which inserts the character string input to (s2) to the specified position in the character string input to (s1), and
outputs the operation result from (d).
• Function without EN/ENO (INSERT)
[Structured ladder/FBD]
[ST]
g_string3 := INSERT(g_string1, g_string2, g_int1);
• Function with EN/ENO (INSERT_E)
[Structured ladder/FBD]
[ST]
g_bool3 := INSERT_E(g_bool1, g_string1, g_string2, g_int1, g_string3);
ENO
TRUE
*1
FALSE
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.7 Standard Character String Functions
5
159

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents