Instruction manual

NetLinx Programming of DXLink Transmitters and Receivers
83
Instruction Manual – DXLink™ Twisted Pair Transmitters/Receiver
IR SEND_COMMANDs (Transmitters and Receivers), continued
CTON
Set the total time of IR
pulses transmitted and is
stored in non-volatile
memory.
This command sets the pulse length for each pulse generated by the 'CH' (see
previous page) or 'XCH' (see next page) Send Commands in tenth of a second
increments.
Syntax:
SEND_COMMAND <DEV>,"'CTON',<time>"
Variable:
time = 0 to 255. Given in 1/10th of a second increments. Default is 5
(0.5 seconds).
Example:
SEND_COMMAND IR_1,"'CTON',20"
Sets the IR pulse duration to 2 seconds.
GET MODE
Poll the IR/Serial port’s
configuration parameters
and report the active mode
settings to the device
requesting the
information.
Note: Works with Port 3
only.
Syntax:
GET MODE
The port responds with:
<port #> <mode>,<carrier>,<io link channel>.
Example:
SEND_COMMAND IR_1,"'GET MODE'"
The system could respond with:
PORT 3 IR,CARRIER,IO LINK 0
IROFF
Halt and clear all active or
buffered IR commands
being output on the
designated port.
Syntax:
SEND_COMMAND <DEV>,"'IROFF'"
Example:
SEND_COMMAND IR_1,"'IROFF'"
Immediately halts and clears all IR output signals on the IR port.
SET MODE
Set an IR port to either IR,
Serial, or Data mode.
Syntax:
SEND_COMMAND <DEV>,"'SET MODE',<mode>"
Variable:
mode =
IR (standard IR output with carrier)
SERIAL (IR without carrier and waveform inverted)
DATA (1-way serial/TTL)
Example:
SEND_COMMAND IR_1,"'SET MODE IR'"
Sets the IR_1 port to IR mode for IR control.
SP
Generate a single IR pulse.
You can use the 'CTON' to set pulse lengths and the 'CTOF' to set time Off
between pulses.
Syntax:
SEND_COMMAND <DEV>,"'SP',<code>"
Variable:
code = IR code value 1 to 252 (253 to 255 reserved).
Example:
SEND_COMMAND IR_1,"'SP',25"
Pulses IR code 25 on IR port on RX.
XCH
Transmit IR codes.
Syntax:
SEND_COMMAND <DEV>,"'XCH <channel>'"
Variable:
channel = 0 to 999.
Note: For detailed usage examples, refer to the 'XCHM' command (see
page 84).