user’s manual mpb-a6205c · comments . 1.0 . october 2002 . english version of user’s manual...

46
U U S S E E R R S S M M A A N N U U A A L L MPB-A6205C 24-Bit 8-Channel Encoder Pulse Counter Board

Upload: others

Post on 30-Nov-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

UUSSEERR’’SS MMAANNUUAALL

MPB-A6205C 24-Bit 8-Channel Encoder Pulse Counter Board

Page 2: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

Notes to Users

You should carefully read “Cautions, Periodic Inspections, and Storage” for your safety

before using this product.

The specifications of the product are under continuous improvement and while every effort is made to keep this manual up-to-date, we reserve the right to update the contents of this USER’S MANUAL without prior notice. Therefore, you should thoroughly read this USER’S MANUAL even if you have often purchased this product before. All official specifications in metric. English unit supplied for convenience. Using this product requires technical knowledge of hardware and software.

Conventions Used in This Manual

This icon denotes a warning, which advises you of precautions to take to avoid injury, data loss, or system crash.

This icon denotes a note, caution, or warning.

is a trademark of Interface Corporation (Japan). Other product and company names are trademarks, registered trademarks, or servicemarks of their respective owners.

© 2002, 2007 Interface Corporation All rights reserved. No part of this publication may be reproduced or altered in any form or by any means without the written permission of Interface Corporation.

Page 3: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Revision History

Version Date Comments 1.0 October 2002 English version of user’s manual PCI-6205C published. 1.1 March 2003 Format is revised. 1.2 September 2003 Manual revised:

4.1.1 Interface Product Pin Assignments A caution added. 4.4 External Latch Input Circuit (L) Input data added.

1.3 September 2007 Manual revised: Manual title changed from PCI-6205C to MPB-A6205C.

1.4 October 2007 Manual revised: Section 1.1 Packing List deleted. Section 1.2 Using This Manual deleted. Section 1.3 Optional Products Accessories added. Accessory models changed.

Due to constant product improvements, the information in this user’s manual is subject to change without prior notice.

-1- Interface Corporation

Page 4: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-Contents-

Interface Corporation -2-

Chapter 1 Introduction .............................................................................. 4 1.1 Notes for Users .....................................................................................................................4

1.1.1 Cautions, Periodic Inspections, and Storage..........................................................4 1.2 Summary...............................................................................................................................6

1.2.1 Features .................................................................................................................6 1.3 Optional Products..................................................................................................................7

1.3.1 Accessories ............................................................................................................7 Chapter 2 Installation................................................................................ 8

2.1 General .................................................................................................................................8 2.2 Board Installation ..................................................................................................................8 2.3 Driver Software Installation ...................................................................................................9

2.3.1 Windows XP ...........................................................................................................9 2.3.2 Windows 2000........................................................................................................9 2.3.3 Windows NT 4.0 ...................................................................................................10 2.3.4 Windows Millennium Edition.................................................................................10 2.3.5 Windows 98..........................................................................................................10 2.3.6 Windows 95..........................................................................................................11

2.4 Installation of Sample Programs and Other Driver Related Files..............................................11 2.5 Software Uninstallation .......................................................................................................11 2.6 Board Uninstallation ............................................................................................................11

Chapter 3 Hardware Configurations ....................................................... 12 3.1 Factory Default Settings......................................................................................................12 3.2 Interface PCI Board Identification (RSW1)..........................................................................13 3.3 Access LED (LED1) ............................................................................................................13 3.4 Signal Status LED...............................................................................................................13 3.5 Interrupt Sources.................................................................................................................14 3.6 Status Register....................................................................................................................15

Chapter 4 External Connections............................................................. 16 4.1 Signal Definitions ................................................................................................................16

4.1.1 Interface Product Pin Assignments ......................................................................16 4.1.2 Cable Connector ..................................................................................................18 4.1.3 Signals .................................................................................................................19

4.2 Counter Function.................................................................................................................20 4.2.1 Count Mode..........................................................................................................22 4.2.2 External Clear Condition/External Latch Condition...............................................24 4.2.3 Synchronous/Asynchronous Clear Mode .............................................................25

4.3 Pulse Input Circuit (A+/B+/Z+/A-/B-/Z-) ...............................................................................26 4.4 External Latch Input Circuit (L)............................................................................................27 4.5 Comparator Output (EQ).....................................................................................................28 4.6 General Purpose Digital Input (IR.IN1)................................................................................28 4.7 Test Output (TESTA+/TESTA-, TESTB+/TESTB-) .............................................................29 4.8 AC Characteristics ..............................................................................................................29

4.8.1 Input Signal ..........................................................................................................29 4.8.2 Response Time of the Comparator Output...........................................................30

Chapter 5 Specifications......................................................................... 31 5.1 Hardware Specifications .....................................................................................................31

Page 5: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-3- Interface Corporation

Chapter 6 Software................................................................................. 33 6.1 Summary.............................................................................................................................33 6.2 Operating Environment .......................................................................................................33 6.3 Program Composition .........................................................................................................33 6.4 API ......................................................................................................................................34 6.5 Encoder Pulse Counter Utility Program...............................................................................35

6.5.1 Required Items for the Utility Program .................................................................35 6.5.2 Starting the Utility Program...................................................................................35 6.5.3 Configuring Operation Parameters.......................................................................35

6.6 Diagnostic Program.............................................................................................................37 6.6.1 Required Items for the Diagnostic Program..........................................................37 6.6.2 Starting the Diagnostic Program...........................................................................37 6.6.3 Configuring Diagnostic Items................................................................................38 6.6.4 Checking Hardware Operations (Photo-Isolated Input with +5 Vdc) ....................39

Chapter 7 Troubleshooting ..................................................................... 40 7.1 Checkpoints ........................................................................................................................40

Chapter 8 Version Considerations .......................................................... 41 8.1 Hardware Version ...............................................................................................................41 8.2 Correspondence Table........................................................................................................41

Page 6: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Chapter 1 Introduction

1.1 Notes for Users For your safety, follow all warnings and instructions described in this manual.

1.1.1 Cautions, Periodic Inspections, and Storage Failure to follow these warnings may result in electric shock, burns, serious injury, and in some cases, even cause death.

Interface Corporation -4-

Keep this PCI board away from flammable gases.

Warning!!

Use this product only under the conditions as shown below. Environmental Specifications

Parameter Specification Temperature Range 0 °C to 50 °C Relative Humidity Range 20% to 90% (non-condensing) Dust Typical office environment Corrosive Gas None Voltage Requirements +5 Vdc (±5 %)

The following inspections should be carried out on this board periodically. Periodic Inspections

Item Checkpoint Cable Connections Be sure that all connectors and cables are installed correctly. Card Edge Check for dirt or corrosion. Connector Contacts Check for dirt or corrosion. Board Surfaces Surface should be free of dust and foreign matter.

Page 7: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

TO AVOID DAMAGE TO THE BOARD AND POSSIBLE INJURY, TAKE APPROPRIATE PRECAUTIONS AS DESCRIBED BELOW WHEN HANDLING IT.

