Chapter 8 Logic Instructions 
8-287 
 
FB/FC 
FC 
LEFT/RIGHT extracts a specified-length string from the string variable or 
constant. 
   
  Parameters 
Meaning 
Description  Valid range   
In  Original string  Input  Original string 
Depends on the data type of the 
variable that the input parameter is 
L 
Number of 
characters to get 
Input 
Number of 
characters to get   
0~maximum number of characters 
Out  Extraction result    Output  Extraction result   
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 
In 
                                     
● 
L 
           
● 
                         
Out 
                                     
● 
Note: 
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data 
type.