background image

PCI-AC48 User’s Guide 

19

19

A: A: Advanced Configuration

Chapter A

A: Advanced Configuration

Appendix A

Introduction

The topics in this appendix are intended for advanced users who are using the PCI-AC48 adapter 
card on a serial network with Opto 22 mistic Remote I/O. This appendix also includes information for 
those who are using the adapter card with a custom software application and need to use UART 
registers.

Using External Interrupts for mistic Remote I/O

If you are using the PCI-AC48 adapter card with mistic I/O and want to use mistic interrupts, follow 
instructions in the next two sections to set DIP switches and wire the card’s ports for interrupts. (For 
technical details, see 

“How mistic Interrupts Work on the PCI-AC48” on page 21

.

mistic Interrupt DIP Switch Settings

Configure mistic interrupt line support using switches 3, 4, and 5 on DIP switch S1 (port A) or S2 
(port B) according to the table on the following page. All the interrupts found in the Interrupt 
Identification Register can be routed to this one interrupt request line.

Remember that in addition to interrupts, network termination and bias must also be set as shown in 

“Setting Adapter Card Bias and Termination” on page 3

DIP switch locations on the card are illustrated on 

page 3

Switch

Description

1

Bias: RS-485 – (pull down)

2

Bias: RS-485 + (pull up)

3

Interrupt: IRQ –

4

Interrupt: IRQ +

5

Termination: IRQ, 200 

 

6

Termination: RS-485, 200 

 

S1 (port A)

or

S2 (port B)

123

456

OFF

Summary of Contents for PCI-AC48

Page 1: ...018 43044 Business Park Drive Temecula CA 92590 3614 Phone 800 321 OPTO 6786 or 951 695 3000 Fax 800 832 OPTO 6786 or 951 695 2712 www opto22 com Product Support Services 800 TEK OPTO 835 6786 or 951 695 3080 Fax 951 695 3017 Email support opto22 com Web support opto22 com ...

Page 2: ...registered trademarks of Opto 22 Generation 4 groov Server ioControl ioDisplay ioManager ioProject ioUtilities mistic Nvio Nvio net Web Portal OptoConnect OptoControl OptoDataLink OptoDisplay OptoEMU OptoEMU Sensor OptoEMU Server OptoOPCServer OptoScript OptoServer OptoTerminal OptoUtilities PAC Control PAC Display PAC Manager PAC Project PAC Project Basic PAC Project Professional SNAP Ethernet I ...

Page 3: ...and Configuring New Hardware in Windows 7 Identifying New Adapter Card COM Ports 8 Connecting a Serial Cable to the Adapter Card 9 Wiring the Connectors 10 Wiring for RS 485 2 Wire Two Serial Ports 11 Wiring for RS 485 4 Wire One Serial Port 11 Recommended Serial Cable Specifications 11 If You Are Migrating from AC24AT AC422AT or AC37 Cards 12 Chapter 2 Troubleshooting 15 Introduction 15 Checking ...

Page 4: ...g for RS 485 4 Wire One Port with Interrupts 20 mistic Commands Required for Interrupts 21 How mistic Interrupts Work on the PCI AC48 21 Building Custom Software Using UART Registers 21 Register Table 22 Appendix B Technical Specifications 23 PCI AC48 Adapter Card 23 LED Indicators 24 ...

Page 5: ...nnot be used at the same time Buffering on the card prevents loss of data and the serial communication lines and the adapter card itself are isolated from transient voltages The adapter card also provides tri state control in hardware 64 byte FIFO and 16550 UART compatible registers The PCI AC48 adapter card requires 5 VDC 600 mA and operates at temperatures of 0 C to 70 C The card is configured u...

Page 6: ...are using the PCI AC48 adapter card to connect to mistic Remote I O or Optomux systems it is also expected that you are familiar with the controllers brains racks and input output modules used with these systems This guide includes four sections Chapter 1 Installing the PCI AC48 Adapter Card provides instructions to configure install and connect the adapter card Information on installing Windows s...

Page 7: ...rating systems including additional accessories installed such as sound cards NICs etc type of power supply types of I O units installed third party devices installed for example barcode readers Software and version being used Specific error messages seen Setting Adapter Card Bias and Termination Before installing the PCI AC48 adapter card in your computer follow the instructions in this section t...

Page 8: ...or your network using the tables DIP Switch Descriptions on page 5 and DIP Switch Settings for Common Network Configurations on page 5 2 If you are using the adapter card as a passive or redundant host turn off bias settings on DIP switches S1 and S2 See DIP Switch Descriptions on page 5 1 2 3 4 5 6 OFF 1 2 3 4 5 6 OFF 1 2 3 4 5 6 OFF S2 S1 S3 PORT A PORT B ...

Page 9: ...485 pull down 2 Bias RS 485 pull up 3 Interrupt IRQ 4 Interrupt IRQ 5 Termination IRQ 200 6 Termination RS 485 200 6 Not used 5 4 3 2 Enable or disable 4 wire mode When 4 wire mode is enabled port A is TX and port B is RX 1 Turn ON or OFF all LEDs on adapter card 1 1 This DIP switch overrides the functionality of the LEDs and is useful for verifying LED indicator operation LEDs are shown in the di...

Page 10: ... exe 2 Choose the PCI AC48 option for installation 3 Run the installation which automatically places the necessary PCI AC48 files in the correct locations for the operating system you are using PCI AC48 location on RS 485 network RS 485 wiring mode Set DIP switches as shown below S11 S2 S3 2 wire 4 wire2 2 wire 4 wire2 1 DIP switch S1 configures port A DIP switch S2 configures port B 2 Ports A and...

Page 11: ...s scratching may irreversibly damage the card or other devices 5 Verify that the PCI AC48 card is properly seated in the motherboard PCI socket Secure the bracket to the computer case with the screw and then confirm that the card is still seated correctly in the PCI socket 6 Reconnect the computer s power cord Do not start the computer You will do this next in the section Completing Adapter Card I...

Page 12: ...been successfully installed click Next to move to the next screen and then click Finish After a moment the alert Found New Hardware PCI Serial Port will appear briefly followed by the New Hardware Wizard 7 Repeat step 2 through step 4 above 8 After step 4 select the file Opto22 Ac48Port inf click Open and then click OK 9 When the New Hardware Wizard indicates that the driver has been successfully ...

Page 13: ... LED It s easier to see the LED blink if the baud rate is set low for example 300 See the Troubleshooting Appendix for more information 5 Note the COM port numbers for future use Connecting a Serial Cable to the Adapter Card The PCI AC48 adapter card has two serial ports Port A and Port B Two removable 10 pin cable plug connectors are provided with the adapter card The connectors are similar to so...

Page 14: ...Interrupts for mistic Remote I O on page 19 Wiring the Connectors 1 Choose the wiring diagram from the following pages based on how you will use the card RS 485 2 wire two ports page 11 RS 485 4 wire one port page 11 2 To wire the connector use a small screwdriver to hold down the small orange tab while you insert the wire into the large hole next to the tab See the illustration below Each serial ...

Page 15: ...d Serial Cable Specifications RS 485 serial lines require twisted pair cable with a maximum cable length of 3 000 feet 915 m The recommended cable type is two twisted pairs of 24 gauge conductors with a shield Nominal impedance is 100 ohms and capacitance is 12 5 picofarads per foot Typical manufacturer part numbers are Manhattan Electric Cable M3475 Serial Port A Serial Port B 1 2 3 4 5 6 7 8 9 1...

Page 16: ...e ISA bus can specify an I O port address so the adapter card can communicate directly with the port but the PCI bus works from a card ID that is assigned when the card is installed in a PCI slot The way in which existing drivers and software address the adapter card determines their compatibility with the PCI AC48 Software that uses Windows drivers by referencing logical device names will be comp...

Page 17: ...ram configuration to use the new COM ports If a configuration change doesn t work modify the source code to use the new COM ports If the software directly accesses the I O location on the previous ISA card you ll need to modify the source code to use the new I O location on the PCI AC48 For detailed information on the PCI register see Register Table on page 22 ...

Page 18: ...IF YOU ARE MIGRATING FROM AC24AT AC422AT OR AC37 CARDS PCI AC48 User s Guide 14 ...

Page 19: ...e to be used as the signal common Many people assume that since RS 422 and RS 485 are based on the differential voltage between the two wires that make up the twisted pair in the data link then the signal common should be optional However it is not Also never tie the signal common to earth ground Troubleshooting the Adapter Card with a Loopback Connection Because a loopback connection essentially ...

Page 20: ...t the transmit TX terminals If the RX LED blinks the adapter card received the data If the TX LED does not blink check the COM port number you are using in HyperTerminal to make sure it matches the COM port number assigned to Port A Troubleshooting I O Communications Using LED Indicators If you are having difficulty communicating you can watch the adapter card s and Opto 22 brain s LEDs to help fi...

Page 21: ...s baud rate parity data bits stop bits communication mode ASCII vs Binary if applicable and protocol Optomux I O protocol vs mistic I O protocol etc 4 Did the RX LED on the adapter card blink If it did then the adapter card received the response from the Opto 22 device go to the next step If the LED did not blink then it is probably a communication wiring problem Double check the communication wir...

Page 22: ...TROUBLESHOOTING THE ADAPTER CARD WITH A LOOPBACK CONNECTION PCI AC48 User s Guide 18 ...

Page 23: ...es and wire the card s ports for interrupts For technical details see How mistic Interrupts Work on the PCI AC48 on page 21 mistic Interrupt DIP Switch Settings Configure mistic interrupt line support using switches 3 4 and 5 on DIP switch S1 port A or S2 port B according to the table on the following page All the interrupts found in the Interrupt Identification Register can be routed to this one ...

Page 24: ...Port with Interrupts The following diagram assumes you are using the PCI AC48 for one 4 wire port with interrupts In 4 wire mode Port A is TX and Port B is RX Port A Port B 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 TX RX TX RX Comm IRQ IRQ TX RX TX RX Comm IRQ IRQ Please note the following equivalents for wiring Opto 22 Other Vendors Optomux TX RX TX RX B TO FO TX RX TX RX A TO FO Port A Port B 1 ...

Page 25: ...re bidirectional RS 485 links and are normally set as inputs They are designed to be used with the IRQ output lines found on mistic Remote I O bricks The IRQ outputs of Remote I O bricks are RS 485 drivers which are held in tri state mode until an interrupt is requested at which time the outputs are enabled and set active The PCI AC48 receives this signal and sets the IRQ Line Status bit in the Mo...

Page 26: ...ta tus 3 LCR line con trol register W DLE divisor latch enable6 set break set par ity even parity parity enable stop bits word length bit 1 word length bit 0 4 MCR modem control register W 0 0 0 loop back OP2 OP1 RTS DTR 5 LSR line status register R 0 FIFO error trans mit empty trans mit holding empty break interrupt framing error parity error overrun error receive data ready 6 MSR modem status re...

Page 27: ...VAC transient Communications RS 485 2 wire or 4 wire operation Baud Rates Serial link to 460 800 baud Cable Length Distance Up to 3 000 ft 915 m 115 200 baud Termination 200 Ohm termination for RS 485 and IRQ Biasing RS 485 pull up pull down biasing Indicators Transmit Receive and IRQ LEDs for each serial port See page 24 for diagram Software Driver System Requirements Microsoft Windows 2000 or Wi...

Page 28: ...PCI AC48 ADAPTER CARD PCI AC48 User s Guide 24 LED Indicators Serial Port A Port B IRQ Red Serial Port B Port B RX Port B TX Port A IRQ Red Port A RX Port A TX 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 ...

Reviews: