
NXC-COM2 Dual COM Port Control Card
11
NXF CardFrame, NetLinx Control Cards, and NetModules
NXC-COM2 Send_Commands (Cont.)
Command
Description
SET BAUD
Set the RS-232/422/485
port's communication
parameters.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD
<baud>,<parity>,<data>,<stop> [485 <Enable |
Disable>]'"
Variables:
Baud: baud rates are: 230400, 115200, 76800, 57600, 38400, 19200, 9600,
4800, 2400, 1200, 600, 300, 150.
Parity: N (none), O (odd), E (even), M (mark), S (space)
Data: 7 or 8 data bits
Stop: 1 or 2 stop bits
485 Disable: Disables RS-485 mode and enables RS-232/422
485 Enable: Enables RS-485 mode and disables RS-234/422
Note: The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND SOMEDEVICE_1,"'SET BAUD 115200,N,8,1,
485 ENABLE'"
Sets the SOMEDEVICE port's communication parameters to 115,200 baud, no
parity, 8 data bits, 1 stop bit, and enables RS-485 mode.
TSET BAUD
Temporarily set the
RS-232/422/485 port's
communication
parameters for a device.
TSET BAUD works the same as SET BAUD, except that the changes are not
permanent, and the previous values will be restored if the power is cycled on the
device.
Syntax:
SEND_COMMAND <DEV>,"'TSET BAUD
<baud>,<parity>,<data>,<stop> [485 <Enable |
Disable>]'"
Variables:
Baud: baud rates are: 230400, 115200, 76800, 57600, 38400, 19200, 9600,
4800, 2400, 1200, 600, 300, 150.
Parity: N (none), O (odd), E (even), M (mark), S (space)
Data: 7 or 8 data bits
Stop: 1 or 2 stop bits
485 Disable: Disables RS-485 mode and enables RS-232/422
485 Enable: Enables RS-485 mode and disables RS-234/422
Note: The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND RS232_1,"'TSET BAUD 115200,N,8,1 485
ENABLE'"
Sets the RS232_1 port's communication parameters to 115,200 baud, no parity, 8
data bits, 1 stop bit, and enables RS-485 mode.
TXCLR
Stop and clear all
characters waiting in the
transmit out buffer and
stops transmission.
Syntax:
SEND_COMMAND <DEV>,"'TXCLR'"
Example:
SEND_COMMAND RS232_1,"'TXCLR'"
Clears and stops all characters waiting in the RS232_1 device's transmit buffer.
Summary of Contents for CONTROL CARDS AND NETMODULES
Page 4: ......
Page 12: ...NXF CardFrame and NetModules 6 NXF CardFrame NetLinx Control Cards and NetModules...
Page 20: ...NXC COM2 Dual COM Port Control Card 14 NXF CardFrame NetLinx Control Cards and NetModules...
Page 24: ...NXC I O10 Input Output Control Card 18 NXF CardFrame NetLinx Control Cards and NetModules...
Page 32: ...NXC IRS4 4 Port IR S Control Card 26 NXF CardFrame NetLinx Control Cards and NetModules...
Page 46: ...NXC VAI4 Analog Voltage Control Card 40 NXF CardFrame NetLinx Control Cards and NetModules...