NetLinx Programming
RS-232/422/485 Send_Commands (Port 2)
The serial port is located at Port 2 in NetLinx D:P:S nomenclature. The serial port supports the following commands and escape sequences. In these examples: <DEV> = device.
RS-232/422/485 Send_Commands
Command | Description | |
|
| |
B9MOFF | Disables | |
Set the port's communication | settings on the serial/data port to the last programmed parameters. This | |
parameters for stop and data | command works in conjunction with the 'B9MON' command. | |
Syntax: | ||
bits according to the software | ||
settings on the | SEND_COMMAND <DEV>,"'B9MOFF'" | |
(default). | ||
Example: | ||
| ||
| SEND_COMMAND RS232_1,"'B9MOFF'" | |
| Sets the | |
|
| |
B9MON | Enables | |
Override and set the current | the 'B9MOFF' command. | |
Syntax: | ||
communication settings and | ||
parameters on the | SEND_COMMAND <DEV>,"'B9MON'" | |
port to 9 data bits with one | ||
Example: | ||
stop bit. | ||
| ||
| SEND_COMMAND RS232_1,"'B9MON'" | |
| Resets the | |
| stop bit, and | |
|
| |
CHARD | Syntax: | |
Set the delay time between | SEND_COMMAND | |
all transmitted characters to | Variable: | |
the value specified (in 100 | ||
time = 0 - 255. Measured in 100 microsecond increments. | ||
Microsecond increments). | ||
Example: | ||
| ||
| SEND_COMMAND | |
| Sets a | |
|
| |
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. | |
|
|
95 | |
|
|