Caution!

• Use this product only under the conditions specified in this manual. Failure to observe these precautions may lead to malfunctions, board failure, and/or injury.

• Make sure the system is disconnected from the main power source before installing or removing any boards and cables.

• Do not modify the board. Interface Corporation assumes no liability for any malfunctions resulting from users’ unauthorized modification of the board.

• To avoid possible injury or malfunction, do not touch the goldfingers or the soldered surfaces of the board.

• Take measures to avoid and minimize shock, vibration, magnetic fields, and static electricity in the storage or operating environment of this board.

• This board should be stored exactly the same way as when it was received. Proceed as follows: 1. Put the board back in its electro-conductive bag.

2. Wrap the board with the original packing material.

3. Avoid excessive humidity.

4. Do not expose the board to the direct rays of the sun.

5. Store the board at room temperature.

• This board has a detection circuit for insertion into and removal from a PCI slot. This circuit allows the board to protect itself from incorrect operation such as inserting it into or removing it from the PCI slot while the power is on. We call this feature Safety Bus.

• The Safety Bus doesn’t guarantee a successful Hot Swap.

-5- Interface Corporation

Page 8: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -6-

1.2 Summary The PCI-6205C is an encoder pulse counter board for PCI-based computers. It provides eight 24-bit counters. Six interrupt sources are available for trigger purpose: carry/borrow detection, comparator output, external interrupt signal, external latch, incorrect state transition error, and interval timer. This board can output a comparator output signal to external equipment. The input configuration is a photo-isolated RS-422 compliant differential input. The maximum input pulse rate is 2 MHz.

1.2.1 Features 1. Pulse count mode

The PCI-6205C supports three pulse count modes: gated single-phase pulse count, phase-shifted pulse count, and upward/downward pulse count modes.

2. Automatic counter clear

The PCI-6205C can adjust a position automatically to clear a counter to zero at assertion of phase Z signal. 3. External latch signal

The PCI-6205C can latch a counter by external signal (L signal).

4. External interrupt signal The PCI-6205C has an external interrupt signal (IR.IN1 signal). It can be used as an external interrupt and general purpose digital input.

5. Comparator interrupt and comparison status

The PCI-6205C can generate an interrupt when the counter value becomes equal to a comparator reference value. You can also confirm the comparator status by status registers. The comparator output signal is asserted while the counter value is equal to the comparator reference value.

6. Carry/borrow detection

The PCI-6205C can generate an interrupt when a carry or borrow occurs.

7. Incorrect state transition error The PCI-6205C can generate an interrupt when it detects an incorrect state transition error at the phase-shifted pulse count mode.

8. Built-in timer/counter

The PCI-6205C has a timer/counter circuit that can be used as an interval timer. A software selectable clock period of 10 μs, 100 μs, 1 ms, 10 ms, and 100 ms and a software programmable frequency divisor in the range of 1 through 15 are supported. You can use the output signal for periodic interrupt generation.

9. Photo-isolated input channels Internal circuits of the board are photo-isolated from the input block. This isolation prevents external noise from interfering with the internal circuits.

10. PCI 5 V/3.3 V signaling environment

The PCI-6205C is compliant with the PCI 5 V/3.3 V signaling environment.

Page 9: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-7- Interface Corporation

1.3 Optional Products

1.3.1 Accessories Refer to our Web site (www.interface.co.jp), for more details. Cable

Model Description ECO-6410 96-pin Half-Pitch on One End Cable (1.0 m) ECO-6420 96-pin Half-Pitch on One End Cable (2.0 m) ECO-6610 96-pin Half-Pitch Cable (1.0 m) ECO-6620 96-pin Half-Pitch Cable (2.0 m) ECO-6640 96-pin Half-Pitch Cable (4.0 m) ECO-6650 96-pin Half-Pitch Cable (5.0 m) ECO-6410Y 96-pin Half-Pitch Fusion Cable (1.0 m) ECO-6420Y 96-pin Half-Pitch Fusion Cable (2.0m) ECO-6450Y 96-pin Half-Pitch Fusion Cable (5.0 m)

Terminal Block

Model Description TNS-9600 96-pin M3 Screw Terminal Block with 96-pin Half-Pitch Male Connector TNS-9601 100-pin Screw Terminal Block with 96-pin Half-Pitch Male Connector TNS-9602 96-pin Screw-Clamp Terminal Block with 96-pin Half-Pitch Male Connector TNS-9603 50-pin MIL Connector x 2 Terminal Block with 96-pin Half-Pitch Male Connector TNS-9606 37-pin D-sub Female Connector x 4 Terminal Block with 96-pin Half-Pitch Male Connector

Connector Pack

Model Description COP-2700 A Pack of 96-pin Half-Pitch Connector COP-2701 A Ten-pack of 96-pin Half-Pitch Connector COP-2800 A Pack of 96-pin Half-Pitch Soldered Connector

Software

Model Description GPF-6204 Windows Driver Software for 3-Mode Pulse Counter Interface Module GPH-6204 Linux/RTLinux Driver Software for 3-Mode Pulse Counter Interface Module

Page 10: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Chapter 2 Installation

2.1 General You need to install the device driver from the CD-ROM before getting started with this board. Installation procedures differ depending on which operating system is being used. Sections 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, and 2.3.6 explain appropriate installation steps for Windows XP, Windows 2000, Windows NT 4.0, Windows Me, Windows 98, and Windows 95, respectively.

2.2 Board Installation 1. Set the PCI board identification switch and any other switches correctly according to your system.

Refer to “Chapter 3 Hardware Configurations,” page 12, for more details. 2. Make sure that the computer is turned off and the power cord is unplugged. Remove the PC case cover and a

slot cover. 3. Insert the board into an open PCI slot.

<Example>

Insert the board into an open slot in your computer.

Board

ComputerPCI connector

Make sure that the goldfingers areproperly inserted into the PCI connector.

4. Screw in the bracket. 5. Replace the cover, plug in the power cord, and turn on the computer.

Interface Corporation -8-

Page 11: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-9- Interface Corporation

2.3 Driver Software Installation

2.3.1 Windows XP The driver may only be installed by a member of the System Administrators group. 1. When you log on to Windows XP, the device driver wizard will start automatically. 2. The Found New Hardware Wizard dialog box will appear, click Install from a list or specific location

[Advanced], and then click Next. 3. Insert the CD into your CD-ROM drive. 4. Click Search for the best driver in these locations, and select Search removable media

[floppy, CD-ROM...]. Then click Next. 5. Installation will start automatically. 6. Follow further instructions on your screen. Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

2.3.2 Windows 2000 The driver may only be installed by a member of the System Administrators group. 1. When you log on to Windows 2000, the device driver wizard will start automatically. 2. In the Found New Hardware Wizard dialog box, click Next. 3. Click Search for a suitable driver for my device [recommended], and then click Next. 4. Select the Specify a location check box, and then click Next. 5. Insert the CD into your CD-ROM drive. 6. Click Browse and specify the \GPF6204\Win2000 folder on the CD, and then click OK. 7. To install the driver Windows found, click Next. 8. Follow further instructions on your screen. Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

