Erma Electronic PCI 1389-S02 Instruction Manual

Incremental counter card special application

Advertisement

Quick Links

PCI 1389-S02
Incremental Counter Card
Special Application
Instruction Manual
ERMA
Electronic GmbH
Electronic GmbH

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCI 1389-S02 and is the answer not in the manual?

Questions and answers

Summary of Contents for Erma Electronic PCI 1389-S02

  • Page 1 PCI 1389-S02 Incremental Counter Card Special Application Instruction Manual ERMA Electronic GmbH Electronic GmbH...
  • Page 2 Warranty For delivered products our "Allgemeine Lieferungs- und Zahlungsbedingungen" are effective. In no event ERMA-Electronic or its suppliers shall be liable for any other damages whatsoever (including, without limitation, damages for loss of business profits, business interruption or other pecuniary loss) arising out of or inability to use this product. All products from ERMA-Electronic are warranted against defective material and workmanship for a period of two (2) years from date of delivery.
  • Page 3: Table Of Contents

    CONTENTS 1. Safety Instructions ..... . . 4 2. Repair ......4 3.
  • Page 4 7.7. Test of the card ..... . 12 8. The registers of the PCI 1389-S02 ....12 8.1.
  • Page 5: Safety Instructions

    1. Safety Instructions 1. Safety Instructions This pc-card is produced in accordance with Class II of IEC 348 and VDE 0411. When delivered the card has been tested to meet all functions described. Before installing the card please read the mounting and servicing instructions. We have no liability or responsibility to customer or any other person or entity with respect to any liability, loss or damage caused or alleged to be caused directly or indirectly by equipment or software sold or furnished by us.
  • Page 6: Symbol Explanation

    Useful hints for better operation. 4. General The counter card PCI 1389-S02 has two 32-Bit incremental up/down counter. The input channels of these counters are provided with isolated RS422 interfaces. In addition there is one 16-Bit reference counter with a RS422 interface which is also isolated.
  • Page 7: Function

    5. Function 5. Function The PCI 1389-S02 has a PCI-Target-Controller to connect to the PCI-bus, a FPGA which contains the whole functionality of the card, and also 4 bidirectional RS422-Ports, 8 unidirectional RS422-Ports, 4 digital inputs and 4 digital outputs.
  • Page 8: Block Diagram

    5. Function 5.1. Block diagram Counter 1 Counter 2 PCI-Decoder Reference- counter ERMA-Electronic GmbH...
  • Page 9: Hints Against Noisy Environment

    Because within PC’s and the peripherals are high voltages it is dangerous to life! 7.1. Hardware configuration The PCI 1389-S02 uses plug and play and so there is no need for any settings. ERMA-Electronic GmbH...
  • Page 10: Component Layout

    7. Installation 7.1.1. Component layout ERMA-Electronic GmbH...
  • Page 11: Connection Of Encoders

    PC have sharp pins. So this work have to be done carefully. The PCI 1389-S02 should be placed in a free PCI-Slot. The card should be installed vertically from above. Afterwards the slot plate of the card have to be screwed to the backside of the PC-case.
  • Page 12: Close Pc

    7. Installation The slot plate is used for mounting and also for shielding. Keep in mind that removal of the plate will result in loss of shielding and card and PC will be more sensitive to EMC. Additionaly the card won’t be held in slot-position when external force will happen to the connected cables.
  • Page 13: Test Of The Card

    8.2. Mode register The mode register controls the modes of the PCI 1389-S02 and is used to start and stop the counters. Unused bits should be masked or set to 0. The bits are used as follows: ERMA-Electronic GmbH...
  • Page 14 8. The registers of the PCI 1389-S02 Read and write BaseAddress1 + 8 Mode of counter 1 00 Incremental evaluation 1-fold Bit 1 .. 0 01 Incremental evaluation 2-fold 10 Incremental evaluation 4-fold 11 Event counting Trigger mode of counter 1 00 Softwaretrigger Bit 3 ..
  • Page 15 8. The registers of the PCI 1389-S02 Direction of incremental counter 2 Bit 18 0 “normal" Direction 1 reverse direction Polarity of reset input of counter 2 Bit 19 0 High resets counter 1 Low resets counter Counter 2 enable...
  • Page 16: Status-/Latchregister

    8. The registers of the PCI 1389-S02 8.3. Status-/Latchregister The status-/latchregister is used to latch the counters (softwaretrigger) and to inspect the status of the card. Read BaseAddress1 + 12 Bit 0 Status “Counter 1 waiting” Bit 1 Status “Counter 1 running”...
  • Page 17: Interrupt-Enable-Register

    8. The registers of the PCI 1389-S02 8.4. Interrupt-Enable-Register The interrupt-enable-register is used to enable or disable some or all interrupt sources. Interrupts are enabled if the corresponding bit is set. Read and write BaseAddress1 + 16 Bit 0 Interrupt if status changes to “Counter 1 running”...
  • Page 18: Interrupt-Status-Register

    8. The registers of the PCI 1389-S02 8.5. Interrupt-Status-Register The interrupt-status-register is used to get the source of an interrupt. All interrupts enabled or disabled are shown! Read BaseAddress1 + 20 Bit 0 Status has changed to “Counter 1 running”...
  • Page 19: Io-Register

    8. The registers of the PCI 1389-S02 8.7. IO-register The IO-register is used to set or read the status of the digital IO’s. Read BaseAddress1 + 28 Bit 0 State of digital output 0 (read back) Bit 1 State of digital output 1 (read back)
  • Page 20: Programming

    For the programming under windows NT4.0/2000 the card comes with a appro- priate driver. To keep the programming as easy as possible, all functions for the PCI 1389-S02 are placed in a dll. So there is no need to program the PCI 1389-S02 directly.
  • Page 21 This function will reset the dll and the cards. It has to be called once at the end of the application. • char PCI1389S02_GetCardCount (unsigned char *Anzahl); This functions returns the number of installed PCI 1389-S02. Driver and dll can handle up to 4 cards. • int PCI1389S02_GetLastError (unsigned char Card);...
  • Page 22 9. Programming • char PCI1389S02_WriteRef (unsigned char Card, unsigned short Value); • char PCI1389S02_ReadRef (unsigned char Card, unsigned short *Value); • char PCI1389S02_WriteIO (unsigned char Card, unsigned char Value); • char PCI1389S02_ReadIO (unsigned char Card, unsigned char *Value); These functions and their values correspond to the direct programming. The use of the low-level-functions can disturb the work of the high-level-functions.
  • Page 23 9. Programming • char PCI1389S02_StartCounter (unsigned char Card, unsigned char Flags); This function will start the counters. The counters can be started separatly or together if ORed. See file PCI1389S02.H. • char PCI1389S02_StopCounter (unsigned char Card, unsigned char Flags); This function will stop the counter. As described in StartCounter, the counters can be stopped separatly or together.
  • Page 24: Pin Assignment

    10. Pin assignment 10. Pin assignment User name DB37_PRINT_90 Counter1_A Counter1_A# Counter1_B Counter1_B# Counter1_Z Counter1_Z# Counter2_A Counter2_A# Counter2_B Counter2_B# Counter2_Z Counter2_Z# Don’t connect! n.c. Don’t connect! n.c. Don’t connect! n.c. Don’t connect! n.c. Don’t connect! n.c. Don’t connect! n.c. Counter4_A Counter4_A# Counter4_B Counter4_B#...
  • Page 25: Troubleshooting

    11. Troubleshooting 11. Troubleshooting All PC-boards of ERMA-Electronic GmbH are tested during manufacturing as well as when delivered. Nevertheless it can occur that a new board doesn’t work. That must not be a failure of the board. There are many minor details when a new board doesn’t work.
  • Page 26: Technical Datas

    12. Technical datas 12. Technical datas The technical datas are maximum operating conditions. Exceeding these condi- tions can result in damage on PCI 1389-S02 and all connected components. RS422-Ports : 4 bidirectional 8 unidirectional Isolation voltage : 500 V DC...
  • Page 28 RMA - lectronic GmbH Max- yth-Straße 8 D-78194 Immendingen Telefon +49 7462 2000-0 ERMA +49 7462 2000-29 email info@erma-electronic.com Electronic GmbH Electronic GmbH www.erma-electronic.com...

Table of Contents