AMX Dual COM Port Card NXC-COM2 User Manual

Size:
200.06 Kb
Download

Installation Guide

NXC-COM2 Dual COM Port Card, 2RS-232/422/485

NetLinx Control Cards and NetModules

NetLinx Control Cards can be installed in either the NXF CardFrame, NI-4000,or NetModules. For detailed information on the cards, refer to theNetLinx CardFrame, Control Cards, and NetModules Instruction Manual availableon-linevia www.amx.com.

ICSNET Status LED

LED 1

LED 4

FIG. 1 NXC-COM2Dual COM Port Control card

NXC-COM2Specifications

The NXC-COM2Dual COM Port Control Card provides twoRS-232/422/485control ports and LED feedback for remote sources connected to the NetLinx CardFrame,NI-4000,or NetModule:

NXC-COM2(FG 2022) Specifications

Power Requirements:

140 mA @ 12 VDC

 

 

Operation:

Data 1-2:TwoRS-232/422/485control ports, supports

 

XON/XOFF, CTS/RTS

 

 

Status LEDs

• Red LEDs show TX (transmit) data activity

(2 per channel):

• Yellow LEDs show RX (receive) data activity

 

 

- LED 1: CH1 TX (red)

 

- LED 2: CH1 RX (yellow)

 

- LED 3: CH2 TX (red)

 

- LED 4: CH2 RX (yellow)

 

• Green ICSP status LED (located on the board):

 

- On = card is not in communication with the Master.

 

- Blinks (1-secondintervals) during normal operation.

 

 

Connections/wiring:

Two 10-pin3.5 mmcaptive-screwterminals

 

 

DEVICE_ID:

$0107

 

 

NXC-COM2Pinouts and Wiring Information:

NXC-COM2Pinouts

NXC-COM2Wiring Configuration

 

 

 

 

 

 

 

 

 

Pin

Signal

Function

RS-232

RS-422

RS-485

 

 

 

 

 

 

 

 

 

1

GND

Signal ground

X

X

 

 

 

 

 

 

 

 

 

 

 

 

 

2

RXD1

Receive data

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

TXD1

Transmit data

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

CTS1

Clear to send

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

RTS1

Request to send

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

TX1+

Transmit data

 

X

X (strap to pin 8)

 

 

 

 

 

 

 

 

 

 

 

 

7

TX1-

Transmit data

 

X

X (strap to pin 9)

 

 

 

 

 

 

 

 

 

 

8

RX1+

Receive data

 

X

X (strap to pin 6)

 

 

 

 

 

 

 

 

 

 

9

RX1-

Receive data

 

X

X (strap to pin 7)

 

 

 

 

 

 

 

 

 

10

+12 VDC

Power

Optional

Optional

 

 

 

 

 

 

 

 

 

 

 

 

 

11

GND

Signal ground

X

X

 

 

 

 

 

 

 

 

 

 

 

 

 

12

RXD2

Receive data

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

TXD2

Transmit data

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14

CTS2

Clear to send

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

RTS2

Request to send

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

TX2+

Transmit data

 

X

X (strap to pin 18)

 

 

 

 

 

 

 

 

 

 

 

 

 

17

TX2-

Transmit data

 

X

X (strap to pin 19)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

18

RX2+

Receive data

 

X

X (strap to pin 16)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

19

RX2-

Receive data

 

X

X (strap to pin 17)

 

 

 

 

 

 

 

 

 

 

 

 

20

+12 VDC

Power

Optional

Optional

 

 

 

 

 

 

 

 

 

 

 

 

 

NXC-COM2Channel Assignment:

Channel 255 is the CTS (Clear To Send) push channel. It reflects the state of the CTS input if a 'CTSPSH' command was sent to the device.

NXC-COM2Programming Information:

NXC-COM2Send_Commands

B9MOFF

Syntax:

Disable 9-bitin

SEND_COMMAND <DEV>,"'B9MOFF'"

232/422/455 mode.

Example:

This command works in

SEND_COMMAND SOMEDEVICE_1,"'B9MOFF'"

conjunction with the

Sets the port settings on SOMEDEVICE to match the port's

B9MON command.

configuration settings.

 

 

B9MON

Syntax:

Enable 9-bitin

SEND_COMMAND <DEV>,"'B9MON'"

232/422/455 mode.

Example:

This command works in

SEND_COMMAND SOMEDEVICE_1,"'B9MON'"

conjunction with the