Page 12: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -10-

2.3.3 Windows NT 4.0 The driver may only be installed by a member of the System Administrators group. 1. Log on to Windows NT 4.0. 2. Insert the CD into your CD-ROM drive. 3. Right-click the GPC6204.INF file in the \GPF6204\WinNT folder on the CD, and click Install on the

shortcut menu. 4. Follow further instructions on your screen. Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

2.3.4 Windows Millennium Edition 1. When you log on to Windows Millennium Edition, the device wizard will start automatically. 2. Insert the CD into your CD-ROM drive.

3. In the Add New Hardware Wizard dialog box, click Automatic search for a better driver

[Recommended], and then click Next. 4. Follow further instructions on your screen.

Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

2.3.5 Windows 98 1. When you log on to Windows 98, the device wizard will start automatically. 2. Insert the CD into your CD-ROM drive. 3. In the Add New Hardware Wizard dialog box, click Search for the best driver for your device

[Recommended], and then click Next. 4. Select the Specify a location check box, and then click Browse. 5. Specify the \GPF6204\Win95 folder on the CD, and then click Next. 6. Follow further instructions on your screen. Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

Page 13: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-11- Interface Corporation

2.3.6 Windows 95 1. When you log on to Windows 95, the device driver wizard will start automatically. 2. Insert the CD into your CD-ROM drive, and then click Next. 3. Click Other locations, and then click Browse. 4. Specify the \GPF6204\Win95 folder on the CD, and then click Finish. 5. When prompted to insert the CD, click OK. 6. In the Copy Files dialog box, click Browse. 7. Specify the \GPF6204\Win95 folder on the CD, and then click OK. 8. Follow further instructions on your screen. Make sure that there are no conflicts in setting up the computer resources, such as I/O addresses and interrupt request levels.

2.4 Installation of Sample Programs and Other Driver Related

Files 1. Insert the CD into your CD-ROM drive. 2. The installer will start automatically. If the installer doesn't start, run the SETUP.EXE file on the CD. Select GPF-6204 in the list, and then click Install. 3. Follow further instructions on your screen. 4. To verify you have successfully installed the software package, check that Interface GPF-6204 is registered

in the Programs folder.

2.5 Software Uninstallation 1. Click the Start button, point to Settings and then click Control Panel. 2. Double-click Add/Remove Programs, and then click the Install/Uninstall tab. 3. Click Interface GPF-6204 in the list, and then click Add/Remove. 4. Follow further instructions on your screen.

2.6 Board Uninstallation 1. Make sure that your computer is turned off, and the power cord is unplugged from the AC outlet.

Remove the PC case cover. 2. Remove the screw from the board. 3. Remove the board from the slot, rocking it gently back and forth, being careful not to flex it.

Page 14: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Chapter 3 Hardware Configurations

3.1 Factory Default Settings Component Side

CN1

LED1

RSW1

Back Side

CH1

CH2

CH3

CH4

CH5

CH6

CH7

CH8

A B A B

LED4 LED5

LED7

LED9

LED10

LED8

LED6

LED11 LED18 LED19

LED16 LED17

LED14 LED15

LED12 LED13

Item Description CN1 96-pin half-pitch male connector LED1 Access LED LED4 through LED19 Signal status LED RSW1 Board ID rotary switch

Interface Corporation -12-

Page 15: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

3.2 Interface PCI Board Identification (RSW1) RSW1

Rotary switch for Interface PCI board identification (Factory default setting)

The rotary switch on each Interface PCI board is used to uniquely identify each board, in case multiple Interface PCI boards of the same type are installed in the same system. Remember to set this switch on each board so as not to conflict with any other of the same type.

3.3 Access LED (LED1) The LED1 glows green to indicate I/O accesses are being generated by this board. A single access lights LED1 for 500 ms and when continual access ceases, it turns off 500 ms later.

3.4 Signal Status LED Each signal status LED glows green or red to indicate signal level.

Item Channel Phase At Low Level Description LED4 A Green LED5

1 B Red

LED6 A Green LED7 2 B Red LED8 A Green LED9 3 B Red LED10 A Green LED11 4 B Red LED12 A Green LED13 5 B Red LED14 A Green LED15

6 B Red

LED16 A Green LED17

7 B Red

LED18 A Green LED19

8 B Red

Signal status LED

-13- Interface Corporation

Page 16: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -14-

3.5 Interrupt Sources This board can generate interrupts to the computer with the following sources:

• Carry/borrow detection • Comparator output • External interrupt signal • External latch • Incorrect state transition error • Interval timer

Using the interrupt status register, you can determine which interrupts occurred. Each interrupt can be individually masked or unmasked. 1. Carry/borrow detection

An interrupt occurs when a carry or borrow occurs. 2. Comparator output

An interrupt occurs when a counter value becomes equal to a comparator reference value. 3. External interrupt signal

A general purpose digital input signal (IR.IN1) is used as an external interrupt input signal. An interrupt occurs by the falling edge or rising edge of an input signal.

4. External latch

An interrupt occurs when the PCI-6205C transfers a counter value to the latch register. 5. Incorrect state transition error

An interrupt occurs when detecting an incorrect state transition error at the phase-shifted pulse count mode. 6. Interval timer

The interval timer can be used to generate an interrupt to the host computer every timer cycle period. The timer cycle period is given by the following equation:

T = RATE × CLK. T: Timer cycle period RATE: integer 1 through 15 CLK: 10 µs, 100 µs, 1 ms, 10 ms, 100 ms

This timer begins counting immediately after both RATE and CLK are programmed, and it will keep counting until a stop instruction is issued. It is recommended that you use an interrupt timer interval greater than or equal to 10 ms. Windows XP, Windows 2000, Windows NT 4.0, Windows Me, Windows 98, and Windows 95 cannot handle a large number of interrupts within a short time period. In such a case, Windows may hang up or freeze.

Page 17: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

3.6 Status Register The PCI-6205C has 6 status flags per channel. These flags allow you to identify counter status or operation. These flags are cleared after reading. 1. Count direction

This status flag reports the count direction, upward or downward, of the counter.

2. Comparator output This status flag notifies a counter value and a comparator reference value become equal.

3. Equal detection

This status flag is set to 1 while a counter value is equal to the comparator reference value. 4. External latch

This status flag reports if the external latch occurred.

5. Carry/borrow detection This status flag reports that a carry or borrow occurs.

6. Incorrect state transition error

This status flag can detect an incorrect state transition error at the phase-shifted pulse count mode.

A

B

Example of incorrect state transition error

AB: 00

AB: 10 AB: 11

AB: 01

: Normal transition

: Error transition

-15- Interface Corporation

