Reference Guide AXB-232+ OVERVIEW AXCESS RS-232/422 Interface The AXB-232+ is an AXlink interface device that provides remote control for devices that require multiple control protocols. The AXB-232+ features include the following: • • • • • • Support of RS-232, RS-422, and RS-485 devices, such as audio visual and computer-based devices. Ability to run AXCESS programs separately from the AXC-EM programs and filter data from the controlled devices. This relieves the AXlink bus and the AXC-EM of the processing time for controlling those devices. (Requires AXCESS Version 3.0 or higher.) Support of software XON/XOFF and hardware handshaking. Support of the following asynchronous data standards: • Baud rates: 300, 600, 1,200, 2,400, 4,800, 9,600, 19,200, and 38,400. • Data bits: 7 and 8. • Stop bits: 1 and 2. • Parity: None, Odd, Even, Mark, and Space. LED status indicators for receive, transmit, and AXlink. Installation options: • Can be placed up to 3,000 feet away from the main control system. • Can be rack mounted using an optional Accessory Rack Kit (AC-RK). Size: 1.5 inch (38 mm) height, 5.5 inch (140 mm) width, and 5.5 inch (140 mm) depth Weight: 1.106 lb (501.67 grams) 032-004-1016 9/14/94 AMX reserves the right to alter specifications without notice at any time. RS-232/422 Interface Page 2 INSTALL The AXB-232+ is configured for RS-232/RS-422. To configure the unit for 100 Ohm line input termination for RS-422 or RS-485, refer to Internal, Jumpers and follow the instructions. When you have properly configured the unit, complete the following steps: 1. 2. 3. 4. 5. 6. Rack Mount (Optional) Set the device number on the DEVICE DIP switch. (See Front Panel .) Set the stop bits, data bits, parity, and baud rate on the RS232/422 DIP switch. Connect the AXlink wiring to the connector on the AXB-232+. (See Rear Panel .) Connect the power wiring to the connector on the AXB-232+. (See Rear Panel, Connectors .) Connect the RS-232, RS422, or RS-485 wiring to the AXB-232+. Connect the AXlink connector to the AXB-232+. To rack mount the AXB-232+ in the optional AC-RK, follow these steps: 1. 2. 3. 4. 5. 6. Disconnect the AXlink and RS-232 connectors. Unscrew and remove the two screws on the front panel of the AXB-232+. Remove the front panel and the space bracket behind the panel. Place the unit in the appropriate opening in the AC-RK. Place the front panel of the AXB-232+ on the front of the rack, over the unit. Fasten the front panel to the rack and to the unit with the two screws you removed. INTERNAL Jumpers CAUTION: Static electricity can damage electronic components. Before opening the device, discharge any accumulated static electricity from your body by touching a grounded metal object. To configure the unit for RS-422/100 Ohm or RS-485 use, follow these steps: 1. 2. 3. 4. Disconnect the AXlink and RS-232/422/485 connectors. Unscrew the two screws on the rear panel, and remove the panel. Slide the circuit board out of the enclosure. Locate the appropriate jumper, E1 or E2, on the right of the circuit board. • 5. 6. 7. 8. E1: To set RS-422 port for RS-485 use, set jumper E1 to ON. The default setting is OFF. • E2: To terminate RS-422 input with 100 Ohms, set jumper E2 to ON ON. The default setting is OFF. OFF Remove the jumper from the OFF staking pins, and position it on the ON staking pins. Slide the circuit board back into the enclosure. Replace the panel, and refasten the screws. Reconnect the AXlink and RS-232/422/485 connectors. © 1994 AMX Corporation, 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners. RS-232/422 Interface Page 3 FRONT PANEL LEDs AXlink The green LED indicates AXlink power and data status, as follows: • • One blink per second indicates power is active and AXlink is functional. Full on indicates power is active and AXlink communication is not functional. TX The red TX LED blinks to indicate that the AXB-232+ is transmitting RS-232, RS-422, or RS485 data. RX The red RX LED blinks to indicate that the AXB 232+ has received RS-232, RS-422, or RS-485 data. NOTE: The RX LED blinks even if the data is incorrect. DIP Switches Device Use the eight-position Device DIP switch to set the AXB-232+ as an AXlink device. It can be one of 255 devices in an AXCESS, AXCENT, or AXCENT 2 system. The device number must match the assignment of the device in the AXCESS program. Set the device number with the total of all ON (down) positions. (See the chart below.) As an example, the DIP switch below defines device number 97 (1+32+64=97). ON 1 2 3 4 5 6 7 8 Switch 1 2 3 4 5 6 7 8 Value 1 2 4 8 16 32 64 128 AMX standard device numbers are assigned as follows. • Cards are 1 through 95. • Boxes are 96 through 127. • Panels are 128 through 255. NOTE: The device number takes effect only on power-up. If you later change the device number, remove and reconnect the AXlink connector. This enters the new device number into memory. RS232/422 Use the eight-position RS232/422 DIP switch to set the communications parameters. Set the with the ON and OFF positions. (Refer to the following chart.) 1 Switch Function Setting Value 1 Stop Bits Off 2 bits On 1 bit 2 Data Bits Off 7 bits On 8 bits 3 Off On Off On Off On Off On 2 3 4 5 6 7 8 4 Parity Off Unused Off Unused On Unused On Unused Off Mark Off Even On Odd On None ON 5 6 Off Off Off On Off Off Off On On Off On On On Off On On © 1994 AMX Corporation. 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners. 7 Baud Rate Off 300 Off 600 On 1,200 On 2,400 Off 4,800 Off 9,600 On 19,200 On 38,400 8 Off Off Off Off On On On On RS-232/422 Interface Page 4 (Rear Panel) REAR PANEL Connectors When communicating via RS-232, connect the wiring as shown. RS232 RS232 TX RX GND Hardware Handshaking RS232 RS422 RS422 RS485 RS485 AXlink AXlink RX TX RTS CTS CTS RTS GND GND TX + TX RX + RX+ RXTX+ RX - TX- TX + TX RX + RX+ RXTX+ RX - TX- PWR AXP AXM GND Device The connectors are captive wire compression connectors. GND When the controlled device requires hardware handshaking, connect the wiring as shown. Device Device When communicating via RS-422, connect the wiring as shown. Device When communicating via RS-485, connect the wiring as shown. PWR AXP AXM GND 12 VDC + (White Stripe) GND System Install the AXlink bus and +12 VDC power wiring as shown. Power Supply © 1994 AMX Corporation, 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners. RS-232/422 Interface PROGRAM Commands Page 5 Use the /AXB command in AXCESS Version 3.0 (or higher) to load the program you create for the AXB-232+. The AXB-232+ supports the same command set as the AXC-232. Command: Function: 'B9MOFF' (Default.) Sets data bit mode to normal with DIP switch setting. 'B9MON' Enables a special mode to override DIP switch settings. The mode, nine data bits with one stop bit, overrides the data, stop, and parity settings. When the AXB-232+ issues this command, it locks in the baud rate determined by the current DIP switch setting. 'CHARD-<time in 100 microsecond increments 0-255>' Sets delay between all transmitted characters to increment specified. Example: 'CHARD-10' sets 1mS delay between all transmitted characters. 'CTSPSH!' Enables PUSHes, RELEASEs, and status on channel 255 for CTS hardware handshake input. If CTS is high, then channel is on. 'EOFF' (Default.) Disables the 'EON' command. 'EON' Forces the AXB-232+ to ignore the transmitted characters on its receiver. When using RS-485, the transmitter and receiver are tied together. 'HSOFF' (Default.) Disables hardware handshaking. 'HSON' Enables hardware handshaking. 'RXCLR' Clears any characters in the Receive buffer waiting to be sent to the AXC-EM. 'RXOFF' (Default.) AXB-232+ will not pass on received characters to the AXC-EM. Enables AXB-232+ to send characters it receives to the AXC-EM. 'RXON' The AXC-EM automatically sends this command to the AXB-232+ when it executes a 'CREATE_BUFFER' program instruction. 'TXCLR' Clears and stops any characters waiting in the Transmit buffer. 'TXTO-<time in 100 millisecond increments>' Sets the time-out for characters that are being transmitted out the RS232/422/485 port. When the Transmit buffer becomes full, the AXB-232+ waits the specified time before discontinuing its attempts to transmit a character. The AXB-232+ implements the time-out only when one of the following occurs: • • It is using handshaking and the transmitter cannot transmit. The baud rate is so low that the Transmit buffer becomes full while attempting to send long strings. The power-up default is 50, or 5 seconds. 'XOFF' (Default.) Disables software handshaking. 'XON' Enables software handshaking. 'ZAP!' Clears the AXCESS program in the AXB-232+. © 1994 AMX Corporation. 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners. RS-232/422 Interface Page 6 SEND_STRING Escape Sequences The AXB-232+ does not regard certain three-character combinations within a SEND_STRING program as literal characters, but as commands. The following are those combinations. Command: Function: "27,17,<time in 100 microsecond increments 1-255>" Sends a break character of the specified length of time. "27,18,1" Sets the ninth data bit to 1 for all of the following characters to be transmitted. Used in conjunction with the 'B9MON' command. "27,18,0" Clears the ninth data bit to 0 for all of the next characters to be transmitted. Used in conjunction with the 'B9MON' command. "27,19,<time in 1 millisecond increments 1-255>" Inserts a delay before the next character to be transmitted. "27,20,0" Asserts RTS hardware handshake output high. "27,20,1" Asserts RTS hardware handshake output low. AXCESS Program Characteristics The AXB-232+ is capable of running AXCESS programs. It handles string processing, relieving AXlink and the AXC-EM of the processing times AXB-232+ Statements The AXCESS program of the AXB-232+ communicate with the AXC-EM as Device 0. It Device communicates with the RS232/422 Input/Output (I/O) of the AXB-232+ as Device 1. Statement: Function: CREATE_BUFFER 0,buffer Places strings that come from the AXC-EM into buffer. If no CREATE_BUFFER 0, exists, the incoming strings from the AXC-EM are sent out the RS232 port. CREATE_BUFFER 1,buffer Places strings that come from the RS-232 port into buffer. If no CREATE_BUFFER 1, exists, the incoming strings are sent to the AXC-EM. CREATE_LEVEL 0,level,variable Places levels sent by the AXC-EM for level in variable.. OFF[0,channel] Sends a RELEASE to the AXC-EM. Sends message that channel is off. Executes RELEASE[0, channel] within AXB-232+. OFF[1,channel] Turns off channel. This command has no external effect. It can be used as status. ON[0,channel] Sends a PUSH to the AXC-EM. Sends a message that channel is on. Executes PUSH[0, channel] within AXB-232+. ON[1,channel] Turns on channel. This command has no external effect. It can be used as status. SEND_COMMAND 0,command Sends command to the AXC-EM. SEND_COMMAND 1,command Sends command to the AXB-232+ as if the AXC-EM had sent it. SEND_LEVEL 0,level,variable Sends variable as the value for level level. SEND_STRING 0,string Sends string to the AXC-EM. SEND_STRING 1,string Sends string out the RS232 port. © 1994 AMX Corporation, 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners. RS-232/422 Interface Page 7 AXlink Master Statements The following are the AXlink Master statements for the AXB-232+. Statement: Function: ON[AXB_232,channel] Executes PUSH[0, channel] within AXB-232+. OFF[AXB_232,channel] Executes RELEASE[0, channel] within AXB-232+. SEND_COMMAND AXB_232, command AXB-232+ interprets command. SEND_LEVEL AXB_232,level,variable Places the variable into the CREATE_LEVEL variable, if it was defined in the AXB-232+ DEFINE_START section. SEND_STRING AXB_232,string Places the string is into the CREATE_BUFFER buffer, if you defined the buffer in the AXB-232+ DEFINE_START section. If it was not, this command transmits the string out the RS-232 port Reserved channels The following channels are reserved on Device 0: Channel: Function: Channel 254 Reflects AXlink status. When AXlink is active, this channel is on. When AXlink is inactive, this channel is off. When this channel changes state, the AXB-232+ generates a PUSH or RELEASE. Channel 255 Reflects the state of the CTS input. If the AXB-232+ receives a 'CTSPSH' command, it generates PUSHes for both the AXC-EM and the AXB-232+. © 1994 AMX Corporation. 11995 Forestgate Drive, Dallas, Texas 75243 800/952-6995 FAX 972/907-2053 All trademarks contained in this document are the property of their respective owners.