Chapter 8 Logic Instructions 
8-285 
 
FB/FC 
FC 
INSERT inserts a string to the specified position in the string variable or 
constant.   
 
  Parameters 
Meaning 
Description  Valid range   
In1  Original string    Input  Original string   
Depends on the data type of the 
variable that the input parameter is 
In2  String to insert    Input  String to insert   
Depends on the data type of the 
variable that the input parameter is 
P 
Input 
0~ maximum length of the string   
Out  Insertion result    Output 
Staring after 
insertion 
Depends on the data type of the 
variable that the output parameter is 
 
 
Boolean 
Bit string  Integer 
Real 
number 
Time, date 
String 
BOOL 
BYTE 
WORD 
LWORD 
UINT 
UDINT 
ULINT 
SINT 
INT 
DINT 
LINT 
REAL 
STRING 
In1 
                                     
● 
In2 
                                     
● 
P 
           
● 
                         
Out 
                                     
● 
Note: 
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data 
type.