Page 18: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Chapter 4 External Connections Keep these important points in mind when connecting the board with external equipment. FAILURE TO OBSERVE THESE IMPORTANT SAFETY PRECAUTIONS MIGHT RESULT IN EXCESSIVE VOLTAGE IN THE PCI BOARD CIRCUITS, CAUSING AN ELECTRICAL FIRE, WITH POSSIBLE OPEN FLAME AND SMOKE.

• To achieve precise data acquisition, we recommend you to use shielded cables such as the ECO-6601 cable (our optional product), the length are as short as possible to eliminate interference caused by noise. Moreover, move the noise sources away as far as possible.

• The input resistors on this board may become very hot while the board is running depending on the use conditions.

• The signaling mode of each phase A, phase B, and phase Z signal is compliant with RS-422. The maximum input voltage rating is +5 Vdc.

• Each external latch signal is photo-isolated. The input voltage rating is +5 Vdc. If you need to use a power supply with higher voltage, you should regurate the input voltage to the signal to satisfy the input rating.

• Double-check that polarities are correct before connecting external power supplies.

• A comparator output signal EQ is the open-collector output. The maximum output current is +40 mA. The maximum output voltage is +30 Vdc.

• Keep the signal cable away from other equipment as far as possible to avoid electromagnetic interference.

4.1 Signal Definitions

4.1.1 Interface Product Pin Assignments

CN1

LED1 148

96 49

Connector catalog number:PCR-E96LMDC(Honda Tsushin Kogyo Co., Ltd.)

Interface Corporation -16-

Page 19: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748

NC: Not connected

-COM-COM

1A+1A-1B+1B-1Z+1Z-1L

1EQ2A+2A-2B+2B-2Z+2Z-2L

2EQ+COM1+COM2

-COMNC

TESTA+TESTA-

NCNCNCNC

-COM-COM

3A+3A-3B+3B-3Z+3Z-3L

3EQ4A+4A-4B+4B-4Z+4Z-4L

4EQ+COM3+COM4

-COM-COM5A+5A-5B+5B-5Z+5Z-5L5EQ6A+6A-6B+6B-6Z+6Z-6L6EQ+COM5+COM6-COMNCTESTB+TESTB-NCNC+RCOMIR.IN1-COM-COM7A+7A-7B+7B-7Z+7Z-7L7EQ8A+8A-8B+8B-8Z+8Z-8L8EQ+COM7+COM8

[96]*

[49]*

[48]*

[1]*

Note: The numbers shown in brackets are the embossed numbers of Honda Tsushin Kogyo Co,. Ltd. Please keep in mind they are different from our pin numbering system.

-17- Interface Corporation

Page 20: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.1.2 Cable Connector

Connector catalog number:PCR-E96FA(Honda Tsushin Kogyo Co., Ltd.)

Cover catalog number:PCS-E96LKPA(Honda Tsushin Kogyo Co., Ltd.)

The numbers embossed on the cable connector enclosed in squares may be different from our pin numbering system. Do not follow these embossed numbers when wiring.

Note: Please consult our Sales Information Center or Technical Support Center before using cables not supplied

by Interface Corporation.

Interface Corporation -18-

Page 21: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-19- Interface Corporation

4.1.3 Signals Input Signals

Channel Input Configuration Non-Inverted Inverted Description Reference

1A+ 1A- Phase A 1B+ 1B- Phase B

Photo-isolated differential

1Z+ 1Z- Phase Z

-COM

1

Photo-isolated 1L Latch signal +COM1 2A+ 2A- Phase A 2B+ 2B- Phase B

Photo-isolated differential

2Z+ 2Z- Phase Z

-COM

2

Photo-isolated 2L Latch signal +COM2 3A+ 3A- Phase A 3B+ 3B- Phase B

Photo-isolated differential

3Z+ 3Z- Phase Z

-COM

3

Photo-isolated 3L Latch signal +COM3 4A+ 4A- Phase A 4B+ 4B- Phase B

Photo-isolated differential

4Z+ 4Z- Phase Z

-COM

4

Photo-isolated 4L Latch signal +COM4 5A+ 5A- Phase A 5B+ 5B- Phase B

Photo-isolated differential

5Z+ 5Z- Phase Z

-COM

5

Photo-isolated 5L Latch signal +COM5 6A+ 6A- Phase A 6B+ 6B- Phase B

Photo-isolated differential

6Z+ 6Z- Phase Z

-COM

6

Photo-isolated 6L Latch signal +COM6 7A+ 7A- Phase A 7B+ 7B- Phase B

Photo-isolated differential

7Z+ 7Z- Phase Z

-COM

7

Photo-isolated 7L Latch signal +COM7 8A+ 8A- Phase A 8B+ 8B- Phase B

Photo-isolated differential

8Z+ 8Z- Phase Z

-COM

8

Photo-isolated 8L Latch signal +COM8

⎯ Photo-isolated IR.IN1 ⎯ General purpose digital input/external interrupt input

+RCOM

Output Signals

Channel Signal Description 1 1EQ Comparator output 2 2EQ Comparator output 3 3EQ Comparator output 4 4EQ Comparator output 5 5EQ Comparator output 6 6EQ Comparator output 7 7EQ Comparator output 8 8EQ Comparator output ⎯ TESTA+, TESTA- Test output for phase A ⎯ TESTB+, TESTB- Test output for phase B

Page 22: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.2 Counter Function The following diagram illustrates a pulse counter function of the PCI-6205C.

D23 through D0

Interrupt

Clear command

Latch command

C/BA

B

EQ

CLR

UP

DOWN

CLR

LTLT

PERR

ZL

EQ

Latch register(24 bits)

Comparator(24 bits)

Reference register(24 bits)

Count

mode

Clear/latch

condition

Interruptcontrol

Counter(24 bits)

• Pulse count mode

You can select a count mode from the three count modes listed below. 1. Phase-shifted pulse count mode

In this mode, the counter counts two phase-shifted pulse signals. The counter value increases or decreases according to phase difference.

2. Upward/downward pulse count mode In this mode, when phase B is high-level, the counter value increases at each rising edge of phase A. When phase A is high-level, it decreases at each rising edge of phase B.

3. Gated single-phase pulse count mode In this mode, phase B as a gate signal enables the counter operation. While the gate signal is high-level, the counter counts phase A. You can select a counter direction, up or down, by the command.

Interface Corporation -20-

Page 23: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-21- Interface Corporation

• Pulse counter

The PCI-6205C provides eight counter channels. The counter length is 24 bits. The count timing and direction depend on the pulse count mode and input pulses. You can load an arbitrary value into the counter. When you access to the counter, you must access the counter from the least significant byte. You can enable or disable the counter.

• External latch

The latch register stores data from the counter. A software latch command or an external latch signal transfers the data from the counter to the latch register.

• Counter clear

A software clear command or external clear signal clears both the counter and the latch register. Asynchronous and synchronous clear modes are supported.

• Comparator

The PCI-6205C has a 24-bit comparator per channel. This board can assert the equal signal while a counter value is equal to a comparator reference value. This board can generate an interrupt when it detects comparison match. You can use a status flag to determine the comparison result.

