Chapter 3 Creating and Editing Screens 
  GETCHARS (Get Characters by COM Port) 
Equation 
Var1 = GETCHARS (Var2, Var3, Var4) 
 
Explanation 
This command gets characters by COM port. Var1 is the response value after the 
communication, Var2 is the starting address of transmission data, Var3 is the data 
length, and Var4 is the allowance communication time (unit is ms). The result will be 
stored in Var1. 
 
Remark 
  Var1: Response value after communication 
1: Completed normally 
0: Failed 
  Var1 and Var2 can be internal memory only. Var3 and Var4 can be internal 
memory or constant. 
 
Example 
Get three consecutive WORD data starting from $1 and store the result in $0. 
 
 
  SELECTCOM (Select COM Port) 
Equation 
SELECTCOM (Var1) 
 
Explanation 
This command is used to select COM port. When not connecting to the external 
controller (set PLC to NULL) in Options > Configuration in Screen Editor software 
program, the user can use two COM ports (0:COM1, 1:COM2, 3:COM3 (for some 
models only)) at the same time.   
 
Revision May, 2010      3-359