NetLinx Programming
RS-232/422/485 Send_Commands (Cont.)
Command | Description | |
|
| |
GET BAUD | The port sends the parameters to the device that requested the information. | |
Get the | The port responds with: | |
port’s current communication | <port #>,<baud>,<parity>,<data>,<stop> 485 <ENABLED DISABLED> | |
parameters. | ||
Syntax: | ||
| ||
| SEND_COMMAND <DEV>,"'GET BAUD'" | |
| Example: | |
| SEND_COMMAND RS232_1,"'GET BAUD'" | |
| System response example: | |
| Device 1,38400,N,8,1 485 DISABLED | |
|
| |
HSOFF | Syntax: | |
Disable hardware | SEND_COMMAND <DEV>,"'HSOFF'" | |
handshaking (default). | Example: | |
| ||
| SEND_COMMAND RS232_1,"'HSOFF'" | |
| Disables hardware handshaking on the RS232_1 device. | |
|
| |
HSON | Syntax: | |
Enable RTS | SEND_COMMAND <DEV>,"'HSON'" | |
and CTS | Example: | |
hardware handshaking. | ||
SEND_COMMAND RS232_1,"'HSON'" | ||
| ||
| Enables hardware handshaking on the RS232_1 device. | |
|
| |
RXCLR | Syntax: | |
Clear all characters in the | SEND_COMMAND <DEV>,"'RXCLR'" | |
receive buffer waiting to be | Example: | |
sent to the Master. | ||
SEND_COMMAND RS232_1,"'RXCLR'" | ||
| ||
| Clears all characters in the RS232_1 device's receive buffer waiting to be sent | |
| to the Master. | |
|
| |
RXOFF | Syntax: | |
Disable the transmission of | SEND_COMMAND <DEV>,"'RXOFF'" | |
incoming received | Example: | |
characters to the Master | ||
SEND_COMMAND RS232_1,"'RXOFF'" | ||
(default). | ||
| Stops the RS232_1 device from transmitting received characters to the Master. | |
|
| |
RXON | Enables sending incoming received characters to the Master. This command is | |
Start transmitting received | automatically sent by the Master when a 'CREATE_BUFFER' program | |
instruction is executed. | ||
characters to the | ||
| ||
Master (default). | Syntax: | |
| SEND_COMMAND <DEV>,"'RXON'" | |
| Example: | |
| SEND_COMMAND RS232_1,"'RXON'" | |
| Sets the RS232_1 device to transmit received characters to the Master. | |
|
|
96 |