• Counter status The PCI-6205C provides six status flags that report the counter status: carry/borrow detection, comparator output, count direction, equal detection, external latch, and incorrect state transition error.

• Interrupt sources Each channel has six interrupt sources: carry/borrow detection, comparator output, external interrupt signal, external latch, incorrect state transition error, and interval timer.

Page 24: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB A6205C Ver. 1.4 -

4.2.1 Count Mode Phase A, phase B, and phase Z are the photo-isolated differential input. The following diagrams show the count operations.

Forward Direction 1. Phase-shifted pulse count mode ( : counted, -: not counted)

- - -

- -

← Single-edge evaluation →

← Double-edge evaluation →

← Quad-edge evaluation →

Up count

A+

B+

A-

B-

---

--

Down count

A+

B+

A-

B-

2. Upward/downward pulse count mode

+1 +1 -1 -1

Do not set both phase A+ and B+ to low-level, and both phase A- and B- to high-level.

A+

B+

A-

B-

3. Gated single-phase pulse count mode ( : counted, -: not counted)

- ← Single-edge evaluation

← Double-edge evaluation

- - - - -

- - - -

Up count

A+

B+

A-

B-

Interface Corporation -22-

Page 25: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Reverse Direction 1. Phase-shifted pulse count mode ( : counted, -: not counted)

- - -

- -

← Single-edge evaluation →

← Double-edge evaluation →

← Quad-edge evaluation →

Down count

A+

B+

A-

B-

---

--

Up count

A+

B+

A-

B-

2. Upward/downward pulse count mode

-1 -1 +1 +1

Do not set both phase A+ and B+ to low-level, and both phase A- and B- to high-level.

A+

B+

A-

B-

3. Gated single-phase pulse count mode ( : counted, -: not counted)

- ← Single-edge evaluation

← Double-edge evaluation

- - - - -

- - - -

Down count

A+

B+

A-

B-

-23- Interface Corporation

Page 26: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -24-

4.2.2 External Clear Condition/External Latch Condition The PCI-6205C can clear or latch a counter value by external signals. The following settings are available.

• External clear condition

1. No operation 2. Clear when the phase Z signal changes to its asserted level. 3. Clear when the latch signal and phase Z signal change to their respective asserted level.

• External latch condition

1. No operation 2. Latch when the L signal changes to its asserted level. 3. Latch when the L signal and phase Z signal change to their respective asserted level.

Notes:

• A logic level of the phase Z signal is positive logic at the default. The logic level is programmable. • A logic level of the L signal is negative logic at the default. The logic level is programmable.

When the clear operation conflicts with the latch operation, the latch operation is taken priority. After that, the counter is cleared.

Page 27: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.2.3 Synchronous/Asynchronous Clear Mode The following table shows clear modes of each counter mode.

Clear Mode Count Mode Asynchronous Clear Synchronous Clear

Phase-Shifted Pulse Count Mode Supported Supported Upward/Downward Pulse Count Mode Supported ⎯ Gated Single-Phase Pulse Count Mode Supported ⎯

• Asynchronous clear

The counter is cleared whenever the external clear condition is satisfied. • Synchronous clear (only applicable to the phase-shifted pulse count mode)

The counter is cleared synchronizing with the transition of the phase A signal when the external clear condition is satisfied while the phase B signal is deasserted.

Note: Refer to “4.2.2 External Clear Condition/External Latch Condition,” page 24, about the setting. 1. Asynchronous clear mode

• External clear condition: Clear when the phase Z signal changes to its asserted level.

• Logic level: The phase Z signal is positive logic.

2. Asynchronous clear mode • External clear condition:

Clear when the latch signal and phase Z signal change to their respective asserted level.

• Logic level: The phase Z signal is positive logic. The L signal is negative logic.

A+

B+

Z+

Clear timing

A-

B-

Z-

Clear timing

A+

B+

Z+

L

A-

B-

Z-

3. Synchronous clear mode • External clear condition:

Clear when the phase A signal changes. • Logic level:

The phase Z signal is positive logic.

4. Synchronous clear mode • External clear condition:

Clear when the phase A signal changes while the latch signal and phase Z signal are in their respective asserted level.

• Logic level: The phase Z signal is positive logic. The L signal is negative logic.

A+

B+

Z+

Clear timing

A-

B-

Z-

Clear timing

A+

B+

Z+

L

A-

B-

Z-

-25- Interface Corporation

Page 28: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.3 Pulse Input Circuit (A+/B+/Z+/A-/B-/Z-) The phase A, phase B, and phase Z signal are photo-isolated differential input signal. The circuits of them are the same.

Internal circuit External circuit<CN1>

1, 2

+5 Vdc

1A+

1A-

-COM

R1

k ΩR

220

ΩR

1 k Ω

DS26C32

Reciever

3

4

EMI filterA+A-

GND

Vcc

Encoder

+5 Vdc

1B+

1B-5

6

B+

B-

1Z+

1Z-7

8

Z+

Z-

Photo-isolator

Pulse Input Signal External Circuit Low x+: low, x-: high High x+: high, x-: low

Note: x = A, B, or Z

Interface Corporation -26-

Page 29: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.4 External Latch Input Circuit (L) The L signal is photo-isolated input signal (+5 Vdc). The circuits of all channels are the same.

Internal circuit External circuit<CN1>

19HCPL-0631

9

1 k Ω R +COM1

1L

R330 Ω47

0 pF

R

1.5

k Ω

20

R330 Ω

HCPL-0631

17

1 k Ω R +COM2

2L470

pF

R

1.5

k Ω V2

CircuitExternal power supply:+5 Vdc

V1External power supply

RLV3 Circuit

External Latch Signal Input Data External Circuit

Low 1 Low (transistor output: on) High 0 High (transistor output: off)

The nominal input voltage is +5 Vdc. If you want use a power supply of voltage greater than +5 Vdc, you should follow the requirements below.

7 × 10-3 ≤V1 - V2 - V3

330 + RL

.≤ 15 × 10-3

Where,

V1: Supply voltage (V) V2: 1.5 (V) of a forward bias voltage of an LED in the photo-coupler V3: Low-level output voltage (V) of the external circuit RL: External current limiting resistance (Ω)

-27- Interface Corporation

Page 30: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.5 Comparator Output (EQ) The PCI-6205C has a comparator output per channel. The output configuration is a TTL open-collector output. To drive the circuit correctly, external pull-up voltage is required.

R

Internal circuit External circuit<CN1>

10

1, 2

1EQ

-COM

EMI filter

74LS07

Comparator Output Output 1 (Equivalence detected) Low 0 (Equivalence not detected) High

4.6 General Purpose Digital Input (IR.IN1) The PCI-6205C has a general purpose digital input channel. It can generate an interrupt triggered by each rising edge and falling edge. The signal configuration is the photo-isolated input. The nominal input voltage is +5 Vdc. If you want use a power supply of voltage greater than +5 Vdc, you should follow the requirements the same as L signal.

Internal circuit External circuit<CN1>

