NetLinx Programming
84
NetLinx Integrated Controllers (Firmware v4)- WebConsole & Programming Guide
Input/Output SEND_COMMANDs
NOTE:
I/O ports: Port 4 (NI-700). Channels: 1 - 8 I/O channels.
The following SEND_COMMANDs program the I/O ports on the Integrated Controller.
IR/Serial SEND_COMMANDs (Cont.)
Command
Description
XCHM
(Cont.)
Mode 3 Example:
[[100][100]…] <x> <x>
SEND_COMMAND IR_1,"'XCH-3'"
Transmits the IR code as 0-3.
SEND_COMMAND IR_1,"'XCH-34'"
Transmits the IR code as 3-4.
SEND_COMMAND IR_1,"'XCH-343'"
Transmits the IR code as 100-100-100-4-3.
Mode 4: Mode 4 sends the same sequences as the '
CH
' command. Only use Mode 4 with channels
0 - 199.
Mode 5 Example:
<x><x><x><x><enter>
SEND_COMMAND IR_1,"'XCH-3'"
Transmits the IR code as 0-0-0-3-enter.
SEND_COMMAND IR_1,"'XCH-34'"
Transmits the IR code as 0-0-3-4-enter.
SEND_COMMAND IR_1,"'XCH-343'"
Transmits the IR code as 0-3-4-3-enter.
SEND_COMMAND IR_1,"'XCH-1343'"
Transmits the IR code as 1-3-4-3-enter.
Mode 6 Example:
<x><x><x><x>
SEND_COMMAND IR_1,"'XCH-3'"
Transmits the IR code as 0-0-0-3.
SEND_COMMAND IR_1,"'XCH-34'"
Transmits the IR code as 0-0-3-4.
SEND_COMMAND IR_1,"'XCH-343'"
Transmits the IR code as 0-3-4-3.
SEND_COMMAND IR_1,"'XCH-1343'"
Transmits the IR code as 1-3-4-3.
I/O SEND_COMMANDs
Command
Description
GET DBT
Get Debounce Time
Syntax:
GET DBT <n>
Variable:
n = the channel number of the I/O input port
SET DBT
Set Debounce Time
Syntax:
SET DBT <n><v>
Variables:
n = the channel number of the I/O input port
v = Value 1-50 which sets the debounce time in increments of 50ms
Example:
SEND_COMMAND 5001:17:0,'SET DBT 1 10'
Sets channel 1 on the I/O port to 50ms Debounce time.
GET INPUT
Get the active state for the selected channels. An active state can be high (logic high) or low (logic low or contact closure).
Channel changes, Pushes, and Releases generate reports based on their active state. The port responds with either 'HIGH'
or 'LOW'.
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