User manual

IEC61131 User and Reference Manual
April 22, 2008
336
setcom
Set serial port settings
Description
The setcom function sets the configuration settings for a serial port. Use this function only
when serial port settings need to be changed within a program. It is more convenient to use
the Controller Serial Ports Settings dialog to download settings with the program.
Serial port settings are set to the default values when the controller is initialized.
set
comX
type
baud
fullDuplex
setcom
Q
parity
dataBits
stopBits
rxFlowControl
txFlowControl
timeOut
Arguments
Inputs
Type
Description
Set
Boolean
Sets the serial port settings for the serial port when
TRUE. Set this input to FALSE once the serial port
settings have been set.
comX
Integer
Communication port to set serial port settings. Valid
values are 1 to 4.
Type
Integer
Port Type
0 = automatic
1 = RS232
3 = RS485
6 = RS232 MODEM
7 = RS232 Collision Avoidance
Default = 1
Baud
Integer
Supported Baud rates. The baud rates displayed will
depend on the controller type selected. Some baud rate
selection may not be available for all controller types.
Refer to Hardware documentation for controller type.
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