75HCPL-06311

kΩ R +RCOM

IR.IN1

R330 Ω47

0 pF

1.5

k Ω

76

External power supply:+5 Vdc

S

R

Interrupt IR.IN1 Asserted Falling edge, rising edge Not asserted Other status

IR.IN1

Interrupt occurs at eachrising edge or falling edge.

Interface Corporation -28-

Page 31: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.7 Test Output (TESTA+/TESTA-, TESTB+/TESTB-) The PCI-6205C provides two differential output channels for easy diagnosis. The output frequency is four times of an interval timer period. A phase difference between two channels is 90 °. Refer to “ 6.5 Encoder Pulse Counter Utility Program,” page 35.

Interval timer period

Internal circuit <CN1>

71

TESTA+

DS26C32

Driver

23

24TESTA-

TESTB+

TESTB-

EMI filterTESTA+

TESTB+

TESTA-

TESTB-DS26C32

72

4.8 AC Characteristics

4.8.1 Input Signal A, B, Z

T1

2.0 V

0.8 VT1

T2

+

-

+

-

L

5.0 V

T1

10%

T1

90%

AC Characteristics

Symbol Parameter Min. Unit T1 Signal width 200 ns T2 Phase-shift period 100 ns

-29- Interface Corporation

Page 32: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

4.8.2 Response Time of the Comparator Output Phase-shifted pulse count mode and single-edge evaluation

2.0 V

T3

A+

B+

EQ

T30.8 V

A-

B-

The following figure shows the test circuit for the output response time.

+5 Vdc

240 ΩEQ

-COM

R

AC Characteristic Symbol Parameter Typ. Max. Unit T3 Response time of the comparator output 350 450 ns

Interface Corporation -30-

Page 33: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-31- Interface Corporation

Chapter 5 Specifications

5.1 Hardware Specifications Counter Section

Parameter Specification Number of channels 8 Encoder interface Incremental rotary encoder External input signal IR.IN1: external interrupt input signal (1 channel) Pulse count mode Phase-shifted pulse count mode (phase A, phase B, and phase Z)

Gated single-phase pulse count mode Upward/downward pulse count mode (CW/CCW)

Edge evaluation Single-edge evaluation Double-edge evaluation Quad-edge evaluation

Counter length 24 bits Input frequency 2 MHz (max.) Pulse signal input configuration

Photo-isolated differential input*1

External latch signal input configuration

Photo-isolated input*2

General purpose digital input signal configuration

Photo-isolated input*2

Test output configuration Photo-isolated differential output *3 Comparator output signal configuration

TTL open-collector output *4

Basic Specifications

Parameter Specification Interrupt sources • carry/borrow detection

• comparator output • external interrupt signal • external latch • incorrect state transition error • interval timer One IRQ required (automatically assigned by the Plug and Play system)

Wiring requirements Approximately 10 m or less (depending on the wiring environment) Number of slots required 1 PCI slot Number of I/O ports 32 ports × 4 + 16 ports Power consumption +5 Vdc: 1.4 A (typ.) Bus requirements PCI local bus (Rev. 2.1 or later), 32 bits, 33 MHz

PCI 5 V/3.3 V signaling environment Board dimensions 106.68 × 174.63 (mm) Environment condition Operating temperature: 0 °C to 50 °C

Relative humidity: 20% to 90% (non-condensing) On-board connector CN1: PCR-E96LMDC (Honda Tsushin Kogyo Co., Ltd.) or equivalent Acceptable cable connector CN1: PCR-E96FA (connector) plus PCS-E96LKPA (cover)

(Honda Tsushin Kogyo Co., Ltd.) or equivalent

Page 34: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -32-

*1 Photo-Isolated Differential Input

Parameter Specification Signal xA+, xA-, xB+, xB-, xZ+, xZ- (x = 1 through 8) Input configuration Differential input Communication standard RS-422 standard Maximum voltage rating +5 Vdc Differential input threshold voltage

0.8 Vdc (min.), 2.0 Vdc (max.)

Input impedance Terminator: 220 Ω Non-inverted signal: 1 kΩ pull-up resistor Inverted signal: 1 kΩ pull-down resistor

*2 Photo-Isolated Input

Parameter Specification Signal xL (x = 1 through 8), IR.IN1 Input configuration Photo-isolated input Maximum voltage rating +5 Vdc (+5%) Supply voltage to power supply pin

+5 Vdc

Input voltage range 0 Vdc to the supply voltage Input impedance Current limiting resistor: 330 Ω

(Reverse bias protection diode and leakage current reduction shunt resistor: 1.5 kΩ)

Low-level input current IIL = -11 mA (typ.) (+5 Vdc) Threshold current (shut-off guaranteed)

-0.5 mA (max.)

Threshold current -0.5 mA to -7 mA *3 Photo-Isolated Differential Output

Parameter Specification Signal TESTA+, TESTA-, TESTB+, TESTB-

+5 Vdc (max.) (IO = 0) Differential driver output voltage +2 Vdc (min.) (R = 100 Ω)

*4 TTL Open-Collector Output

Parameter Specification Signal xEQ (x = 1 through 8) Output configurations • TTL open-collector output

• Sink type Maximum voltage rating +24 Vdc (+10%) Applied voltage range +5 Vdc to +24 Vdc Output voltage range 0 Vdc to the applied voltage Maximum output current IOL = +40 mA Leakage current IOH = +250 μA (max.) Low-level output voltage VOL = 0.4 V (max.) (IOL = +12 mA)

Page 35: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-33- Interface Corporation

Chapter 6 Software

6.1 Summary The GPF-6204 software controls Interface encoder pulse counter boards from your application running on Windows XP, Windows 2000, Windows NT 4.0, Windows Me, Windows 98, or Windows 95. You must install the driver software according to your operating system. Refer to “Chapter 2 Installation,” page 8, and the README.HTM file. To access items contained in the folder, click the Start button, point to Programs, point to Interface GPF-6204, and then click the item that you want to access. Refer to the README.HTM file and Help about the use of this software. Note: Under Windows XP, Windows 2000, or Windows NT 4.0, the driver may only be installed by a member of

the System Administrators group.

6.2 Operating Environment Supported Operating Systems Supported Languages

Windows XP Home Edition Windows XP Professional Windows 2000 Windows NT 4.0 Windows Millennium Edition Windows 98 Windows 95

Microsoft Visual C++ Ver. 4.2, 5.0, 6.0 Microsoft Visual Basic Ver. 4.0 (32-bit version), 5.0, 6.0 Borland C++ Ver. 5.0 Borland C++Builder Ver. 1.0, 3.0, 4.0, 5.0, 6.0 Borland Delphi Ver. 3.0, 3.1, 4.0, 5.0, 6.0

6.3 Program Composition Read Help before using the sample programs. Executable files of the sample programs are not included with this product. Please make your executable files before you use the sample programs.

Item File Name Description CP6204.SYS Device driver for Windows XP and Windows 2000 CP6204.SYS Device driver for Windows NT 4.0

