PCL Communication Industrial Serial Communication Cards with ISA Interface PCL-740A PCL-741A PCL-743B PCL-743S PCL-745B PCL-745S PCL-746+ PCL-846A PCL-846B PCL-849A PCL-849B PCL-849+ PCL-849L PCL-858A PCL-858B User Manual
Copyright The documentation and the software included with this product are copyrighted 2005 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. FCC Class A This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules.
Packing List Before setting up the system, check that the items listed below are included and in good condition. If any item does not accord with the table, please contact your dealer immediately. • PCL communication interface card • Industrial communication driver, utility and user manual in ICOM CDROM Safety Precaution - Static Electricity Follow these simple precautions to protect yourself from harm and the products from damage. 1.
PCL COMMUNICATION User Manual vi
Contents Chapter 1 Introduction ..................................................... 2 1.1 1.2 1.3 1.4 Chapter Description ........................................................................ 2 Features ............................................................................. 2 Specifications .................................................................... 3 Ordering Information ........................................................ 5 1.4.1 1.4.2 PCL Communication Cards .................
2.3.6 2.3.7 2.3.8 Chapter 3 Software Installation ..................................... 32 3.1 Operating Environment Selection ................................... 32 3.2 Driver Setup .................................................................... 32 3.3 3.4 Chapter Figure 2.20:Standard or Enhanced Mode selection for PCL-849A/B/+ ................................................. 23 Figure 2.21:Port Base Address Setting ........................ 24 Figure 2.22:Setting to 2F8 .....................
4.5 Chapter Messages on Status Bar and Message Logo Area........... 57 4.5.1 4.5.2 Status Bar Messages .................................................... 57 Message Logo Messages ............................................. 58 5 Pin Assignments and Wiring........................ 60 5.1 Pin Assignments.............................................................. 60 5.1.1 5.1.2 5.1.3 5.1.4 5.2 Wiring.............................................................................. 67 5.2.1 5.2.
PCL COMMUNICATION User Manual x
CHAPTER 1 2 Introduction This chapter introduces the PCL series and their specifications.
Chapter 1 Introduction 1.1 Description The ISA cards of the PCL Series provide an independent processor 16C550, 16C554 or 16C654 UART with an on-chip 16-byte or 64-byte FIFO buffer for reliable high-speed serial I/O. The UART buffers data into 16-byte or 64-byte packets before putting it on the bus. This drastically reduces the CPU’s load and avoids data loss when the system is busy and can’t process the interrupt quickly, which is especially useful for high speed serial I/O under Windows.
1.
• Power Consumption Typical Max PCL-740 250 mA (+5V) 350 mA (+5V) PCL-741 300 mA (+5V) 1100 mA (+5V) PCL-743B/S 400 mA (+5V) 950 mA (+5V) PCL-745B/S 400 mA (+5V) 950 mA (+5V) 800 mA (+5V) 1500 mA (+5V) 60 mA (±12V) 120 mA (±12V) 970 mA (+5V) 1200 mA (+5V) 250 mA (+5V) 500 mA (+5V) 70 mA (±12V) 120 mA (±12V) 450 mA (+5V) 950 mA (+5V) 140 mA (±12V) 240 mA (±12V) PCL-746+ PCL-846A/B PCL-849A/B/+/L PCL-858A/B • Operating Temperature (refer to IEC 68-1.2.
• Current Value: 4~20mA • Mode: Asynchronous, full duplex • Baud-rate: 50 ~ 57,600 bps • Transmission Distance: 1000 m 1.4 Ordering Information 1.4.
1.4.
CHAPTER 2 2 Hardware Configuration This chapter shows how to configure your PCL card and then install it.
Chapter 2 Hardware Configuration 2.1 Initial Inspection You should find the following items inside the shipping package: • PCL communication interface card • Industrial Communication Driver, Utility and PCL communication card • User manual in ICOM CD-ROM We carefully inspected the PCL communication card series mechanically and electrically before we shipped it. It should be free of marks and scratches and in perfect working order on receipt.
2.2 Jumper and Switch Locations Figure 2.
Figure 2.
Figure 2.
Figure 2.
Figure 2.
Figure 2.
Figure 2.
Figure 2.
2.3 Jumper Settings This section tells how to set the jumpers to configure your card. It gives the card default configuration and your options for each jumper. 2.3.1 How to Set Jumpers You configure your card to match the needs of your application by setting jumpers. A jumper is the simplest kind of electric switch. It consists of two metal pins and a small metal clip (often protected by a plastic cover) that slides over the pins to connect them. To close a jumper you connect the pins with the clip.
2.3.3 Default Setting The board is shipped with default settings. If you need to change these settings, however, see the following sections. Otherwise, you can simply install the card. Note that you will need to disable your CPU card's onboard COM ports, if any, or set them to alternate addresses / IRQ. Table 2.1: Default setting of ISA Comm.
Figure 2.11: Mode Selections for PCL-741 Note: When RS-232, RS-422 or RS-485 mode is selected, current-loop Tx/Rx active/passive jumpers are inoperable. Should you want to configure the PCL-740 or PCL-741 to operate in the current loop mode, configure the main jumper for current-loop. You also have to set Tx and Rx for active or passive mode. In the active mode the Tx or Rx will generate the current required for data transfer over the link.
Figure 2.13: Current Loop Link PCL-743B/S, PCL-745B/S, PCL-846A/B You can set each port individually for either RS-422 (the default) or RS485 operation. The figure below shows the jumper settings. Figure 2.14: RS-422/485 Mode Selection for PCL-743B/S, PCL-745B/S and PCL-846A/B Enable Mode Selection Jumpers set the driver enable mode selections of every port respectively. If a jumper is set to "AUTO," the driver automatically senses the direction of the data flow and switches the direction of transmission.
If a jumper is set to "ON," the driver is always enabled, and always in high or low status. The user must select a mode before beginning RS-422 applications. Figure 2.15: Enable Mode Selection for PCL-743B/S, PCL-745B/S and PCL-846A/B PCL-746+ Should you wish to configure the PCL-746+ to operate in the RS-232 mode, then the upper two pins of the 12*3 pin jumper should be connected. For RS-422/ RS-485 mode selection, the bottom two pins of the 12*3 pin jumper should be connected as shown below. Figure 2.
Figure 2.17: Mode selection for PCL-746+ 2.3.5 I/O Address and Interrupt Setup Next, you will need to select an IRQ (interrupt request) number, and an I/ O base address for the Card. In PCL-746+, PCL-846A/B and PCL-849A/ B/+, you can choose standard mode or enhanced mode. For other cards such as PCL-740, PCL-741, PCL-743B/S, PCL-745B/S, PCL-849L and PCL-858A/B, the cards are designed for enhanced mode.
Figure 2.19: Standard or Enhanced Mode selection for PCL-846A/B Figure 2.20: Standard or Enhanced Mode selection for PCL-849A/B/+ Standard Mode In this mode each of the four ports can be setup as the address or the IRQ channel individually. Port Base Address 1 3F8 2 2F8 3 3E8 4 2E8 Enhanced Mode In this mode all four ports share the same IRQ and continue to use the cards designated IRQ address.
Base address setting (SW1 or S2) For base address specify the I/O address of the first port and subsequent ports are set continuous base addresses by the offset of 8 bytes. For instance, if the first port is set for 300H, then the second port is set to 308H sequentially. For 8 ports, specify the continuous PORT number of the first port and subsequent ports are mapped to continuous PORT numbers.
The following example shows how to set the base address to 2F8. The switch sum is set to 2F8: 200 + 80 + 40 + 20 + 10 + 8 (HEX). Figure 2.22: Setting to 2F8 Note: On the PCL-740, PCL-741, PCL-743B/S, PCL745B/S, PCL-846, PCL-849A/B/+/L address line A9 does not appear on the DIP switch, as it is permanently hardwired to hex 200. Interrupt Level (IRQ) Setting In PCL-746+, PCL-846A/B and PCL-849A/B/+, you can choose shared IRQ or Independent IRQ.
Figure 2.23: Shared or Independent IRQ selection for PCL-746+ Figure 2.24: Shared or Independent IRQ selection for S2 of PCL-746+ and S1 of PCL-849A/B/+ Independent IRQ Mode In this mode, each of the four ports can have IRQ channels set individually. For each port, select an IRQ, which is not already in use by another card in the system. The mapping of jumpers to ports is as shown below.
Shared IRQ Mode In this mode, all channels in card share the same interrupt (IRQ), and interrupt status register is available for determining the interrupt source. Select an IRQ, which is not already in use by another card in the system. If you are installing more than one card, set them to different IRQ number. Jumper Bank JP1 controls the card IRQ. Simply place the jumper on the interrupt level as shown in the following figure. You can set share IRQ selection as the following table shows. Figure 2.
2.3.7 Interrupt Status Register Bit Function 0 Port 1 1 Port 2 2 Port 3 3 Port 4 4 Port 5 5 Port 6 6 Port 7 7 Port 8 You may change the interrupt status address via SW2 or S5. Please note the address decoder will occupy a continuous, 8-byte area related to switch setting. For example, if you set the switch to 210H, the addresses 210H to 217H will all be decoded. The various DIP switch settings (SW2 or S5) for the interrupt status register are shown in the figure below. Figure 2.
2.3.8 Speed Mode selection PCL-735B/S, PCL-745B/S, PCL-746+, PCL-846A/B and PCL-858A/B employ a unique speed option that allows the user to choose either normal speed mode (1x) or high speed mode (8x). The high speed mode is selected with SW2. Normal Speed Mode To select the baud rate commonly associated with COM ports, such as 2400, 4800, 9600 bps, or 115.2 kbps, place the switch as follows. High Speed Mode To increase normal mode rates up to eight times, (e.g. if 115.
PCL-COMMUNICATION User Manual 30
CHAPTER 3 2 Software Installation This chapter shows to how install the driver and then configure your PCL card.
Chapter 3 Software Installation 3.1 Operating Environment Selection Set jumper 3 (JP3) to correspond with the supported operating environment. Connect the two pins on the right to operate in Windows 98/2000/ XP mode as shown below. Figure 3.1: OS Jumper Selection Note Setting the pin to 1-2 is for DOS and Windows 3.1, which was supported before 2005. From 2005, Advantech’s PCL cards no longer supports DOS and Windows 3.1. 3.
3. Click the Installation button to start installation.
4. Click ICOM Card Drivers for Installation 5. Choose the product you want to install, and then click the hyperlink.
6. Click Next to continue installation. 7. Type a user name and company name, then click Next.
8. Click Next to accept the default installation folder, or specify a folder by clicking the Browse button. 9. Choose tools and click Next.
10. Confirm the program folder and click Next. 11. Click Back to review or change your settings, or click Next to begin copying files.
12. Click Finish to complete the installation.
3.3 Configuring ISA ICOM Serial Devices After you install the driver, you can configure it in the ISA Configuration Tool. Please follow the steps below to set up the ISA communication card’s configuration tool. 1. Execute the program from the Taskbar [Start] button, and then select [Programs] menu, then [Advantech Automation] menu and then [ICOM] icon and then [ISA Configure Tool] icon and execute the ISA Configure Tool. 2. You can see the configuration screen.
3. Click the Add Board button to add a board. 4. Choose the Board Type you want to install, and set up the Base Address, Specify the base address of the first port and subsequent base address is mapped to continuous COM numbers. For instance, if the first port is mapped to 300H, then the second port is mapped to 308H sequentially. Base port Name, Specify the COM number of the first port and subsequent ports are mapped to continuous COM numbers.
5. After all configuration are set up, click add a new port. Configuration will assign all ports automatically. 6. You will see information about all ports, and should click exit to restart your system. Unless the system is restarted, the changed configurations won’t be saved.
3.4 Driver Uninstallation You have to remove the original device you installed, the COM port in Window’s device manager and uninstall the driver before installing another model from Advantech’s ISA ICOM series devices. Please follow the below steps for uninstalling the driver. 1. Insert the ICOM CD and choose the product that you want to uninstall the driver for.
2. Click Remove and Next button to remove all installed components. 3. Click the Finish button to complete the uninstall Note: We recommend you to remove both the original device and COM port in Window’s device manager and driver before installing another model of Advantech ISA ICOM series device.
PCL-COMMUNICATION User Manual 44
CHAPTER 4 2 ICOM Tools This chapter provides information on installation and usage of ICOM Tools.
Chapter 4 ICOM Tools 4.1 Introduction Advantech ICOM Tools is a convenient utility that has been designed to help you test the performance of ICOM cards through analyzing the port status. It features an easy to use graphical user interface that will soon make you familiar with testing via menu commands and toolbar buttons. Advantech ICOM Tools is applicable to all series of Advantech ICOM cards, and can even be used with other third-party ICOM cards.
4.3 User Interface of ICOM Tools 4.3.1 Menu Bar On the Menu Bar you can select various menu commands to perform port-testing functions. You can also use the short-cut keys.
4.3.2 Tool Bar Using the Tool Bar buttons is a more intuitive way to implement the functions of ICOM Tools.
4.3.3 Com Port Tab Each Com Port tab represents a specific port you have selected for test and configuration. On the tab, you can see the Transfer Mode, Port Status, and Message Logo area. Transfer Modes You can specify the transfer mode to be Normal, loopback (active) or loopback (passive). Normal—allows data to be transmitted and received simultaneously. The data reception rate is helpful in identifying the performance of a communication card installed on your system.
4.3.4 Port Status DTR (data-terminal-ready) DSR (data-set-ready) RTS (request-to-send) CTS (clear-to-send) CD (carrier-detect) For RS-232 specifications, DTR and RTS are for output signals and can be toggled on and off by double-clicking the labels (such as DTR, DSR, RTS, CTS, CD) under the red/green marks. However, if you are using RTS/CTS for flow control to run the test, you will see the RTS mark appear in black.
4.3.6 Tx Slide Bar The Tx Slide Bar allows you to control the overall system loading. You can adjust the transmission rate of your port(s) from 0% to 100%. Just drag the slide button along the track to adjust the transmission rate. 4.3.7 Performance Listing Area On the performance listing area, you can see the relevant information, such as Rx Length (received packet byte length), Bytes/Sec (transmission rate) and Last Abnormal Status of each port running a test. 4.3.
4.4 Using the ICOM Tools Utility To launch the ICOM Tools testing utility, access Start/Program/Advantech Automation/ICOM/ICOM Tools to start the COM port examine tool. 4.4.1 Port Selection Please follow the steps below to make your port selection: 1. Launch ICOM Tools. You will first see the Program Window such as Figure 4.1. Since you haven’t selected any port for testing yet, all you can see now is a blank window area. Figure 4.1: ICOM Tools program window 2.
Figure 4.2: Select Port dialog box Select the port(s) you want to perform test on from the checkboxes next to each COM port. You can either click the checkbox or double-click the name(s) of the port(s) to select/deselect port(s) to perform the test on. The port(s) you selected will immediately appear in the Selected Port field. Figure 4.
Figure 4.4: ICOM Tools User Interface 4.4.2 Configuring a Port You can choose to configure a specific port (or to configure all ports) before running your test. Just click a Com Port Tab to select the port you want to configure, and then click the Port Setup button or use the Port/Setup menu command (or if you want to configure all ports at once, just click the All Ports Setup button or access the All Ports/Setup menu command) to bring up the Configure Port dialog box such as below.
In the Configure Port dialog box, you can configure the Baud Rate, Data bits, Parity, Stop Bits and the flow control mode for that specific port (or for all ports). After you have configured all the settings you want to change, click OKto make this configuration active. NOTE: When using All Ports Setup button or All Ports/ Setup menu command to configure settings for all ports, you must take care to stop any ports that are running test in order to configure them.
The Performance Listing Area Port The com port number Rx length Received packet length in bytes Bytes/Sec Transmission rate in Bytes/Sec Last Abnormal Status Last abnormal status Stop the Test If you want to stop the test on a specific port, just click Port Stop button or access Port/Stop menu command (or if you want to stop test on all ports, just click All Ports Stop command).
4.5 Messages on Status Bar and Message Logo Area Messages appearing on the Status Bar and Message Logo area are helpful in understanding specific information of your system settings and performance. 4.5.1 Status Bar Messages BUSY: the port is currently used by another application. FAIL: the configuration parameters are not accepted by the port N/A PORT: the port is not available in the system READY: the port is ready to run or to be configured.
4.5.2 Message Logo Messages Port Opened: The user has opened the port Port Setup Fail: The user has set up the port configuration with parameters that are either incorrect or unsupported. Port Running: The port is running a test Port Stopped: The test is stopped on the port Tx Starting/Tx Stopped: transmitting starting/transmitting stop Rx Starting/Rx Stopped : receiving starting/receiving stop Break Error: a break event has been detected on the port Framing Error: A timing error (i.e.
CHAPTER 5 2 Pin Assignments and Wiring This chapter shows all pin assignments, wiring and the setup of termination resistors.
Chapter 5 Pin Assignments and Wiring 5.1 Pin Assignments 5.1.1 PCL-740 and PCL-741 The following figures show the pin assignments for the card's DB-9 and DB-25 connectors in RS-232/422/485 and current-loop modes. Figure 5.1: PCL-740 Pin Assignments Figure 5.
5.1.2 PCL-743B/S, PCL-745B/S, and PCL-846A/B The following table show the pin assignments for the card's DB-9 connectors in RS-422 and RS-485 modes. Table 5.1: PCL-743B/S, PCL-745B/S Pin Description (DB-9 male) 1 TX-(DATA-) or send data - (DTE) 2 TX+(DATA+) or send data + (DTE) 3 RX+ or receive data + (DTE) 4 RX - or receive data - (DTE) 5 GROUND 6 RTS - or ready to send - 7 RTS+ or ready to send + 8 CTS+ or clear to send + 9 CTS- or clear to send - 5.1.
Figure 5.4: PCL-746+, PCL849A/B/+/L RS-232 DB-25 Pin Assignments Figure 5.
Figure 5.6: PCL-746+ RS-422/RS-485 DB-37 Pin Assignments Figure 5.
Figure 5.8: PCL-746+ RS-422 DB-9 Pin Assignments Figure 5.9: PCL-746+ RS-485 DB-25 Pin Assignments Figure 5.
5.1.4 PCL-858A/B RS-232 8-port connection boxes/octopus cables designed for PCL-858 are: • Opt8A+: 8-port DB25 female connection box • Opt8B+: 8-port DB25 male connection box • Opt8C: Octopus cable with 8 male RS-232 DB25 ports • Opt8H: Octopus cable with 8 male RS-232 DB9 ports The following shows the pin assignments of the DB62 connector on the bracket. You may fabricate octopus cable for 8 x DB25 or 8 x DB9 with these pin-outs. Figure 5.
Figure 5.12: PCL-858A/B with OPT8A+ RS-232 DB-25 Pin Assignments Figure 5.13: PCL-858A/B with OPT8B+/C RS-232 DB-25 Pin Assignments Figure 5.
5.2 Wiring 5.2.1 RS-232 Signal Wiring Since the RS-232 interface is not strictly defined, many devices have their own connection methods, which may ignore some signal lines or define reserved lines for other functions. It is best to refer to the user’s manual of your device for installation instructions. You may find the following helpful. In general, DTE (Data Terminal Equipment) refers to the device that is leading the communication. Examples include PCs, terminals and some printers.
For DTE to DCE connections, use straight through cable (i.e., you don't have to reverse lines 2 and 3, lines 4 and 5, and lines 6 and 20 since, in general, the DCE RS-232 interfaces are reversed themselves). Table 5.
5.2.2 RS-422 Signal Wiring The RS-422 interface wiring is based on one-to-one principles. The transmit lines on one side connect to the receive lines on the other side, and vice versa. With RS-422, you can transmit and receive data simultaneously (full duplex). The connections are as follows: Table 5.
5.2.3 RS-485 Signal Wiring The RS-485 standard supports half-duplex communication. This means that just two wires are needed to both transmit and receive data. Handshaking signals (such as RTS, Request To Send) are normally used to control the direction of the data flow and to switch the transmission accordingly. In RS-485 mode, the communication card automatically senses the direction of the data flow and switches the transmission direction — no handshaking is necessary.