Programming

 

RS-232/422/485 Send_Commands (Cont.)

 

 

Command

Description

 

 

SET BAUD

Syntax:

Set the RS-232/422/485

SEND_COMMAND <DEV>,"'SET BAUD

port's communication

<baud>,<parity>,<data>,<stop> [485 <Enable Disable>]'"

parameters.

Variables:

 

 

baud = baud rate is: 115200.

 

parity = N (none), O (odd), E (even), M (mark), S (space).

 

data = 7 or 8 data bits.

 

stop = 1 and 2 stop bits.

 

485 Disable = Disables RS-485 mode and enables RS-422.

 

485 Enable = Enables RS-485 mode and disables RS-422.

 

Note: The only valid 9 bit combination is (baud),N,9,1.

 

Example:

 

SEND_COMMAND RS232_1,"'SET 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.

 

 

TSET BAUD

TSET BAUD works the same as SET BAUD, except that the changes are not

Temporarily set the RS-232/

permanent, and the previous values will be restored if the power is cycled on

the device.

422/485 port's

Syntax:

communication parameters

for a device.

SEND_COMMAND <DEV>,"'TSET BAUD

 

 

<baud>,<parity>,<data>,<stop> [485 <Enable Disable>]'"

 

Variables:

 

baud = baud rate is: 115200.

 

parity = N (none), O (odd), E (even), M (mark), S (space).

 

data = 7, 8, or 9 data bits.

 

stop = 1 or 2 stop bits.

 

485 Disable = Disables RS-485 mode and enables RS-422.

 

485 Enable = Enables RS-485 mode and disables RS-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

Syntax:

Stop and clear all characters

SEND_COMMAND <DEV>,"'TXCLR'"

waiting in the transmit out

Example:

buffer and stops transmis-

SEND_COMMAND RS232_1,"'TXCLR'"

sion.

 

Clears and stops all characters waiting in the RS232_1 device's transmit buffer.

 

 

XOFF

Syntax:

Disable software

SEND_COMMAND <DEV>,"'XOFF'"

handshaking (default).

Example:

 

 

SEND_COMMAND RS232_1,"'XOFF'"

 

Disables software handshaking on the RS232_1 device.

 

 

NI-3101-SIG Signature Series NetLinx Integrated Controller

157

 

 

Page 163
Image 163
AMX NI-3101-SIG manual SET Baud, Tset Baud, Txclr, Xoff