Device drivers

CP6204.VxD Device driver for Windows Me, Windows 98, and Windows 95 FbiDevio.DLL Dynamic link library DLL FbiPenc.DLL Dynamic link library

Sample program EncCount Sample program to display the counter value EncCounter.EXE Encoder pulse counter utility program Utilities

DiagPenc.EXE Encoder pulse counter diagnostic program

Page 36: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -34-

6.4 API Please refer to Help for details.

No. Function Description 1 PencOpen Opens an encoder-pulse counter board and enables to access to the

board. 2 PencClose Closes the encoder-pulse counter board and releases the resources. Any

subsequent accesses to the board are forbidden. 3 PencSetMode Configures operation modes, count directions, comparator mode, and

latch conditions. 4 PencGetMode Retrieves mode parameters. 5 PencSetCounter Loads a preset value into a single counter. 6 PencGetCounter Retrieves a counter value from the board. 7 PencSetCounterEx Loads preset values into multiple channels simultaneously. 8 PencGetCounterEx Retrieves counter values from multiple channels simultaneously. 9 PencSetComparator Loads a comparator reference value. 10 PencGetComparator Retrieves a comparator reference value. 11 PencSetZMode Configures the polarity of phase Z, counter clear, and counter latch

conditions. 12 PencGetZMode Retrieves the polarity of phase Z, counter clear, and counter latch

conditions. 13 PencEnableCount Enables or disables counters of multiple channels. 14 PencSetEventMask Masks interrupt events. 15 PencGetEventMask Retrieves interrupt event mask settings. 16 PencSetEvent*1 Registers a callback routine. 17 PencSetEventEx*2 Registers a callback routine. 18 PencKillEvent Deletes a registered callback routine. 19 PencEventRequestPending Monitors for an interrupt event. 20 PencSetTimerConfig Configures the interval timer. 21 PencGetTimerConfig Retrieves the configuration settings of the interval timer. 22 PencGetTimerCount Retrieves the counter value of the interval timer. 23 PencGetStatus Retrieves the counter status. 24 PencGetStatusEx Retrieves the counter status and the counter value of multiple channels

on the board. 25 PencReset Resets the counter of the specified channel.

Notes: • *1 This function is applicable to the PCI-6204 and CTP-6204. • *2 This function is applicable to the PCI-6205C and CTP-6205.

Page 37: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

6.5 Encoder Pulse Counter Utility Program This program allows you to check each function of your encoder-pulse counter boards. You can configure the count mode, latch setting, clear setting, count direction, and comparator output of each channel.

6.5.1 Required Items for the Utility Program • PCI-6205C board • Cable such as the ECO-66xx to connect the PCI-6205C and external equipment • External signal source • Encoder pulse counter utility program

6.5.2 Starting the Utility Program 1. Click the Start button, point to Programs, point to Interface GPF-6204, and then click Counter Utility

Program. 2. The Interface Encoder Pulse Counter Board Utility Program main window will appear. 3. Click Open on the File menu. 4. The Open New Board dialog box will appear. The list of available counter boards will be displayed on the

screen. Select the board that you want to configure operation parameters. Then, click OK. The following table shows available menu items and commands.

Parameter Command Description Open Selects the device. Close Closes the device.

File

Exit Closes the program. Help Version Information Displays the version information.

6.5.3 Configuring Operation Parameters 1. Click Configuration in the main window. 2. The Channel Configuration dialog box will appear.

-35- Interface Corporation

Page 38: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4 3. Configure the channel settings. The following table shows the operation parameters. Please remember some

parameters may not be able to configure depending on the mode. Parameter Description

Count Mode Select the count mode. External Latch Select the setting of external latch condition. External Clear Select the setting of external clear condition. Count Direction Select the count direction. Comparator If you want to enable the comparator output, select the check box. Then enter the

comparator reference value. Phase Z active low If you want to set the logic level of phase Z to active low, check the Phase Z

active low check box. 4. Click OK after the settings are completed. 5. Count starts according to the settings specified in step 2, and the conter value will be displayed in the main

window about every 100 ms.

6. To terminate this program, click Close on the File menu, and then click Exit on the File menu.

Interface Corporation -36-

Page 39: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

6.6 Diagnostic Program This program can determine if a malfunction is located in the software or in the hardware. If the problem is located in the software, this program can diagnose the problem in detail.

6.6.1 Required Items for the Diagnostic Program • PCI-6205C board • Terminal block (TNS-9601) • Cable such as ECO-66xx to connect the PCI-6205C and terminal block • Coated wire to connect contacts on the terminal block • External power supply (+5 Vdc) • Diagnostic program

6.6.2 Starting the Diagnostic Program 1. Click the Start button, point to Programs, point to Interface GPF-6204, and then click

Diagnostic Program. 2. The Interface Encoder Pulse Counter Board Diagnostic Program main window will appear.

3. Click Open on the Device menu. 4. The Open New Device dialog box will appear. The list of available counter boards will be displayed on the

screen. Select the device that you want to diagnose. Then, click OK.

-37- Interface Corporation

Page 40: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4 5. The board type, I/O addresses, and IRQ will be displayed on the main window. This program can open only

one device at a time. The following table shows available menu items and commands. Parameter Command Description

File Save Saves the diagnosis results. Open Selects the device to diagnose. Device Close Closes the device. Configuration Selects the channel, the input configuration, and

diagnostic items. Diagnose

Start Diagnosis Starts diagnosis. Help Version Information Displays the version information. Exit ⎯ Closes the program.

6.6.3 Configuring Diagnostic Items 1. Click Configuration on the Diagnose menu. 2. The Diagnostic Parameters dialog box will appear.

3. Select a channel, an input configuration, and diagnostic items, and then click OK.

Interface Corporation -38-

Page 41: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

6.6.4 Checking Hardware Operations (Photo-Isolated Input with +5 Vdc)

• Ensure that the setting value of external power supply output voltage is 0 Vdc before turning on the external

power supply.

• Do not apply voltage greater than or equal to +5 Vdc.

1. Click Configuration on the Diagnose menu. 2. Select diagnostic items, and then click OK. 3. Connect the PCI-6205C and TNS-9601 with the ECO-66xx. 4. Follow the instructions on the screen.

5. To start diagnosis, click Start Diagnosis on the Diagnose menu. 6. The results of diagnosis will be displayed in the Result of Diagnosis box in the main window. Note: If the problem continues to persist even after you check that all cables are correctly connected, and then

click Save on the File menu. Please send the diagnositc result to the Technical Support Center by fax or e-mail.

Connections for testing channel 1 Connect 1A+ (pin 3 on the TNS-9601) to TESTA+ (pin 23 on the TNS-9601). Connect 1A- (pin 4 on the TNS-9601) to TESTA- (pin 24 on the TNS-9601). Connect 1B+ (pin 5 on the TNS-9601) to TESTB+ (pin 71 on the TNS-9601). Connect 1B- (pin 6 on the TNS-9601) to TESTB- (pin 72 on the TNS-9601).

