![background image](http://html1.mh-extra.com/html/amx/dxlink-hdmi-mmf-d/dxlink-hdmi-mmf-d_instruction-manual_2939353081.webp)
NetLinx Programming – DXLink Fiber TXs/RXs
81
Instruction Manual – DXLink™ Fiber Transmitters and Receivers, Duplex
Serial SEND_COMMANDs (Transmitters and Receivers), continued
RXCLR
Clear all characters in the receive
buffer waiting to be sent to the Master.
Syntax:
SEND_COMMAND <DEV>,"'RXCLR'"
Example:
SEND_COMMAND dvRXRS232,"'RXCLR'"
Clears all characters in the receive buffer waiting to be sent to the Master.
RXOFF
Disable the transmission of incoming
received characters to the Master
(default).
Syntax:
SEND_COMMAND <DEV>,"'RXOFF'"
Example:
SEND_COMMAND dvRXRS232,"'RXOFF'"
Disables the transmission of incoming received characters to the Master.
RXON
Start transmitting received characters
to the Master. Enables sending
incoming received characters to the
Master.
This command is automatically sent by the Master when a 'CREATE_BUFFER'
program instruction is executed.
Syntax:
SEND_COMMAND <DEV>,"'RXON'"
Example:
SEND_COMMAND dvRXRS232,"'RXON'"
Sets the RX RS-232 port to transmit received characters to the Master.
TXCLR
Stop and clear all characters waiting in
the transmit out buffer and stops
transmission.
Syntax:
SEND_COMMAND <DEV>,"'TXCLR'"
Example:
SEND_COMMAND dvRXRS232,"'TXCLR'"
Stops and clears all characters waiting in the RX serial port’s transmit buffer.
SET BAUD
(shown in examples)
Or
TSET BAUD
Use either of these commands to set
the serial communication parameters.
Note:
The
DXLink Fiber Transmitters
and Receivers only support RS-232
serial communication.
Note:
This value is not saved in non-volatile memory and is reset to default
(9600, 8, N, 1) at power-up.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD <baud>,<parity>,<data>, <stop>'"
Valid responses:
• baud = 115200, 76800, 57600, 38400, 19200, 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 115200,N,8,1'"
Sets the DEVICE_1 port’s communication parameters to 115,200 baud,
no parity, 8 data bits, and 1 stop bit.