Multi-Interface PCI Bus Serial Cards (RS-232 / RS-422 / RS-485) Models 3PCIU2, 3PCIU4, 3PCIU8 (Non-Isolated) and Models 3PCIOU1, 3PCIOU2, 3PCIOU4 (Isolated) Manual Documentation Number 3PCIoUx-1008
International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Website: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb.elec.com -- Fax (815) 433-5104 European Headquarters B&B Electronics Westlink Commercial Park Oranmore, Co. Galway, Ireland Phone +353 91-792444 -- Fax +353 91-792445 Website: www.bb-europe.com Sales e-mail: sales@bb-europe.
CAUTION: This is an Electrostatic Sensitive Device. Use ESD precautions for safe handling. Before removing the card from the anti-static protective packaging: - Discharge any static electricity buildup on your body by touching a large grounded metal surface or the metal chassis on equipment connected to earth ground by a 3-wire power cord. Use of a grounding wrist strap is recommended.
Table of Contents TABLE OF CONTENTS ...........................................................................................II CHAPTER 1: GENERAL INFORMATION ........................................................... 1 INTRODUCTION ........................................................................................................... 1 FEATURES ................................................................................................................... 1 MIPORT MODELS AND FEATURES ............
INSTALLING WINDOWS NT DRIVER SOFTWARE ....................................................... 34 INSTALLING WINDOWS NT DRIVER SOFTWARE ....................................................... 34 Windows Settings ................................................................................................. 34 Pre-Installation Steps........................................................................................... 34 Installing the Driver Software.....................................................
RS-422/485 SIGNAL DESIGNATIONS AND DB-9 PINOUT .......................................... 59 RS-422/485 Signal Designations ......................................................................... 60 RS-422/485 DIFFERENTIAL SIGNALS ........................................................................ 60 RS-422 OPERATION .................................................................................................. 61 RS-422 Limitations..................................................................
General Information Chapter 1: General Information Introduction MIport PCI serial interface cards allow you to add RS-232, RS-422 and RS485 interfaces to Windows based computers equipped with a PCI bus. Depending on your choice of card one, two or four optically isolated serial ports, or two, four or eight non-isolated serial ports, can be added. MIport PCI serial cards are Plug and Play compatible, which allows the Windows Operating System and driver to set the addresses and IRQ used by the card.
General Information 2 • Conform to the PCI V2.3 Universal PCI specification • RS-232/RS-422/RS-485 interfaces • 2-wire or 4-wire RS-485 operation (half or full-duplex) • Automatic Send Data Control for RS-485 operation • Buffered high speed XR17D15x PCI Bus UARTs (16C550 compatible) with 64 byte FIFOs for input/output with programmable trigger thresholds • Advanced driver function for COM port rename (Refer to Chapter 4) • Supports baud rates up to 460.8 kbps • Windows 98, ME, NT4.
General Information MIport Models and Features Model Number Ports Interface Connectors 3PCIOU1 1 RS-232/422/485 DB-9 male 3PCIOU2 2 RS-232/422/485 DB-9 male 3PCIOU4 4 2 RS-232/422/485 ports 2 RS-422/485 ports 2 x DB-9 male 2 x DB-9 male use 2nd expansion slot Figure 2.
General Information Model Number Ports Interface Connectors 3PCIU2 2 RS-232/422/485 2 x DB-9 male 3PCIU4 4 RS-232/422/485 DB-37 female (plus DB-37 to 4x DB-9 male cable) 3PCIU8 8 4 RS-232/422/485 ports 4 RS-232 ports DB-78 female (plus DB-78 to 8x DB-9 male cable) Figure 3.
General Information Quick Start Guide CAUTION: This is an Electrostatic Sensitive Device. Use ESD precautions for safe handling. Before removing the card from the anti-static protective packaging: - Discharge any static electricity buildup on your body by touching a large grounded metal surface or the metal chassis on equipment connected to earth ground by a 3-wire power cord. Use of a grounding wrist strap is recommended.
General Information 11. Select the appropriate COM port, double-click and check properties. 12. Check and set up Port Settings 13. Under Advanced Settings, set Buffer, RTS Control and Hysteresis Level. Change the COM port name, if necessary. 14. If your card was not connected to a peripheral device in Step 5, make your connections now. (Powering down the computer while making connections is recommended.) 15.
General Information Specifications OS Supported Windows 98, ME, NT 4.0, 2000, 2003 Server, XP, Vista and Linux 2.4 Bus Slot PCI bus (33MHz/32-bit) PCI Bus specification Requires one PCI slot (3.3V or 5V signaling) Baud Rates Maximum: Typical: UARTs XR17D15x (16C550 compatible) with 64 byte FIFO buffers Character Length Parity Stop Bits 5, 6, 7 or 8 bits Even, odd, none, space or mark 1, 1.
Serial Card Setup Chapter 2: Serial Card Setup The following Serial Card Setup section applies to the following PCI cards: • • • • • • 3PCIOU1 one port optically isolated PCI serial card 3PCIOU2 two port optically isolated PCI serial card 3PCIOU4 four port optically isolated PCI serial card 3PCIU2 two port non-isolated PCI serial card 3PCIU4 four port non-isolated PCI serial card 3PCIU8 eight port non-isolated PCI serial card Any deviations from the procedure for specific models are noted.
Serial Card Setup Overview of Operational Modes RS-232 Mode In RS-232 Mode MIport serial ports function as buffered standard PC serial ports and operate as DTEs (Data Terminal Equipment). RS-232 interfaces are commonly used for communications with modems, serial printers, and computer-controlled devices such as security equipment, bar code scanners and point-of-sale devices.
Serial Card Setup In half-duplex operation, the receiver is disabled during transmit (RX ), and enabled when not transmitting. In full-duplex operation the receiver is always enabled (RX ON). Since RS-485 transmitters are tri-stated when not transmitting, the receive inputs must be biased to ensure the media floats in the Mark state so that the first Space state is detected correctly at the start of the next transmission.
Serial Card Setup Setting the DIP Switches on RS-232/422/485 Ports Set the DIP switches to configure the desired operating mode as follows: 422/485 Switch 1 232 Switch 2 TX On TX SD Switch 3 RX On RX SD RS-232 Mode 422/485 232 TX On TX SD RX On RX SD RS-422 Mode 422/485 232 TX On TX SD RX On RX SD 4-wire RS-485 Mode 422/485 232 TX On TX SD RX On RX SD 2-wire RS-485 Mode Figure 5. RS-232/422/485 DIP Switch Settings.
Serial Card Setup DIP Switch 3 (RS-232/422/485 ports) The bottom DIP switch (3) configures the port for half-duplex (two-wire) RS-485 operation or full-duplex (four wire) RS-422/RS-485 operation. Placing the bottom DIP switch in the RX ON position configures the port for four wire operation. In this mode the receiver is continuously enabled, allowing it to receive all data on the communications line. Since the transmitter sends data on the other wire pair the port does not receive its own transmissions.
Serial Card Setup For RS-485 operation the middle DIP switch is placed in the TX SD position. In this position the transmitter is only enabled when data is being sent. The transmitter is tri-stated when not sending data, allowing other transmitters on the communications line to transmit without interference. DIP Switch 2 (RS-422/485 only) The bottom DIP switch (2) configures the port for half-duplex (two-wire) RS-485 operation or full-duplex (four wire) RS-422/RS-485 operation.
Serial Card Setup Installing the Serial Card CAUTION: This is an Electrostatic Sensitive Device. Use ESD precautions for safe handling. Before removing the card from the anti-static protective packaging: - Discharge any static electricity buildup on your body by touching a large grounded metal surface or the metal chassis on equipment connected to earth ground by a 3-wire power cord. Use of a grounding wrist strap is recommended.
Driver Software Installation Chapter 3: Driver Software Installation Installing Windows Vista Driver Software Installation of the MIport driver software on Windows Vista is a three-step process: 1. Windows Vista searches and identifies new hardware that has been installed. 2. You use the Found New Hardware Wizard to install the driver software for the card. 3. You use the Found New Hardware Wizard to install the software for each port on the card.
Driver Software Installation Using the Found New Hardware Wizard Windows will detect the PCI card and start the Found New Hardware Wizard to begin the driver installation. The following dialog box will appear: Drive software (on CD-ROM) is provided with your MIport card. Do not connect to Windows Update to search for software. 6. Select No, not at this time and click Next. PCI Card Software Installation Once the new hardware has been detected, the wizard will proceed to install the software for the card.
Driver Software Installation All serial adapter cards should appear in the list. Additional information about the cards can be obtained by double-clicking the name of the card. 3. Click Ports (COM & LPT) All installed ports should appear in the list. The COM port number assigned to each port will be shown. Installing Windows XP Professional Driver Software Installation of the MIport driver software on Windows XP Professional is a three-step process: 1.
Driver Software Installation Note: Refer to Chapter 2 of information on DIP switch settings and bias/termination resistors. 6. Install the card in the slot. Use appropriate ESD handling precautions. 7. Power up the computer 8. Insert your driver disc in the CD-ROM drive. Using the Found New Hardware Wizard Windows will detect the PCI card and start the Found New Hardware Wizard to begin the driver installation. The following dialog box will appear: Figure 7.
Driver Software Installation Figure 8. The “Install the Card Software Automatically” Dialog 10. To begin the installation of the software for the PCI card, click Install the software automatically. Click Next. Windows will find the appropriate files on the CD, then display a dialog box concerning Windows Logo testing for XP. This feature of XP simply indicates that these drivers have not yet undergone the Microsoft testing procedures required to use the Windows XP Logo on the packaging.
Driver Software Installation 11. Click Continue Anyway. A dialog box will appear indicating the software installation is proceeding. 12. When the Completing the Found New Hardware Wizard dialog appears, click Finish. Port Driver Installation The Welcome to the Found New Hardware Wizard will appear again, indicating it has detected a port on the PCI card. Repeat the steps above to install the port driver software.
Driver Software Installation Figure 10. The Device Manager Window 3. In the Device Manager, click Multi-port serial adapters. All serial adapter cards should appear in the list. Additional information about the cards can be obtained by double-clicking the name of the card. 4. Click Ports (COM & LPT) All installed ports should appear in the list. The COM port number assigned to each port will be shown.
Driver Software Installation Installing Windows 2000 Professional Driver Software Installation of the MIport driver software on Windows 2000 Professional is a three-step process: 1. Windows searches for and identifies new hardware that has been installed. 2. You use the Found New Hardware Wizard to install the driver software for the card. 3. You use the Found New Hardware Wizard to install the software for each port on the card. There are several possible methods for installing the software.
Driver Software Installation Using the Found New Hardware Wizard Windows will detect the PCI card and start the Found New Hardware Wizard to begin the driver installation. The following dialog box will appear: Figure 11. The Windows 2000 Add New Hardware Wizard The driver installation goes through several steps, after finding the driver files. The first part installs the driver for the card, then after Finish, the second part installs the serial driver for the COM port.
Driver Software Installation Figure 12. The “What do you want Windows to do?” dialog 11. To begin the installation of the software for the PCI card, click Search for a suitable driver for my device, then click Next. Figure 13. The “Windows will search for new driver” dialog 12. Select CD-ROM Drive, then click Next.
Driver Software Installation Windows will find the appropriate files on the CD. Figure 14. The “Windows driver file search for the device” dialog 13. To begin the installation of the software for the PCI card, click Next. Windows will display the Digital Signature Not Found dialog box. This feature simply indicates that these drivers have not yet undergone the Microsoft testing procedures required to use the Windows logo on the packaging. Driver compatibility is not affected.
Driver Software Installation Figure 15. The Digital Signature Not Found Dialog 14. Click Yes A dialog box will appear indicating the software installation is proceeding. 15. When the Completing the Found New Hardware Wizard dialog appears, click Finish. Port Driver Installation The Add New Hardware Wizard will appear again, indicating it has detected a port on the PCI card. Repeat the steps above to install the port driver software.
Driver Software Installation Checking the Driver Installation You may want to check to verify that the new B&B COM ports are now available. 1. From the Windows Desktop, click Start → Settings → Control Panel → System 2. On the System Properties dialog box, click the Hardware tab, then click the Device Manager button. The Device Manager window will appear: Figure 16. System Properties Screen 3. In the Device Manager, click Multi-port serial adapters All serial adapter cards should appear in the list.
Driver Software Installation Installing Windows 98 or ME Driver Software Installation of the MIport driver software on Windows 98 is a three-step process: 1. Windows searches for and identifies new hardware that has been installed. 2. You use the Found New Hardware Wizard to install the driver software for the card. 3. You use the Found New Hardware Wizard to install the software for each port on the card. There are several possible methods for installing the software.
Driver Software Installation Using the Add New Hardware Wizard Windows will detect the PCI card and start the Add New Hardware Wizard to begin the driver installation. The following dialog box will appear: Figure 17. The Add New Hardware Wizard dialog The driver installation goes through several steps, after finding the driver files. The first part installs the driver for the card, then after Finish, the second part installs the serial driver for the COM port. Do not remove the CD until completed. 7.
Driver Software Installation Figure 18. The “What do you want Windows to do?” dialog 8. To begin the installation of the software for the PCI card, click Search for the best driver for your device, then click Next. Figure 19.
Driver Software Installation 9. Select “Specify a location” and choose the E:\ Windows\Drivers\MIport\98_ME folder. NOTE: In Windows ME you will need to select the Driver from this folder: E:\ Windows\Drivers\MIport\98_ME Windows will find the appropriate files on the CD. Figure 20. The “Windows driver file search for the device” dialog 10. Click Next. Figure 21.
Driver Software Installation 11. Click Finish. Installation will complete automatically. Port Driver Installation The Add New Hardware Wizard will appear again, indicating it has detected a port on the PCI card. Repeat the steps above to install the port driver software. If the card you are installing has more than one port, Windows will find each port in sequence and re-launch the Found New Hardware Wizard for each port. Repeat the previous steps for each port.
Driver Software Installation Figure 22. System Properties Screen 3. In the Device Manager, click Multiport Serial Cards All serial adapter cards should appear in the list. Additional information about the cards can be obtained by double-clicking the name of the card. 4. Click Ports (COM & LPT) All installed ports should appear in the list. The COM port number assigned to each port will be shown.
Driver Software Installation Installing Windows NT Driver Software Installation of the MIport driver software on Windows NT is a two-step process: 1. Installing the driver software. 2. Configuring the ports Note: If at some point in the future, you want to update these drivers, remove the old drivers before installing the new version. Refer to Chapter 6 for driver removal procedures. Windows Settings Windows Standard settings are used in the following screenshots.
Driver Software Installation Figure 23. The Install.exe file in Windows NT Explorer 2. Double-click the install.exe file. The MIport Driver v1.0.0 for Windows NT 4.0 Installation Welcome dialog will appear. Figure 24.
Driver Software Installation 3. Click Next on the Welcome dialog. The Copyright Information dialog will appear. 4. Click Next on the Copyright Information dialog. The Select Destination Directory dialog will appear. 5. Click Next to install the files in the suggested directory. Figure 25. The Select Destination Directory Dialog The Ready to Install! dialog will appear. 36 6. Click Next. The Installation Completed! dialog will appear. 7. Click Finish. The driver software is now installed.
Driver Software Installation Configuring the Serial Ports Before using the serial ports, they must be configured. 1. Open the Control Panel. Figure 26. The NT Control Panel Showing the BB Electronics MIport Card Applet Icon 2. Double-click the BB Electronics MIport Card applet icon. The B&B Electronics Multiport Boards dialog will appear showing the port(s) on the MIport card as not assigned. 3. Select a name for the first port from the dropdown list.
Driver Software Installation Figure 27. Selecting Port Names 4. Click Settings for the port. 5. In the Communications Port Settings dialog that appears set the bits per second, data bits, parity, stop bits and flow control if they need to be changed from the default values. Figure 28. Communications Port Settings 38 6. If you change any parameters the OK button will become available. Click OK to accept the changes. 7. Click Advanced. The Advanced Setting dialog will appear.
Driver Software Installation 8. In the Advanced Settings dialog set the Receive buffer: Low, Transmit buffer: Low, RTS Control and Hardware handshaking Hysteresis level (characters) as necessary. Note: For more information on advanced settings refer to Chapter 4 Figure 29. The Advanced Port Setting Dialog 9. Click OK to return to the Communications Port Settings. 10. Click Cancel to return to the Assign Ports dialog. 11. Repeat the procedure for any additional ports on the list. 12.
Setting Driver Options Chapter 4: Setting Driver Options Configuring Port Settings (Does not apply to Windows NT.) By entering the Properties dialog a variety of information can be obtained and several port parameters can be configured. 1. On the Ports (COM & LPT) list, double-click the name of the port to be configured. 2. On the Port Properties dialog, click the Port Settings tab. The dialog will display the current settings for Bits per second, Data bits, Parity, Stop bits and Flow control.
Setting Driver Options The Advanced Port Settings dialog will appear. This screen allows you to set the Receive and Transmit FIFO buffer thresholds, RTS Control parameters, Hardware handshaking hysteresis level and the COM port name. Figure 31. The Advanced Settings for COM# dialog Setting the FIFO Buffers MIport cards use UARTs that contain 64-byte transmit and receive FIFO (first in, first out) buffer registers. The transmit buffer holds the data to be sent; the receive buffer holds the data received.
Setting Driver Options UART will request that the computer transfer the contents of the buffer to program memory. This is intended to optimize the throughput of the data. The default value is 14. Usually this parameter does not have to be changed. Setting the RTS Control Parameter 1. Set RTS Control to Normal for RS-232; set RTS Control to RS485 Mode for 2-wire or 4-wire RS-485 operation. Either setting can be used for RS-422.
Setting Driver Options Available names for COM numbers are shown. Select a new number from those not “in use”. COM numbers from COM1 to COM256 may be available. COM numbers “in use” may be used by motherboard ports, modems, virtual COM ports for network serial server devices or FAX modems. Formerly installed USB to serial adaptors, PCI cards or other hardware may have reserved a COM number. The device may need to be added back to the system, then the software removed.
Installing Linux Driver Software Chapter 5: Installing Linux Driver Software Installing MIport Drivers in Linux Note to the Editor(s): All commands and directories are case sensitive in Linux. When updating this section, be very careful about then things are uppercase or lowercase. Installation of the Linux driver software for MIport cards is a three-step process: 1. Preparing the Linux files 2. Compiling the driver 3.
Installing Linux Driver Software 2. Remove any temporary files: make clean 3. Make a dependency file: make dep 4. Make the driver file: make Installing the Driver 1. If the user is not root, switch to the root user su 2. Install the driver files as root make install Figure 33.
Installing Linux Driver Software 3. 4. Make the device nodes: a. ./bbmknod_sh if the system uses sh for its shell b. ./bbmknod_csh if the system uses a c-shell environments Modify the startup script to automatically start the driver: cp /home/username/bbelec/drivers/MIport/rc.bb17d15x /etc/rc.d WARNING: Do not overwrite /etc/rc.d/rc.serial if it already exists! Note: These scripts will create the device nodes /dev/tty/M0/ and/dev/cum0 for each port, where the 0 is the number of the port. If /etc/rc.
Installing Linux Driver Software Checking the Driver Installation Open a terminal window and execute the following steps at the command prompt to check the driver installation: 1. If the user is not root, then switch to the root user: su 2. Check that the driver is running: /sbin/lsmod | grep bb17d15x 3. Switch from the root user back to the user 4. a. Copy rc.bb15d15x cp /home/username/bbelec/drivers/MIport/rc.bb17d15x/etc/rc.d b. Modify or create /etc/rc.serial to call /etc/rc.d/rc.bb.
Installing Linux Driver Software Using the Exar Serial GUI Example Application The Exar Serial Test GUI is a program included on your MIport software CD that can be used to check the operation of your MIport card. The following procedure describes how to set up and run this application. Preparing the Example Application Files 1. Open a terminal window and execute the following steps at the command prompt. 2. Change to a user directory on your system: cd /home/username 3.
Installing Linux Driver Software Figure 34. The Blank Application Window 6. Click File, Open. The Open Device dialog will appear. Figure 35. The Open device dialog box 7. Type the name of the device in the File name box. The name will be ttyM0, ttyM1, etc. Click Open. The screen will change from gray to white and the name of the file will appear at the top of the screen.
Installing Linux Driver Software Figure 36. The Open Application Window Configuring Port Settings 1. Click Serial, Port Settings. The Serial port parameters dialog will appear. The dialog will display the current serial port settings. Enter the parameters required for your application. Note: Refer to Chapter 4 for detailed explanations of serial port settings. Figure 37.
Removing Drivers, Ports and Cards Chapter 6: Removing Drivers, Ports and Cards You may need to remove the card from your system or remove the current driver before installing a driver upgrade. The following sections describe removal procedures. Removing MIport Cards from Win98/ME/2000/2003 Server/XP/Vista Uninstalling the MIport Card 1. In the Device Manager, under Multi-port serial adapters, rightclick the card to be uninstalled.
Removing Drivers, Ports and Cards Removing INF and PNF Driver Files 1. Open Windows Explorer as follows: From the Windows Desktop, click Programs → Accessories → Windows Explorer 2. Under the Windows directory expand the inf sub-directory and find the oemX.inf and oemX.PNF files (where X represents the number of the file). The operating system names these files during the installation process. To locate the correct INF files, search for files in C:\Windows\Inf and its subdirectories for a file named *.
Removing Drivers, Ports and Cards Figure 39. Setting the Folder Options to Display Hidden Files 3. Delete the oemx.inf and oemx.pnf files found in Step 2.. CAUTION! Be careful to delete only the files associated with the PCI card you are trying to uninstall.
Removing Drivers, Ports and Cards Removing MIport Cards from Windows NT Uninstalling the MIport Card 1. The Driver must be uninstalled. Uninstalling the Driver 1. Using Windows NT Explorer locate the uninstall.exe file in the B&B installation directory. (The default installation directory is C:\Program Files\B&B Electronics\MIport) Figure 40. Uninstall.exe in the B&B Program Files 2. Double-click the Uninstall.exe file name. The Select Uninstall Method dialog will appear. 54 3.
RS-232 Connections/Operation Chapter 7: RS-232 Connections/Operation RS-232 Mode In RS-232 Mode MIport serial ports function as buffered standard PC serial ports and operate as DTEs (Data Terminal Equipment). RS-232 interfaces are commonly used for communications with modems, serial printers, and computer-controlled devices such as security equipment, bar code scanners and point-of-sale devices.
RS-232 Connections/Operation RS-232 Signal Designations The primary RS-232 signals are TD (transmit) and RD (receive). Together with GND (ground), they often are referred to as a “3-wire” interface. The RTS (Request to Send) and CTS (Clear to Send) signals are handshaking lines used to indicate to the other device that data can be sent or received. These lines may be enabled or disabled on a byte-by-byte basis and are used to prevent buffer overrun or the loss of data.
RS-232 Connections/Operation RS-232 Signal Levels RS-232 signal lines are referenced to ground, and each signal can alternate above and below ground. The RS-232 standard specifies output voltages must be no less than +5 volts and no greater than +25 volts to represent a Space on a transmit line (or an asserted handshake line). Output voltages must be between –5 volts and –25 volts to represent a Mark on a transmit line (or an de-asserted handshake line).
RS-232 Connections/Operation Figure 42.
RS-422/ 485 Connections/Operation Chapter 8: RS-422/485 Connections/Operation RS-422/485 Mode In RS-422/RS-485 mode MIport serial ports provide two sets of differential signal pairs and signal ground for each port. The RS-422 and RS-485 standards use balanced differential drivers and receivers for each signal. This facilitates greater communication distances than unbalanced systems such as RS-232.
RS-422/485 Connections/Operation RS-422/485 Signal Designations Typically RS-422 and RS-485 interfaces use five lines including two signal pairs and ground. One signal pair is the transmit pair, labeled TD(A)- and TD(B)+. The other signal pair is the receive pair, labeled RD(A)- and RD(B)+. Signal ground is labeled GND. RS-422/485 Differential Signals In RS-422 and RS-485 interfaces signals are sent on differential pairs.
RS-422/ 485 Connections/Operation RS-422 Operation In RS-422 mode, the transmitter is enabled (TX ENABLE) all the time, and the receiver is enabled (RX ENABLE) all the time. Typical point-to-point connections use a transmitter and receiver at each end with two wire pairs connecting them. The transmit lines of the device at one end of the link are connected to the matching receive lines of the device at the other end. The second device transmit lines are connected to the receive lines of the first.
RS-422/485 Connections/Operation Figure 45. An RS-485 Two-Wire Multidrop Connection Send Data Control MIport cards provide Send Data Control (SDC) for the RS-485 driver and receiver. This is hardware controlled based on the contents of the UART output buffer. When data is present, the driver is enabled; when the output buffer becomes empty, it is disabled. This automatically handles whatever baud rate is used.
RS-422/ 485 Connections/Operation The RS-485 mode is set by configuring the DIP switch setting on the MIport card and by selecting RS-485 Mode under RTS Control in the Advanced COM port settings dialog box. Note: For more information on COM port settings refer to Chapter 2 and Chapter 5 RS-485 Termination Resistors In some applications termination resistors must be connected across the communications line to ensure reliable communications.
RS-422/485 Connections/Operation Figure 47. RS-485 Biasing Resistors MIport RS-485 receivers come pre-biased from the factory with a 4.7 kΩ pull-up resistor on the RD(B)+ line and a 4.7 kΩ pull-down resistor on the RD(A)- line. These values are usually adequate for networks that do not implement termination resistors and have 31 or fewer nodes. When termination is used, biasing must be increased (resistors decreased), calculated according to the termination value and number of nodes.
RS-422/ 485 Connections/Operation 2-Wire RS-485 Connections The following diagram shows how to wire the DB-9 connector that will plug into your MIport card for 2-wire RS-485 operation. Figure 49. 2-Wire RS-485 Connections 2-Wire RS-485 Mode: Your cables must bridge pins #1 & #3 and pins #2 & #9 in order to receive and transmit. Connect from Pin #2 to Data B(+) of your devices and from pin #3 to Data A(-) of your devices.
RS-422/485 Connections/Operation 3. Connect the RD(B) pin #9 on the computer to TD(B) on the device. 4. Connect the RD(A) pin #1 on the computer to TD(A) on the device. 5. Connect the Signal Ground pin #5 to Signal Ground on the device. RS-422 Point to Multipoints Connection In a multi-slave RS-422 connection, TD(B) and TD(A) connect to RD(B) and RD(A) on all the slaves. If the slaves have Transmit connections, only one device can be connected back to the master. Figure 50.
RS-422/ 485 Connections/Operation Figure 51.
Troubleshooting MIport Cards Chapter 9: Troubleshooting MIport Cards Your MIport card should be fully functional when you receive it from the factory. Operational problems encountered on first use will typically be the result of incorrect connections or operation. The following procedure will assist you in locating the source of you problems. Starting Up If you have any trouble starting your system after installing the card, the card may not be properly seated in the slot.
Troubleshooting MIport Cards RS-422/485 Operation 1. Check your pinouts. In RS-422 or RS-485 mode the "A" lines should match your "A" or "−" lines. "B" lines should match your "B" or "+" lines. Note: RS-422/485 pinouts are non-standard. 2. Make sure you have RTS Control set to the correct mode: Normal for RS-232, RS-485 Mode for RS-485. RS-422 mode works in either setting if the mode jumpers are set correctly.
Troubleshooting MIport Cards Figure 53. RS-232 Loopback Connector 3. To check 2-wire RS-485 RS-422 or 4-wire RS-485 Loopback Connections, you must either enable the receiver by moving the receive jumper to RX ENABLE mode, or use one port to transmit to another 2-wire RS-485 port or converter by cross connecting and loading ComTest twice, one copy for each port. Characters typed in one copy of ComTest will appear in the receive window of the other.
Troubleshooting MIport Cards Support USA Office Technicians are available at (815) 433-5100 to answer your questions from 8 AM - 5 PM weekdays (Central Time). Email: support@bb-elec.com European Office Technicians are available at +353 91 792444 to answer your questions from 8:30 AM – 5 PM weekdays (GMT). Email: support@bb-europe.
DIP Switch / Mode Settings Appendix A: DIP Switch/Mode Settings Setting the DIP Switches on RS-232/422/485 Ports Set the DIP switches to configure the desired operating mode as follows: 422/485 Switch 1 232 Switch 2 TX On TX SD Switch 3 RX On RX SD RS-232 Mode 422/485 232 TX On TX SD RX On RX SD RS-422 Mode 422/485 232 TX On TX SD RX On RX SD 4-wire RS-485 Mode 422/485 232 TX On TX SD RX On RX SD 2-wire RS-485 Mode Figure 54. RS-232/422/485 DIP Switch Settings.
DIP Switch / Mode Settings For RS-485 operation the middle DIP switch is placed in the TX SD position. In this position the transmitter is only enabled when data is being sent. The transmitter is tri-stated when not sending data, allowing other transmitters on the communications line to transmit without interference. DIP Switch 3 (RS-232/422/485 ports) The bottom DIP switch (3) configures the port for half-duplex (two-wire) RS-485 operation or full-duplex (four wire) RS-422/RS-485 operation.
DIP Switch / Mode Settings DIP Switch 1 (RS-422/485 only) The top DIP switch (1) configures the port for RS-485 or RS-422 operation. For RS-422 operation (which uses two wire pairs and sends point-to-point or point-to-multipoints) the transmitter can be enabled all the time. Placing the middle DIP switch in the TX ON position accomplishes this. For RS-485 operation the middle DIP switch is placed in the TX SD position. In this position the transmitter is only enabled when data is being sent.
Connector Pinouts Appendix B: CONNECTOR PINOUTS RS-232 Pinouts Name Description Direction (DTE) DB-9M Pin DCD Data Carrier Detect Input 1 RD Receive Data Input 2 TD Transmit Data Output 3 DTR Data Terminal Ready Output 4 GND Signal Ground ------ 5 DSR Data Set Ready Input 6 RTS Request to Send Output 7 CTS Clear to Send Input 8 RI Ring Indicator Input 9 Figure 56.
Connector Pinouts RS-422/485 Pinouts Name Description Direction DB-9M Pin RD(A) − Receive Data A Input 1 TD(B) + Transmit Data B Output 2 TD(A) − Transmit Data A Output 3 GND Signal Ground ------ 5 RD(B) + Receive Data B Input 9 Figure 58. RS-422/485 Signal Designations and DB-9 Pinout With 2-wire RS-485 mode operation, your connection cable must jumper TD(A) to RD(A) and TD(B) to RD(B). Connect from TD(A) and TD(B) to the Data A(−) and Data B(+) wires of your RS-485 network.
Connector Pinouts Figure 60.
Troubleshooting with ComTest Appendix C: Troubleshooting With ComTest ComTest is a simple 32-bit Windows (Windows 98, 2000, 2003 Server, ME, XP, NT 4.0 and Vista) COM port test program included on the MIport CD. (It can also be downloaded from the B&B Electronics website at: www.bb-elec.com. The program allows multiple ports at any address and IRQ, to be opened at any given time. ComTest Features • A Windows Terminal Program for Simple Checks of Serial Ports.
Troubleshooting with ComTest Installing ComTest 1. From Windows Explorer, under Windows, Programs, COMTest, find the setup.exe file on the MIport CD. Figure 61. Loading ComTest 2. Run Setup.exe to install ComTest on your program menu under B&B Electronics. Loopback Testing with ComTest To familiarize yourself with the operation of ComTest connect a loopback plug to a COM port on your PC and perform the following procedure: 1. C-2 Make any required loopback connections on the port to be tested.
Troubleshooting with ComTest Figure 62. RS-232 Loopback w/Handshaking Connections 2. From the Windows Desktop click Start → Programs → B&B Electronics → ComTest → ComTest. ComTest will start and then open the Select Port dialog box. 3. Select the COM port you want to access or test. (The drop down box shows available ports that are not currently in use). 4. Click OK. The Configure Port dialog will appear. 5. Select the desired baud rate, parity, data bits, stop bits. (Defaults are common settings).
Troubleshooting with ComTest 9. When testing is completed, close the program. Note: For more information on using ComTest to troubleshoot MIport cards and software see Chapter 7.
Declaration of Conformity Appendix D: Declaration of Conformity Statement DECLARATION OF CONFORMITY Manufacturer’s Name: Manufacturer’s Address: Model Numbers: Description: Type: Application of Council Directive: Standards: B&B Electronics Manufacturing Company P.O. Box 1040 707 Dayton Road Ottawa, IL 61350 USA 3PCIoUx Universal PCI Cards Optically Isolated Serial PCI Card Light industrial equipment 89/336/EEC EN 55022 EN 61000-6-1 EN 61000 (-4-2, -4-3, -4-4, -4-5, -4-6, -4-8, -4-11) Michael J.
Declaration of Conformity International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Website: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb.elec.com -- Fax (815) 433-5104 European Headquarters B&B Electronics Westlink Commercial Park Oranmore, Co. Galway, Ireland Phone +353 91-792444 -- Fax +353 91-792445 Website: www.bb-europe.