ECO-66xx

PCI-6205C

TNS-9601

1 10 20 30 40 4815 25 35 45

9649 50 60 70 80 9055 65 75 85 95

5

-39- Interface Corporation

Page 42: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Interface Corporation -40-

Chapter 7 Troubleshooting

7.1 Checkpoints

Cause Solution Double-check all cable connections. The device driver checks the RSW1 value of each board for identification purposes. If the RSW1 value of one board conflicts with that on another identical board in the same system, then the device driver may not work. When two or more identical boards are installed in a single system, each RSW1 must be set to a unique value. See “3.2 Interface PCI Board Identification (RSW1),” page 13.

The data can not be transferred correctly.

If the power requirements exceed the system power budget, the circuits on the board or connected external circuits cannot be powered properly. Prepare an external power supply for your PCI board. Set up the board interrupt configuration such as edge selection or sources to be consistent with your application and external circuits.

Interrupts do not occur.

If the interrupt configuration is correct, but the interrupt is masked, the interrupt will not occur. Unmask the interrupt that you want to use.

The computer does not recognize this board.

Use the PCI device viewer (BPF-0801) to examine PCI boards on your computer after downloading it from our Web site. Please send the result to our Technical Support Center by fax or e-mail.

Note: You can easily detect the causes of the malfunctions by using the diagnostic program.

Page 43: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

Chapter 8 Version Considerations

8.1 Hardware Version The location of the hardware version number depends on the form factor of the board as shown in the following figure.

Back side ofthe board

Component side ofthe board

P/xxx/x-xxx [

Hardware version

-41- Interface Corporation

O]

P/xx

x/x-

xxx

] Hardwareversion

• 106.68 × 174.63 (mm)• 106.68 × 119.91 (mm)

[O

8.2 Correspondence Table The version of the user’s manual and the version of the hardware correspond as follows.

Manual Version Hardware Version Ver. 1.0 13, 14 Ver. 1.1 14 Ver. 1.2 15 Ver. 1.3 15 Ver. 1.4 15

Page 44: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

MPB-A6205C Ver. 1.4

-Index-

Interface Corporation -42-

A AC characteristics ............................................... 29 Access LED

LED1................................................... 12, 13, 16

B Board ID rotary switch

RSW1.............................................................. 12 Board installation ...................................................8 Board uninstallation............................................ 11

C Clear mode

Asynchronous clear ........................................ 25 Synchronous clear .......................................... 25

Comparator reference value ............... 6, 14, 15, 21 Connector

CN1........................................................... 12, 16 Counter function

Comparator ..................................................... 21 Counter status ................................................. 21 External clear .................................................. 21 External latch .................................................. 21 Interrupt sources ............................................. 21 Pulse count...................................................... 21

D Device driver..........................................................8 Diagnostic program............................................. 37

E ECO-66xx...................................................... 35, 37 Environmental specifications ................................4

G General purpose digital input ....................... 14, 28 GPF-6204............................................................ 33

I Interrupt source

Carry/borrow................................................... 14 Carry/borrow detection......................................6 Comparator output...................................... 6, 14 External interrupt signal ................................. 14 External latch .................................................. 14 Incorrect state transition error .................... 6, 14 Interval timer............................................... 6, 14

L Latch ..............................................1, 24, 25, 27, 36

O Optional products.................................................. 7

P PCI device viewer ............................................... 40 Periodic inspections .............................................. 4 Phase A....................................................19, 20, 26 Phase B ....................................................19, 20, 26 Phase Z ........................................19, 24, 25, 26, 36 Photo-isolated differential input ......................... 32 Photo-isolated differential output ....................... 32 Photo-isolated input ............................................ 32 Pulse count mode

Gated single-phase pulse count mode20, 22, 23 Phase-shifted pulse count mode.........20, 22, 23 Upward/Downward pulse count mode20, 22, 23

S Signal status LED

LED4 through LED19..............................12, 13 Specifications

Basic specifications......................................... 31 Counter section ............................................... 31

Status register Carry/borrow................................................... 15 Comparator output.......................................... 15 Count direction................................................ 15 Equal detection................................................ 15 External latch .................................................. 15 Incorrect state transition error......................... 15

Supported languages ........................................... 33 Supported operating systems.............................. 33

T Test output.....................................................19, 29 TNS-9601............................................................ 37 TTL open-collector output.................................. 32

V Version

Hardware......................................................... 41 Manual............................................................. 41

Page 45: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

Indemnification Interface Corporation makes no warranties regarding damages resulting from installation or use of this product, whether hardware or software, and the user assumes all risk. Interface Corporation shall not be liable for any incidental or consequential damages, including damages or other costs resulting from defects which might be contained in the product, product supply delay or product failure, even if advised of the possibility thereof. Customer’s right to recover damages caused by fault or negligence on the part of Interface Corporation shall be limited to product improvement or exchange. Interface Corporation does not assume the responsibility for compensation. This product including its software may be used only in Japan. Interface Corporation cannot be responsible for the use of this product outside Japan. Interface Corporation does not provide technical support service outside Japan. Interface Corporation provides only the exchange maintenance service outside Japan. The technical support shall be limited to e-mail only.

Warranty

Interface Corporation products are warranted for a period of two years from the date of shipment, as evidenced by receipts or other documentation. This warranty does not apply to the software products, accessories, and expendable supplies such as batteries. Notes:

• You can determine the warranty period at our Web site by the serial number and part number of your product. Those without Internet access should contact the Customer Support Center.

• Please refer to the insertion about repair, replace, and export of Interface products. The Warranty provided herein does not cover expendable supplies such as batteries and damages, defects, malfunctions, or failures caused by impact during transportation while under owner’s responsibility; owner’s failure to follow the instructions and the precautions contained in this manual; modification and/or repair of the product by other than Interface Corporation, trouble caused by use with peripherals not specified by Interface Corporation, power failure or surges, fire, earthquake, tidal wave and/or flood, and transit damage.

Page 46: USER’S MANUAL MPB-A6205C · Comments . 1.0 . October 2002 . English version of user’s manual PCI-6205C published. 1.1 . March 2003 : Format is revised. 1.2 : September 2003

Repair and Maintenance We provide repair and maintenance service for your damaged product. If you need this service, please refer to follow the procedures for repair and maintenance applications. You can also download a user’s manual of Japanese version from our Web site below. URL: www.interface.co.jp For Assistance If you would like to inquire our products, please contact below.

Phone: 0120-447213 (in Japan) (Available from 9:00 am to 5:00 pm Monday to Friday except for holiday and company holiday)

Customer Support Center (for Assistance)

FAX: 0120-458257 (in Japan) E-mail: [email protected] Phone: 082-262-1630 (in Japan) (Available from 9:00 am to 5:00 pm Monday to Friday except for holiday and company holiday)

Customer Support Center (for Repair and Maintenance)

Fax: 082-262-1552 (in Japan)

MPB-A6205C Ver. 1.4 Vol. 1/1