Instruction/ maintenance manual of the product CP-134U Moxa Technologies
Go to page of 87
Industio CP-134U Series User ’ s Manual Industrial 4-Port RS-422/485 Serial Board for PCI Bus www .moxa.com/product Fif th Edition, January 2004 This manual is also availabl e on CD-ROM and at Moxa’s Website Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 www.
Industio CP-134U Series User’s Manual The software d escribed in this m anual is furnis hed under a license agreem ent and may be used only in accordance with the term s of that agreement. Copyright Notice Copyright 2004 Moxa Technologies Co., Ltd.
MOXA Internet Services Customer satisfaction is our nu mber one c oncern, and to ensu re that customers receive the full benefit of ou r products, Moxa Inter net Services has been set up to provide technical support, driver updates, product information , and user’s manual updates.
Table of Contents 1 Introducti on ........................................................................... 1-1 Overview ....................................................................................................... 1-2 Features ...........
1 1 1 Introduction Welcome to the MOXA CP-134U Series of indust rial 4-port RS-422/485 serial boards for the PCI bus. The following topics are covered in this chapter: Overview Features Pa.
Overview Industio—The Industrial Multiport Async Solution Moxa Industio products are smart, multiport serial I/ O solutions for industrial applications. The Industio CP-134U Series boards , includi ng CP134-UI and CP-134UL , are de signed for a 32-bit PCI bus with the Plug and Play and Universal PCI feature.
Introduction PCI BIOS. This means that th e board MUST be pl ugged into the com puter first before installing the driver so ftware. For more PCI information, refer to the Technical Reference Appendi x. Universal PCI The 32/64-bit PCI local bus sp ecification specifies both 3.
Features The Industio CP-134U Series includes the following products: CP-134U 4 RS-422/485 po rts, Universal PCI inte rface with embedded Surge Protecti on and Isolation P rotection (16 KV ESD, 2 KV I.
2 2 2 Hardware Installation You will need to install both hardware and so ftware for Industio CP-134U Series boards. The hardware install ation procedure is given in this chapter, and the next chapter deals wi th software installation for vario us operating system s.
CP-134U Series Block Diagrams Industio CP-134U Series boa rds’ hardware config uration for IRQ num ber and I/O address is automat ically assigned by t he PCI BIOS. This m eans that the boa rd MUST be plugge d in first before installing the driver software.
Hardware Installation CP-134U The Industio CP-134U Seri es has two 30-pin jumpers and t wo sets of four DIP Switches on the board that allow the us er to set the seri al interface for each of t h e board’s four ports. Ports 1 and 2 c an be set to RS -232, RS-422, RS-485 (2-wir e), or RS-485 (4- wire).
Jumper Settings The two on-board 30-p in jumpers are us ed to select between the RS-23 2 and RS-422/485 serial interfaces. If you select RS-422/485, th en you will also need to set the DIP Switches to select between RS-422 , RS-485 (4-wire), an d RS-485 (2-wire).
Hardware Installation Port 1 DIP Switch Settings S1-1 S2-1 RS-232 — — RS-422 — OFF RS-485 (2-wire) ON ON RS-485 (4-wire) OFF ON Port 2 DIP Switch Settings S1-2 S2-2 RS-232 — — RS-422 — OFF.
Port 3 DIP Switch Settings S1-3 S2-3 RS-422 — OFF RS-485 (2-wire) ON ON RS-485 (4-wire) OFF ON Port 4 DIP Switch Settings S1-4 S2-4 RS-422 — OFF RS-485 (2-wire) ON ON RS-485 (4-wire) OFF ON Indust.
Hardware Installation Installing the Industio CP-134U Series Board St e p 1 : Power off the PC. Wa r n i n g ! T o avoid damaging your system and board , make sure your computer is turned off before installing any board. St e p 2 : Remove the PC’ s cover .
.
3 3 3 Software Installation In this chapter, the software driver installa tion, configurati on, and driver update/removal procedures are described for various operating system s, including Window s NT, Windows 95/98, Windows 2000/XP, a nd Linux.
Windows NT Windows NT suppo rts up to 256 serial ports, from COM1 to COM256 . To fully integrate the advanc ed features of W indows NT, Moxa has developed multi-process and multi-thread, pure 32-bit W indows NT device d rivers for the Industio CP-134U Series m ultiport boards.
Software Installation Installing the Driver The following proced ure is for installing th e Industio CP-134U Series driver for the first time under Windo ws NT 4.0. Before ta king these steps, m ake sure the board(s) have already been pl ugged into the system’s PCI sl ot(s).
5. Select “ MOXA Smartio / Industio Fa mily multiport board ” from the “Select OEM Option” dialog bo x, and then click [ OK ] to enter the “ MOXA Smartio/Indus tio Configuration Panel ” dialog box to start the installation.
Software Installation 8. The [ Port # ] window will open to allow you to chang e settings, as described below , for that partic ular port. Port Number Y ou must set up all of the board’ s ports with.
should not conflict wit h other COM num bers in use. In t his “Individual P ort Setting” dialog box, t here are two ways to map physical po rts to COM num bers, depending on whether you check the “ Auto Enumerating COM Number ” box.
Software Installation 10. When you have finish ed the configuration, click on the [Close] button in the “Netwo rk Settings” dialog bo x. 11. Restart the W indows NT system. The new co nfiguration will take effect when the system restarts. Note ! The latest configuration will not take effect unless the system restarts.
Note ! Once the board and the driver are installed an d the driver restarts successfully , you can start to de velop applications with t he PComm library (see the “Serial Progra mming T ools” chapter) or t he Microsoft W in32 API.
Software Installation Y ou may use this co nfiguration panel to: Click on [ Property ] to enter the “Prope rty” dialog box to configure th e selected board with the correct “COM Number ,” “Rx FIFO T rigger ,” and “Tx FIFO Size.” See S teps 8 and 9 in the previous section, “Installing the Driver ,” for more details.
Removing the Driver To remove the driver for the Industio CP-134U Series b o a rd , 1. Open the [ Control Panel ], click on the [ Network ] icon, and select the [ Adapters ] tab. 2. Select “ MOXA Smartio / Industio Family Adapter ” from the adapter list, and then click on the [ Remove ] button, and then click [ OK ] to remove the driver .
Software Installation Install the Smartio PCI board in th e system. Start W indows 95/98 to d etect the board. D r i v e r i n s t a l l e d b e f o r e ? Y e s N o Install the driver from the diskette. See the “ First T ime Driver Installation ” section.
First Time Driver Installation Stage This stage presents the step s for installing the Industio CP-134U Series board driver for the first time. The installation of the Industio CP-134U Series board for Windows 95 and Windows 98 are sligh tly differ ent and will be described in two columns.
Software Installation Windows 95 Windows 98 3. T ype A:Windows.95 in the Location field, and then click [ OK ] in the [ Select Other Location ] window . The system will start reading the files from the disket te. 3. Select Other Devices and t hen click [ Next ] to continue.
Windows 95 Windows 98 5. T ype E:Sof twareW in98W indows.95 and then click [ OK ]. The system will start reading the files from the diskette. 6. Click on [ Next ] to continu e.
Software Installation Port Configuration Stage This stage presents the steps for configuring the Industio CP-134U Series boa rd’s ports under Windows 95/98. After the driver is installed, the CP-134U Series Installation window wil l appear automatically, and the port mapping will be done auto matically by the system.
defined Rx FI FO T rigger to all ports. 7. Select a Tx FIFO Size from the Tx FIFO Si ze pull-down list. Tx FIFO sizes from 1 to 64 bytes are availabl e, with the default value set at 64 bytes. 8. Check the [ Set the change to al l ports ] check-box if you want to apply the just defined Tx FIFO Size to all p orts.
Software Installation Board and Port Ready Stage The Board and Port Ready Stages for Windows 95 and Windo ws 98 are slight ly different . This last stage completes the driver installation. Windows 95 Windows 98 After configuring th e ports, restart W ind ows 95 before usin g the Industio CP-134U Series board’ s COM ports.
Configuring the Board and Ports Follow the procedur e given below if you would lik e to reconfigure the COM nu mbers of ports for bo ards that are alr eady installed und er Windows 95/98. Since this is a PCI board, once the board is added or unplugged, the configu ration will be automatically added or removed by the system.
Software Installation you woul d like to change. 4. Click on the Por t Setting button to open the Por t x window . Note! Step 5 is optional if you want to assign COM numbers to the Port m anually . 5. Check the [ Auto Enumerating COM N ame ] check-box to assign continuous COM numbers for subsequent po rts.
6. Re-assign the Rx FIFO T rigger by selec ting a number from the pull-down list. Check the [ Set the change to all ports ] check-box if you want to app ly this setting to all ports. Rx FIFO trigger levels of from 1 to 62 bytes are available, with the default value set at 64 bytes.
Software Installation 2. Once the CP-134U Series Port x [COM y ] Properties window opens, click o n the Port Settings tab. 3. You may now m ake modifications t o Bits per second , Data bits , Parit y , Stop bits , or Flow control .
4. Clic k OK to accept the changes. Updating the Driver This section will discuss how to update the Wi ndows 95/98 driver to enhance th e function of the board. 1. Open the [ Control Panel ], click the [ System ] icon, and select the [ Device Manager ] tab.
Software Installation 4. Click on the [ Update Driver ... ] button. 5. Click on the [ Specify a location ] checkbox and either type in the path to the file, or click on [ Browse ] to use Wi ndows Exp lorer to locat e the file, and then click on [ Next ] to continue.
Removing the Driver This section ex plains how to rem ove the Industio CP-134U Series board driver. 1. Open the [ Control Panel ], double click on the [ Add /Remove P rograms ] icon, and then select the [ Install/Uninstall ] tab.
Software Installation Windows 2000/XP Windows 2000/X P supports up to 256 serial ports, from COM 1 to COM256 . To fully utilize Windows 20 00/XP’s multi-process an d multi-thread advanc ed features, pure 32-bit Windows 2000 /XP device drivers were deve loped for the Industio CP-134U Series and other MOX A multiport boards.
Industio CP-134U Series 3-26 User’s Manual 3. Select Sear ch for a suitable driver… and then click on Next to continu e. 4. Select Specify a loca tion and then click on Next to conti nue. 3. Select Search for the bes t driver… and then click on Next to contin ue.
Software Installation 5. Insert the Moxa Driver CD into the CD-ROM drive, and then specify the location of the file as F:/multi_bd/software/win2k as sh own below (change the drive letter if needed). Click OK to continue. 6. Clic k Next to copy the driver files to your system.
7. The next window shows t he model number of the board, and indicates that W indows has completed the driver installation. Click on Finish to continue with the rest of the installation procedure.
Software Installation 10. Select Search for a suitable driver for my device [recommended] , and then click on Next to conti nue. 11. Select Specify a location and then click on Next to cont inue 8. Select Install the software from a specific location and then click on Next to continue.
Next to conti nue. 12. Insert the Moxa Driver CD into the CD-ROM drive, and then specify the location of the file as F:/multi_bd/software/win2k as sh own below (change the drive letter , if needed). Click OK to continue. 13. Cli ck on Next to continue with th e 10.
Software Installation installation. 14. After all files have been copied to the system, the Completing t he Found New Hardware Wiz ar d w indow will open to indicate that it has finished i nstalling “Port 0 .” Click on Finish to install the board’ s second port.
How to Check the Installation There are three ways t o check the inst allation of the CP-134 U Series board. Device Manager 5. You can check the instal lation of the boar d by selecting Start Settings Control Panel System , and t hen click on the Device Manager button.
Software Installation If the driver in stallation was successful, you will be able to see the model num ber of the CP-134U board listed under Multi-port serial adapters . You may al so expand the P orts (COM & LPT) item to check the status of the COM ports.
Removing the Driver 1. Y ou can uninst all the board by selecting St a r t Settings Control Panel System . Windows 2000 Windows XP Industio CP-134U Series User’s Manual 3-34.
Software Installation 2. Select the Hardware tab, and then click on Device Manager . Use the mouse to place the cursor over the CP -134U Series boa rd under Mul ti-port serial adap ters , and then clic k the right m ouse button. Select the Uninstall… option.
4. The Device M anager window will automatically refresh to show that the driver and ports for the CP-134U Series board ha ve been removed. Industio CP-134U Series User’s Manual 3-36.
Software Installation Linux NOTE: This se ction applies t o Linux kernel 2 .2.14 or later. The Moxa Smartio/Industio driver is included in the Linux kernel 2.2.14 or later versions. However, to use this built-in driver, you need so me additional utilities that can be downloaded from the Mox a website, or softwa re CD-ROM.
msdiag Diagnost ic program for displaying inst alled Moxa Sm artio/Industio boa rds. msmon Monitoring program to observe data count a nd line status si gnals. msterm A sim ple ter minal program which is useful when testing serial ports. io-irq.exe Configuration pr ogram for set ting up ISA boards.
Software Installation installing the bo ard. PCI IRQ Sharing Each port on the same multiport board will share the same IRQ. Up to 4 Moxa Smartio/Industio PCI Family multiport boards can be installed together on the same system, and it’s quite possible that they will all share the same IRQ.
2nd board ttyM8 - tt yM15 cum8 - cum 15 3rd board tt yM16 - ttyM23 cum16 - cum 23 4th board ttyM24 - t tym31 cum24 - cum31 Board sequence This driver will activate ISA boards according to the parameter set in the driver. After all specified ISA boards have been activated, PCI board will be installed in the syste m automatically driven.
Software Installation the source code if you modify the source c ode . For example, if y ou change the driver's major number (see Section 3.7), then you will need to redo this step. Find "Makefil e" in /moxa/mxser, a nd then run # make clean; make install The driver files "mxser.
# mv mxse r. c mxs er .c. ol d For Red Hat 7.x users, you must create a link: # cd /usr/src # ln -s linux-2.4 linux 2. Create link # cd /usr/src/linux/drivers/char # ln -s /moxa/m xser/driver/mxser.c mxser.c 3. Configure the k ernel: # cd /usr/src/linux # make m enuconfig You will go into a menu-driven sy stem.
Software Installation # make clean; make install 7. Reboot Static driver configuration (for Linux kernel 2.0.3x, and 2.2.14 or earlier) 1. Create link # cd /usr/src/linux/drivers/char # ln -s /moxa/m xser/driver/mxser.c mxser.c 2. Modify tty_i o.c # cd /usr/src/linux/drivers/char/ # vi tty_io.
If you use the 'lilo' utility, yo u should check the /etc/lilo .conf 'image' ite m specified in the 'vmlinuz ' path, or you will load the wro ng (or old) boot kernel image (vmlinuz). After checking /etc/lilo.conf, run "lilo".
Software Installation 3. Insert the new ma jor numbers into t he driver’s source c ode. Run vi to open /moxa/m xser/driver/m xse r.c. Locate the line that contains "MXSERMAJOR", and change the content as below: #define MXSERMAJ OR 40 #define MXSERCUM AJOR 45 4.
Setserial Supported Setserial parameters are listed as below. uart set UART type (164 50-->disable FIFO, 1655 0A-->enable FIFO) close_delay set the amount of tim e(in 1/100 of a second ) that DTR should be kept low while bein g closed.
Software Installation equal to zero) for one Moxa boar d. Error msg: No interrupt ve ctor can be set for the Moxa ISA board (CA P=xxx). Solution: Moxa ISA boards need an i nterrupt vector. Refer to the "Hardware Installation" chapt er from the user' s manual to set an interrupt ve ctor.
.
4 4 4 Serial Programming Tools Moxa suppo rts an easy to use y et powerful se rial programmi ng library and com munication troubleshooting utilities under Windows NT, Windows 95/98, Wind ows 2000/XP, and DOS. You will save a lot of development time by using MOXA’s Serial Programming Tools.
PComm Installation To install PComm , run Setup.exe from the diskette. Note that the PComm diagnostic and monitor utilities are for MOXA boards only. MOXA W indows NT, Windows 95/98, or Windows 2000/XP device drivers, as well as MOXA boards are required.
Serial Programming Tools How to transmit and receive data for Windows NT, and 95/98 In order to ac quire precise tim ing control for RS-4 85 2-wire transmi ssion, we recommend that you configure you r Industio CP-134U Series ports as described below .
.
5 5 5 Connection Cables and Cable Wiring Pinouts and Cable Wiring The CP-134U Series boards have one DB44 female por t on the board that sends sign als to four indepe ndent serial ports.
RS-232 Interface When ports 1 an d/or 2 are configured for the RS-232 interface, the pinou ts are as shown below. CP-134U (RS-232) Port 1 Port 2 13 TxD 9 TxD 14 RxD 10 RxD 15 RTS 11 RTS 28 CTS 24 CTS .
Connection Cables and Cable Wiring RS-485 Interface The RS-485 st andard is an enhance d version of t he RS-422 bala nced line standard . It allows multiple drivers and receivers to work on a m ultidrop network. A maximum of 32 drivers and 32 receivers can be set up on a multidrop network.
CP-134U (2-wire RS-485 ) Port 1 Port 2 Port 3 Port 4 13 Data+(B) 9 Data+(B) 5 Data+(B) 1D a t a + ( B ) 29 Data-(A) 25 Data-(A) 21 Data-(A) 17 Data-(A) Individual Port Pinouts In this su bsection we give the pinouts f or individual ports.
Connection Cables and Cable Wiring RS-422 DB9 DB25 Pin No. Signal Pin No. Signal 1 TxD-(A) 3 RxD +(B) 2 TxD+(B) 2 TxD+(B) 3 RxD+(B) 4 RTS+(B) 4 RxD-(A) 5 CTS+(B) 5 GND 7 GND 6 RTS-(A) 22 CTS-(A) 7 RTS+(B) 8 RxD-(A) 8 CTS+(B) 20 TxD-(A) 9 CTS-(A) 6 RTS-(A) RS-485 (4-wire) DB9 DB25 Pin No.
RS-485 (2-wire) DB9 DB25 Pin No. Signal Pin No. Signal 4 Data-(A) 2 Data+(B ) 3 Data+(B) 7 GND 5 GND 20 Data-(A) Industio CP-134U Series User’s Manual 5-6.
Connection Cables and Cable Wiring Cable Wiring—DB9 RS-422 Point-to-poi nt RS-422 Broadcasting CP-134U RS-422 Device CP-134U RS-422 Device 1 2 TxD+(B) RxD+(B) 2 TxD+(B) RxD+(B) 1 TxD-(A) RxD-(A) 3 R.
Multidrop 2-w ire RS-485 (half-duplex) CP-134U RS-485 Device 1 Master Slave 3 Data+ Data+ 4 Data- Data- 5 GND GND RS-485 Device N Slave Data+ Data- GND Multidrop 4-w ire RS-485 (full-duplex) CP-134U R.
Connection Cables and Cable Wiring Impedance Matching and Termination Resistors When using RS-422/485 serial communications , a n electrical signal that travels through two different resistance junctions in a tran smi ssion line will sometimes give rise to signal reflection due to the impedanc e mismatch.
.
6 6 6 Troubleshooting Comm on Industio CP-134U Series problem s and possible solutions are listed bel ow. If you still have problems, contact your deal er or Moxa for help, or use th e Problem Report Form at the en d of this manual to report probl ems to your dealer.
2. The MOX A board and driver are activate d but cannot transfer (transmit/receive) data. Hardware Causes and Solutions: a. Make sure the cable wiring is connected correctly. Refer to the “ Connection Cable and Cable Wiring ” chapter for correct cable connections .
Troubleshooting Windows NT This section is specific fo r troubleshootin g under Windows NT. For general problem s and solutions, see t he previous secti on, “General Troubles hooting.
Windows 95/98 This section is specific fo r troubleshootin g under Windows 95/ 98. For general problem s and solutions, see the previous sec tion, “ General Troubleshooting.” 1. The system fails to find the Industio CP-134U Series board! The board(s) is(are) not p lugged properly.
A A A Technical Reference Specifications Bus interface 32-bit PCI Number of por ts 4 Max. No. of boards 4 I/O address Assigned by PCI BIOS IRQ Assigned by PC I BIOS Comm. cont roller 16C550C o r compatible Transmission speed 50 bps – 230.4 Kbps 230.
Power requi rement CP-134U 420 mA m ax. (+5V) CP-134UI 700 m A max. (+5V ) CP-134IS 710 mA m ax. (+5V) Dimensions CP-134U 120 × 80 mm (W × D) CP-134UI 120 × 110 mm (W × D) CP-134S 120 × 80 mm (W .
Service Information Return Procedure For product repair, excha nge, or refund, the customer m ust: Provi de evidence of origi nal purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer. Fill out the Problem Report Form (PRF).
Industio CP-134U Series User’s Manual A-4 Revision History Document Edition Revision Date Revision Deta ils 3 rd August 8, 20 03 1. p. 5-2 : Changed Rx D-(A) of P ort 2 from 21 to 25, RTS -(A) of Port 2 from 22 to 9, TxD-(A) of P ort 2 from 35 to 39, CTS- (A) of Port 2 from 36 to 40, GND o f Port 2 from 37 to 41 in R S-422 Interface.
Service Information Industio CP-134U Series User’s Manual A-5 5. p. 5-7 Changed RS -422 Device to RS-485 Device of th e wiring table of 2-wire RS-485 un der Cable Wiring-DB9. 5 th January 27, 2004 1. Update the edit ion of this manual on the title page.
An important point after buying a device Moxa Technologies CP-134U (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Moxa Technologies CP-134U yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Moxa Technologies CP-134U - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Moxa Technologies CP-134U you will learn all the available features of the product, as well as information on its operation. The information that you get Moxa Technologies CP-134U will certainly help you make a decision on the purchase.
If you already are a holder of Moxa Technologies CP-134U, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Moxa Technologies CP-134U.
However, one of the most important roles played by the user manual is to help in solving problems with Moxa Technologies CP-134U. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Moxa Technologies CP-134U along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center