NetLinx Programming
RS-232/422/485 Send_Commands (Cont.)
Command | Description | |
|
| |
CHARDM | Syntax: | |
Set the delay time between | SEND_COMMAND | |
all transmitted characters to | Variable: | |
the value specified | ||
time = 0 - 255. Measured in 1 millisecond increments. | ||
(in 1 Millisecond increments). | ||
Example: | ||
| ||
| SEND_COMMAND | |
| Sets a | |
|
| |
CTSPSH | This command turns On (enables) channel tracking of the handshaking pins. If | |
Enable Pushes, Releases, | Clear To Send (CTS) is set high, then channel 255 is On. | |
Syntax: | ||
and Status information to be | ||
reported via channel 255 | SEND_COMMAND <DEV>,"'CTSPSH'" | |
using the CTS hardware | ||
Example: | ||
handshake input. | ||
| ||
| SEND_COMMAND RS232_1,"'CTSPSH'" | |
| Sets the RS232_1 port to detect changes on the CTS input. | |
|
| |
CTSPSH OFF | This command disables tracking. Turns CTSPSH Off. | |
Disable Pushes, Releases, | Syntax: | |
and Status information to be | SEND_COMMAND <DEV>,"'CTSPSH OFF'" | |
reported via channel 255. | ||
Example: | ||
| ||
| SEND_COMMAND RS232_1,"'CTSPSH OFF'" | |
| Turns off CTSPSH for the specified device. | |
|
| |
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. | |
|
|
90 |