![background image](http://html.mh-extra.com/html/amx/dxlink/dxlink_instruction-manual_2938738090.webp)
NetLinx Programming of DXLink Transmitters and Receivers
90
Instruction Manual – DXLink™ Twisted Pair Transmitters/Receiver
IR SEND_COMMANDs (Transmitters and Receivers), continued
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 91).
SET MODE (IR command)