Resets the SOMEDEVICE port's communication parameters to

B9MOFF command.

nine data bits and one stop bit.

 

 

CHARD

Syntax:

Set the delay time

SEND_COMMAND <DEV>,"'CHARD-<Time>'"

between all transmitted

time: 0 - 255. Measured in 100 microsecond increments.

characters to the value

Example:

specified (in 100 micro-

SEND_COMMAND RS232_1,"'CHARD-10'"

second increments).

Sets a 1-milliseconddelay between all transmitted characters.

 

 

 

CHARDM

Syntax:

Set the delay time

SEND_COMMAND <DEV>,"'CHARDM-<Time>'"

between all transmitted

time: 0 - 255. Measured in 1 millisecond increments.

characters to the value

Example:

specified

SEND_COMMAND RS232_1,"'CHARDM10'"

(in 1 millisecond

Sets a 10-milliseconddelay between all transmitted

increments).

characters.

 

 

 

CTSPSH

If Clear To Send (CTS) is set high, then channel 255 is On.

Enable Pushes,

Syntax:

Releases, and status

SEND_COMMAND <DEV>,"'CTSPSH'"

information to be reported

Example:

via channel 255 using the

SEND_COMMAND RS232_1,"'CTSPSH'"

CTS hardware handshake

Sets the RS232_1 port to detect changes on the CTS input.

input.

 

 

 

CTSPSHOFF

Syntax:

Disable Pushes,

SEND_COMMAND <DEV>,"'CTPSH OFF'"

Releases, and Status

Example:

information to be reported

SEND_COMMAND RS232_1,"'CTSPSH OFF'"

via channel 255.

Disables the RS232_1 port to detect changes on the CTS

 

input.

 

 

GET BAUD

Syntax:

Get the RS-232/422/485

SEND_COMMAND <DEV>,"'GET BAUD'"

port’s current

Example:

communication parame-

SEND_COMMAND RS232_1,"'GET BAUD'"

ters.

Device responds with:

Device sends the

<port #>,<baud>,<parity>,<data>,<stop>

response out the Master

485 <ENABLED | DISABLED>

program port.

 

 

 

HSOFF

Syntax:

Disable hardware

SEND_COMMAND <DEV>,"'HSOFF'"

handshaking (default).

Example:

 

SEND_COMMAND RS232_1,"'HSOFF'"

 

Disables hardware handshaking on the RS232_1 device.

 

 

HSON

Syntax:

Enable RTS

SEND_COMMAND <DEV>,"'HSON'"

(ready-to-send)and CTS

Example:

(clear-to-send)hardware

SEND_COMMAND RS232_1,"'HSON'

handshaking.

Enables hardware handshaking on the RS232_1 device.

 

 

 

RXCLR

Syntax:

Clear all characters in the

SEND_COMMAND <DEV>,"'RXCLR'"

receive buffer waiting to

Example:

be sent to the Master.

SEND_COMMAND RS232_1,"'RXCLR'"

 

Clears all characters in the RS232_1 device's receive buffer.

 

 

RXOFF

Syntax:

Disable the transmission

SEND_COMMAND <DEV>,"'RXOFF'"

of incoming received

Example:

characters to the Master

SEND_COMMAND RS232_1,"'RXOFF'"

(default).

Stops the RS232_1 device from transmitting received

 

characters to the Master.

 

 

NXC-COM2Send_Commands (Cont.)

RXON

This command is sent automatically when a

Start transmitting received

CREATE_BUFFER Send_Command is executed.

Syntax:

characters to the

Master (default).

 

SEND_COMMAND <DEV>,"'RXON'"

 

Example:

 

 

SEND_COMMAND RS232_1,'RXON'"

 

Stops the RS232_1 device from transmitting received

 

characters to the Master.

 

 

SET BAUD

Syntax:

Set the RS-232/422/485

 

SEND_COMMAND <DEV>,"'SET BAUD

port's communication

 

<baud>,<parity>,<data>,<stop> [485

parameters.

 

<Enable | Disable>]'"

 

• Baud: 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 Bits: 7 or 8 data bits

 

Stop Bits: 1 and 2 stop bits

 

 

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

 

• 485 Enable: Enables RS-485mode and disables

 

 

RS-232/422

 

• 485 Disable: Disables RS-485mode and enables

 

 

RS-232/422

 

Examples:

 

 

SEND_COMMAND RS232_1,"'SET 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-485mode.

 

 

