AMX nxc manual NXC-COM2 SendString Escape Sequences, Txclr, Xoff, Xon

Page 15

NXC-COM2 Dual COM Port Control Card

NXC-COM2 Send_Commands (Cont.)

Command Description

TSET BAUD Temporarily set the RS-232/422/485 port's communication parameters for a device. Works the same as SET BAUD, except that the changes are not permanent, and the previous values will be restored if the power is cycled on the device.

 

Syntax:

 

SEND_COMMAND <DEV>,"'TSET BAUD <baud>,<parity>,<data>,<stop> [485 <Enable Disable>]'"

 

Variables:

 

Baud: baud rates are: 230400, 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

 

485 Disable: Disables RS-485 mode and enables RS-232/422

 

485 Enable: Enables RS-485 mode and disables RS-234/422

 

Note: The only valid 9 bit combination is (baud),N,9,1.

 

Example:

 

SEND_COMMAND RS232_1,"'TSET BAUD 115200,N,8,1 485 ENABLE'"

 

Sets the RS232_1 port's communication parameters to 115,200 baud, no parity, 8 data bits, 1 stop bit,

 

and enables RS-485 mode.

 

 

TXCLR

Stop and clear all characters waiting in the transmit out buffer and stops transmission.

 

Syntax:

 

SEND_COMMAND <DEV>,"'TXCLR'"

 

Example:

 

SEND_COMMAND RS232_1,"'TXCLR'"

 

Clears and stops all characters waiting in the RS232_1 device's transmit buffer.

 

 

XOFF

Disable software handshaking (default).

 

Syntax:

 

SEND_COMMAND <DEV>,"'XOFF'"

 

Example:

 

SEND_COMMAND RS232_1,"'XOFF'"

 

Disables software handshaking on the RS232_1 device.

 

 

XON

Enable software handshaking.

 

Syntax:

 

SEND_COMMAND <DEV>,"'XON'"

 

Example:

 

SEND_COMMAND RS232_1,"'XON'"

 

Enables software handshaking on the RS232_1 device.

NXC-COM2 Send_String Escape Sequences

NXC-COM2 Send_String Escape Sequences

Command Description

27,17,<time> Send a break character for a specified duration to a specific device. Syntax:

SEND_STRING <DEV>,"27,17,<time>"

Variable:

time = 1 - 255. Measured in 100 microsecond increments.

Example:

SEND_STRING RS232_1,"27,17,10"

Sends a break character of 1 millisecond to the RS232_1 device.

NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide

9

 

 

Image 15
Contents Operation/Reference Guide NetLinx Cardframe Control Cards NetModulesAMX Limited Warranty and Disclaimer Table of Contents NXC-I/O10 Input/Output Control Card NXC-VOL4 Volume Control Card Page Overview NXF Cardframe SpecificationsNXF Cardframe Specifications NXF CardFrame and NetModulesRear Panel Components +12 VDC PWRPosition Port NXS-NMS NetModules SpecificationsNXS-NMS NetModules NumberMounting modules into an equipment rack Deviceid SpecificationsNXC-COM2 Specifications NXC-COM2 Dual COM Port Control CardPinouts and Wiring Configuration NXC-COM2 Channel AssignmentNXC-COM2 Programming Information GET Baud ChardChardm CtspshRxon HsonRxclr RxoffXON NXC-COM2 SendString Escape SequencesTxclr Xoff27,20,0 Command Description 27,18,027,18,1 27,19,timeNXC-I/O10 Input/Output Control Card NXC-I/O10 SpecificationsNXC-I/O10 Channel Assignments Pinouts, Signals, and I/O Mode FunctionsSetting the Switch/Voltage Mode Jumpers NXC-I/O10 Pinouts, Signals, and I/O Mode FunctionsSetting the Voltage Clamp Jumper +12V or Open +12 V mode setting defaultOpen mode setting Page NXC-IRS4 4-Port IR/S Control Card NXC-IRS4 SpecificationsPinouts, Signals, and Functions NXC-IRS4 Channel AssignmentsProgramming Information Cton CtofPOF GET ModeIroff PODSET IO Link PtofPton SET Input LinkXchm SET ModeMode 1 Example x x x enter XCHMode 3 Example 100100… x Command Description XchmPage NXC-REL10 Channel Assignments NXC-REL10 SpecificationsNXC-REL10 Relay Control Card Pinouts and FunctionsNo Normally open NXC-REL10 Connections/WiringNXC-VAI4 Specifications NXC-VAI4 Analog Voltage Control CardIref Channel State Function NXC-VAI4 Pinouts, Signals, and FunctionsChannel Assignments NXC-VAI4 Channel AssignmentsStops voltage ramping on Output 4 at current value NXC-VAI4 Output Level Assignments NXC-VAI4 Output Level AssignmentsLevel Description NXC-VAI4 SendCommands NXC-VAI4 Input Level AssignmentsNXC-VAI4 Input Level Assignments Levon LevoffRate CurveLevel Value Functions. Negative voltages are not valid for Inputs Page NXC-VOL4 Specifications NXC-VOL4 Volume Control CardNXC-VOL4 Connections/Wiring NXC-VOL4 Pinouts, Signals, and FunctionsAudio Channel Gain Ratio Jumper Settings NXC-VOL4 Levels NXC-VOL4 Channel AssignmentsNXC-VOL4 Levels NXC-VOL4 Channel Assignments per portSendlevel NXC-VOL4 SendCommandsPage It’s Your World Take Control