NetLinx Programming
I/O Port Commands (Port 4)
The I/O port is located at Port 4 in NetLinx D:P:S nomenclature.
In these examples: <DEV> = device.The I/O port supports the following commands.
I/O Send Commands
Command | Description | |
|
| |
GET INPUT | An active state can be high (logic high) or low (logic low or contact closure). | |
Get the active state for the | Channel changes, Pushes, and Releases generate reports based on their | |
active state. The port responds with either 'HIGH' or 'LOW'. | ||
selected channels. | ||
Syntax: | ||
| ||
| SEND_COMMAND <DEV>,"'GET INPUT <channel>'" | |
| Variable: | |
| channel = Input channel 1 - 8. | |
| Example: | |
| SEND_COMMAND IO,"'GET INPUT 1'" | |
| Gets the I/O port's active state. | |
| The system could respond with: | |
| INPUT1 ACTIVE HIGH | |
|
| |
SET INPUT | An active state can be high (logic high) or low (logic low or contact closure). | |
Set the input channel's active | Channel changes, Pushes, and Releases generate reports based on their | |
state. | active state. Setting an input to ACTIVE HIGH will disable the ability to use that | |
channel as an output. | ||
| ||
| Syntax: | |
| SEND_COMMAND <DEV>,"'SET INPUT <channel> <state>'" | |
| Variable: | |
| channel = Input channel 1 - 8. | |
| state = Active state HIGH or LOW (default). | |
| Example: | |
| SEND_COMMAND IO,"'SET INPUT 1 HIGH'" | |
| Sets the I/O channel to detect a high state change, and disables output on the | |
| channel. | |
|
|
IR RX Port Channels (Port 5)
IR / Serial Ports Channels
00001 - 00255
PUSH and RELEASE channels for the received IR code.
100 |