User manual
IEC61131 User and Reference Manual 
April 22, 2008     
271 
getcom 
Get serial port settings 
Description 
The getcom function block returns the configuration settings for a serial port.  
comX
getcom
baud
type
fullDuplex
dataBits
parity
stopBits
txFlowControl
rxFlowControl
timeOut
Arguments 
Inputs 
Type 
Description 
comX 
Integer 
Communication port to get serial port settings, 1 to 4. 
Outputs 
Type 
Description 
type 
Integer 
Port type 
0 = automatic 
1 = RS232 
3 = RS485 
6 = RS232 MODEM 
7 = RS232 Collision Avoidance 
baud 
Integer 
Baud rate 
 0 = 75 baud   1 = 110 baud 
 2 = 150 baud   3 = 300 baud 
 4 = 600 baud   5 = 1200 baud 
 6 = 2400 baud   7 = 4800 baud 
 8 = 9600 baud   9 = 19200 baud 
10 =38400 baud 
11 = 115200 baud   
12 = 57600 baud  
fullDuplex 
Boolean 
Full-duplex operation when TRUE. 
Half-duplex operation when FALSE. 
parity 
Integer 
Parity type 
0 = none 
1 = even 
2 = odd 










