NetLinx Programming of DXLink Transmitters and Receivers
89
Instruction Manual – DXLink™ Twisted Pair Transmitters/Receiver
IR SEND_COMMANDs (Transmitters and Receivers), continued
Command
Description
CTOF
Set the duration of the Off
time (no signal) between IR
pulses for channel and IR
function transmissions. Off
time settings are stored in
non-volatile memory.
This command sets the delay time between pulses generated by the 'CH' or 'XCH' Send
Commands in tenths of seconds.
Syntax:
SEND_COMMAND <DEV>,"'CTOF',<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,"'CTOF',10"
Sets the off time between each IR pulse to 1 second.
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 BAUD
Get the IR port’s current
communication
parameters.
The port sends the parameters to the device that requested the information.
Syntax:
SEND_COMMAND <DEV>,"'GET BAUD'"
Example:
SEND_COMMAND dvRXRS232,"'GET BAUD'"
The port responds with:
Port <port #>,<baud>,<parity>,<data>,<stop>
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 BAUD
Use to set the IR
communication
parameters.
Note:
Before sending the
SET BAUD command, you
must set
the IR port to Data
mode (for the SET MODE
command, see page 90)
Note:
This value is not saved in non-volatile memory and is reset to default (9600, N, 8, 1)
at power-up.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD <baud>,<parity>,<data>, <stop>'"
Variables:
• baud = 9600, 4800, 2400, 1200, 600, 300, 150
• parity = N (none), O (odd), E (even), M (mark), S (space)
• data = 7 or 8 data bits
• stop = 1 or 2 stop bits
Note:
The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND DEVICE_1,"'SET BAUD 1200,N,8,1'"
Sets the DEVICE_1 port’s communication parameters to 1200 baud, no parity, 8 data
bits, and 1 stop bit.