TSET BAUD

Syntax:

Temporarily set the

 

SEND_COMMAND <DEV>,"'TSET BAUD

RS-232/422/485port's

 

<baud>,<parity>,<data>,<stop> [485

communication parame-

 

<Enable | Disable>]'"

ters for a device.

• Baud: 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 Bits: 7 or 8 data bits

 

Stop Bits: 1 and 2 stop bits

 

 

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

 

• 485 Enable: Enables RS-485mode and disables

 

 

RS-232/422

 

• 485 Disable: Disables RS-485mode and enables

 

 

RS-232/422

 

Examples:

 

 

SEND_COMMAND RS232_1,"'SET BAUD

 

 

9600,N,8,1 485 DISABLE'"

 

 

SEND_COMMAND RS232_4,"'SET BAUD

 

 

115200,N,8,1 485 ENABLE'"

 

TSET BAUD 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.

 

 

TXCLR

Syntax:

Stop and clear all

 

SEND_COMMAND <DEV>,"'TXCLR'"

characters waiting in the

Example:

transmit out buffer and

 

SEND_COMMAND RS232_1,"'TXCLR'"

stops transmission.

Clears and stops all characters waiting in the RS232_1

 

device's transmit buffer.

 

 

XOFF

Syntax:

Disable software

 

SEND_COMMAND <DEV>,"'XOFF'"

handshaking (default).

Example:

 

 

SEND_COMMAND RS232_1,"'XOFF'"

 

Disables software handshaking on the RS232_1 device.

 

 

XON

Syntax:

Enable software

 

SEND_COMMAND <DEV>,"'XON'"

handshaking.

Example:

 

 

SEND_COMMAND RS232_1,"'XON'"

 

Enables software handshaking on the RS232_1 device.

 

 

 

NXC-COM2Send_String Escape Sequences

This card has some special SEND_STRING escape sequences:

If any of the 3 character combinations below are found anywhere within a SEND_STRING

program instruction, they will be treated as a command and not the literal characters:

27,17,<time>

Syntax:

Send a break character

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

for a specified duration to

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

a

Example:

specific device.

SEND_STRING RS232_1,"27,17,10"

 

Sends a break character of 1 millisecond to the RS232_1

 

device.

 

 

27,18,0

Syntax:

Clear the ninth data bit by

SEND_STRING <DEV>,"27,18,0"

setting it to 0 on all

Example:

character transmissions.

SEND_STRING RS232_1,"27,18,0"

This command is used in

Sets the RS232_1 device's ninth data bit to 0 on all character

conjunction with the

transmissions.

B9MON

 

Send_Command.

 

 

 

27,18,1

Syntax:

Set the ninth data bit to 1

SEND_STRING <DEV>,"27,18,1"

for all subsequent charac-

Example:

ters to be transmitted.

SEND_STRING RS232_1,"27,18,1"

This command is used in

Sets the RS232_1 device's ninth data bit to 1 on all character

conjunction with the

transmissions.

B9MON

 

Send_Command.

 

 

 

27,19,<time>

Syntax:

Insert a time delay before

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

transmitting the next

time: 1 - 255. Measured in 1 millisecond increments.

character.

Example:

 

SEND_STRING RS232_1,"27,19,10"

 

Inserts a 10 millisecond delay before transmitting characters

 

to the RS232_1 device.

 

 

27,20,0

Syntax:

Set the RTS hardware

SEND_STRING <DEV>,"27,20,0"

handshake's output to

Example:

high

SEND_STRING RS232_1,"27,20,0"

(> 3V).

Sets the RTS hardware handshake's output to high on the

 

RS232_1 device.

 

 

27,20,1

Syntax:

Assert sets the RTS

SEND_STRING <DEV>,"27,20,1"

hardware handshake's

Example:

output to low (< 3V).

SEND_STRING RS232_1,"27,20,1"

 

Sets the RTS hardware handshake's output to low on the

 

RS232_1 device.

 

 

For full warranty information, refer to the AMX Instruction Manual(s) associated with your Product(s).

93-2022

REV: F

 

7/08

©2008 AMX. All rights reserved. AMX and the AMX logo are registered trademarks of AMX. AMX reserves the right to alter specifications without notice at any time.

3000 RESEARCH DRIVE, RICHARDSON, TX 75082 • 800.222.0193 • fax 469.624.7153 • technical support 800.932.6993 • www.amx.com