Addi-Data APCI-1500 Technical Description

Digital i/o board, optically isolated
Hide thumbs Also See for APCI-1500:
Table of Contents

Advertisement

Quick Links

DIN EN ISO 9001:2000
certified
ADDI-DATA GmbH
Dieselstraße 3
D-77833 OTTERSWEIER
+49 (0)7223 / 9493 – 0
Technical description
APCI-1500, CPCI-1500
Digital I/O board, optically isolated
Edition: 12.08 - 01/2008

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APCI-1500 and is the answer not in the manual?

Questions and answers

Summary of Contents for Addi-Data APCI-1500

  • Page 1 DIN EN ISO 9001:2000 certified ADDI-DATA GmbH Dieselstraße 3 D-77833 OTTERSWEIER +49 (0)7223 / 9493 – 0 Technical description APCI-1500, CPCI-1500 Digital I/O board, optically isolated Edition: 12.08 - 01/2008...
  • Page 2 The user is not permitted to make changes to the product beyond the intended use, or to interfere with the product in any other way. ADDI-DATA shall not be liable for obvious printing and phrasing errors. In addition, ADDI DATA, if legally permissible, shall not be liable for personal injury or damage to materials caused by improper...
  • Page 3 WARNING The following risks result from improper implementation and from use of the board contrary to the regulations: ♦ Personal injury ♦ Damage to the board, PC and peripherals ♦ Pollution of the environment ♦ Protect yourself, the others and the environment! ♦...
  • Page 4: Table Of Contents

    Electromagnetic compatibility (EMC) ........12 Physical set-up of the board ..........12 Options .................. 13 Limit values................13 Component scheme.............. 16 INSTALLATION OF THE BOARD ........18 Installing the APCI-1500............18 5.1.1 Opening the PC ................18 5.1.2 Selecting a free slot ..............18 5.1.3 Plugging the board into the slot ...........19...
  • Page 5 8.2.3 Interrupt ..................38 8.2.4 Counter/timer ................39 Input frequencies ................ 40 Data .................... 40 Option (only implemented for the APCI-1500) ......40 STANDARD SOFTWARE ..........41 Introduction ................41 Software functions..............42 9.2.1 Base address and interrupt............42 i_APCI1500_InitCompiler (..) ............42 i_APCI1500_CheckAndGetPCISlotNumber (...) ......
  • Page 6 Contents APCI-/CPCI-1500 i_APCI1500_Set8DigitalOutputOn (...) ........72 i_APCI1500_Set8DigitalOutputOff (...) ........73 v_APCI1500_Set16DigitalOutputOn (...) ........74 v_APCI1500_Set16DigitalOutputOff (...) ........75 9.2.7 Timer/counter and watchdog ............75 i_APCI1500_InitTimerInputClock (...) ......... 75 i_APCI1500_InitTimerCounter1 (...) ..........76 i_APCI1500_InitTimerCounter2 (...) ..........77 i_APCI1500_InitWatchdogCounter3 (...) ........79 i_APCI1500_StartTimerCounter1(...) ........... 80 i_APCI1500_StartTimerCounter2 (...) ..........
  • Page 7 Figures and Tables Figures Fig. 3-1: Correct handling of the CPCI-1500 ........11 Fig. 3-2: Correct handling of the APCI-1500 ........11 Fig. 4-1: Component scheme of the APCI-1500 ......16 Fig. 4-2: Component scheme of the CPCI-1500 ......17 Fig.
  • Page 8: Definition Of Application

    DEFINITION OF APPLICATION Intended use The APCI-1500 board must be inserted in a PC with PCI 5V/32-bit slots which is used as electrical equipment for measurement, control and laboratory pursuant to the norm EN 61010-1 (IEC 61010-1). The used personal computer (PC) must fulfil the requirements of IEC 60950-1 or EN 60950-1 and 55022 or IEC/CISPR 22 and EN 55024 or IEC/CISPR 24.
  • Page 9 APCI-/CPCI-1500 Definition of Application metallized plastic hoods shielded cable cable shield folded back and firmly screwed to the connector housing. The use of the board according to its intended purpose includes observing all advises given in this manual and in the safety leaflet. Uses beyond these specifications are not allowed.
  • Page 10: User

    User APCI-/CPCI-1500 USER Qualification Only persons trained in electronics are entitled to perform the following works: installation use, maintenance. Country-specific regulations Consider the country-specific regulations about: the prevention of accidents electrical and mechanical installations radio interference suppression.
  • Page 11: Handling Of The Board

    APCI-/CPCI-1500 Handling of the board HANDLING OF THE BOARD Fig. 3-1: Correct handling of the CPCI-1500 Fig. 3-2: Correct handling of the APCI-1500...
  • Page 12: Technical Data

    European EMC directive for an industrial environment are complied with. The respective EMC test report is available on request. Physical set-up of the board The board is assembled on a 4-layer printed circuit card. APCI-1500 CPCI-1500 131 mm Dimensions 100 mm...
  • Page 13: Options

    Storage temperature: ........-25 to + 70°C Relative humidity at indoor installation 50% at +40 °C 80% at +31 °C Minimum PC requirements (APCI-1500): - PCI BIOS - operating system: ........MS DOS 3.3 or > Windows 3.1, NT, 95, 98 - bus speed: ..........
  • Page 14 Max. output current / output channel: ..500 mA Short-circuit current / output channel at 24 V, APCI-1500: R load < 0,1 R: ....1,5 A max. (switches off the output channel) CPCI-1500: R load < 0,01 R: ....2,5 A max. (switches off the...
  • Page 15 Times from 10 μs to 37 s are available. Counter input channels: ......max. 10 kHz, 24 V APCI-1500 Option: fast counter input channels: ..max. 140 kHz, 24 V CPCI-1500 Status LEDs on front connector: Green LED on: ..........
  • Page 16: Component Scheme

    Technical data APCI-/CPCI-1500 Component scheme Fig. 4-1: Component scheme of the APCI-1500...
  • Page 17: Fig. 4-2: Component Scheme Of The Cpci-1500

    APCI-/CPCI-1500 Technical data Fig. 4-2: Component scheme of the CPCI-1500...
  • Page 18: Installation Of The Board

    INSTALLATION OF THE BOARD IMPORTANT! Do observe the safety precautions (yellow leaflet)! Installing the APCI-1500 5.1.1 Opening the PC ♦ Switch off your PC and all the units connected to the PC ♦ Pull the PC mains plug from the socket.
  • Page 19: Plugging The Board Into The Slot

    APCI-/CPCI-1500 Installation of the board 5.1.3 Plugging the board into the slot ♦ Insert the board vertically into the chosen slot. Fig. 5-2: Inserting the board ♦ Fasten the board to the rear of the PC housing with the screw which was fixed on the back cover.
  • Page 20: Installing The Cpci-1500

    Installation of the board APCI-/CPCI-1500 Installing the CPCI-1500 The following Compact PCI slot types are available for 5V systems: CPCI-5V (32-bit) and CPCI-5V (64-bit) See in the computer manual which types of slots are free. Fig. 5-4: Types of slots for CompactPCI boards ♦...
  • Page 21: Fig. 5-6: Connector Keying

    APCI-/CPCI-1500 Installation of the board ♦ Make sure that the board is correctly connected by connecting the key of the board to the key of the backplane (blue key connectors if the board operates with 5 V) Fig. 5-6: Connector keying ♦...
  • Page 22: Software

    Software APCI-/CPCI-1500 SOFTWARE In this chapter you will find a description of the delivered software and its possible applications. IMPORTANT! Further information for installing and uninstalling the different drivers is to be found in the delivered description "Installation instructions for the PCI and ISA bus". A link to the corresponding PDF file is available in the navigation pane (Bookmarks) of Acrobat Reader.
  • Page 23: Board Registration With Addireg

    ADDIREG program. 6.1.1 Program description IMPORTANT! Insert the ADDI-DATA boards to be registered before starting the ADDIREG program. If the board is not inserted, the user cannot test the registration. Once the program is called up, the following dialog box appears.
  • Page 24 Selected base address of the board. For PCI boards the base address is allocated through BIOS. Access: Selection of the access mode for the ADDI-DATA digital boards. Access in 8-bit or 16-bit or 32-bit mode. PCI bus/device/(slot): Number of the used PCI bus, slot, and device. If the board is no PCI board, the message "NO"...
  • Page 25: Fig. 6-2: Configuring A New Board

    APCI-/CPCI-1500 Software Buttons: Edit: Selection of the highlighted board with the different parameters set in the text boxes. Insert: When you want to insert a new board, click on "Insert". The following dialog window appears: Fig. 6-2: Configuring a new board All boards you can register are listed on the left.
  • Page 26: Fig. 6-3: Pci Boards

    Software APCI-/CPCI-1500 More information (not available for the boards with ADDIPACK) You can change the board specific parameters like the identifier string, the COM number, the operating mode of a communication board, etc... If your board does not support these information, you cannot activate this button. Fig.
  • Page 27: Registering A New Board

    APCI-/CPCI-1500 Software 6.1.2 Registering a new board IMPORTANT! To register a new board, you must have administrator rights. Only an administrator is allowed to register a new board or change a registration. ♦ Call up the ADDIREG program. The Fig. 6-1 is displayed on the screen. ♦...
  • Page 28: Questions And Software Downloads On The Web

    ADDIREG program and directly begin with your application. Questions and software downloads on the web Do not hesitate to e-mail us your questions. per e-mail: info@addi-data.de hotline@addi-data.de Free downloads of standard software You can download the latest version of the software for the board APCI-/CPCI-1500.
  • Page 29: Connecting The Peripheral

    APCI-/CPCI-1500 Connecting the peripheral CONNECTING THE PERIPHERAL Connector pin assignment Fig. 7-1: 37-pin SUB-D male connector Connection principle Fig. 7-2: Connection principle of the input and output channels...
  • Page 30: Connection Examples

    Connecting the peripheral APCI-/CPCI-1500 Connection examples Fig. 7-3: Connection examples for the input and output channels...
  • Page 31: Fig. 7-4: Connection To The Screw Terminal Panel

    APCI-/CPCI-1500 Connecting the peripheral Fig. 7-4: Connection to the screw terminal panel IMPORTANT! Insert the FB on the connector with the red cable lead on the side of the pin 1.
  • Page 32: Functions Of The Board

    Functions of the board APCI-/CPCI-1500 FUNCTIONS OF THE BOARD Description of the board 8.1.1 Block diagram Fig. 8-1: Block diagram of the APCI-1500 Fig. 8-2: Block diagram of the CPCI-1500...
  • Page 33: Functions

    APCI-/CPCI-1500 Functions of the board The board APCI-/CPCI-1500 is intended for parallel input/output for digital signals in 24 V industrial environment. The peripheral and the system have a simultaneous optical isolation. The board offers: 16 digital inputs: 14 are interruptible. 3 counters (or timers): programmable by software 1 timer: can be used as a watchdog for the outputs.
  • Page 34: Special Input Functions Of The Digital Inputs

    Functions of the board APCI-/CPCI-1500 WARNING! Do you operate all inputs with the same voltage supply? The voltage supply must deliver at least 16 x 6 = 96 mA. The maximum input voltage is 30 V. Transil diodes, Z diodes, C filters and optical couplers protect the system bus from noise emitted by the peripheral.
  • Page 35: Fig. 8-3: Interrupt Logic - Digital Inputs 1-8

    APCI-/CPCI-1500 Functions of the board Example: Port 1 (digital inputs 1-8), AND-logic Event for generating an interrupt: Digital input 8 7 6 5 4 3 2 1 Event mask 3 X 1 0 0 1 0 1 The following events generate an interrupt: Inputs 2 and 4 and 5 = 0 V Inputs 1 and 3 and 6 = 24 V Input 8 = rising edge...
  • Page 36: Counter

    Functions of the board APCI-/CPCI-1500 interrupt will be generated because the OR-event is not fulfilled Counter Counter 1: Input 14 signal input Counter 2: Input 10 signal input Input 11 can be used for a "trigger" function Input 12 can be used for a "gate" function. Counter 3 Input 15 signal input Input 16 can be used as a "gate"...
  • Page 37: Digital Outputs

    APCI-/CPCI-1500 Functions of the board 8.2.2 Digital outputs The board supplies 16 optically isolated outputs. The outputs comply with the 24 V industry standard (IEC1131-2): The positive logic is used logic "1": sets the output by software (switch on ON), logic "0": resets the output (switch on OFF).
  • Page 38: Special Functions

    Functions of the board APCI-/CPCI-1500 Special functions 2 diagnostic bits are available on the board. ϑ -diagnostic (Pin 19 on the front connector) is released: - when short-circuit has occurred on an output or - in case of overtemperature on an output component (8 channels). The V -diagnostic informs that: - the external voltage supply has dropped <...
  • Page 39: Counter/Timer

    APCI-/CPCI-1500 Functions of the board The interrupt source information are available on the user program through an interrupt routine See API functions: i_APCI1500_SetBoardIntRoutineXX, i_APCI1500_ResetBoardIntRoutine. An event indicates a change of status (level): - on an input (ex. "0" 1") - or on several inputs if a logic has been defined between the inputs. Running-down: if the counter changes from 1 8.2.4 Counter/timer On the board three 16-bit counters/timers are available in the component Z8536...
  • Page 40: Input Frequencies

    3.49 kHz 1.14 ms 74.9 s 1.747 kHz Option (only implemented for the APCI-1500) The counter input channels 1, 2 and 3 can be equipped with fast optical couplers. The maximum input frequency is then 140 kHz. (Standard frequency: 10 kHz)
  • Page 41: Standard Software

    APCI-/CPCI-1500 Standard software STANDARD SOFTWARE Introduction Table 9-1: Type Declaration for Dos and Windows 3.1X Borland C Microsoft C Borland Microsoft Microsoft Pascal Visual Basic Visual Basic Windows VOID void void pointer BYTE unsigned char unsigned char byte integer integer integer integer integer...
  • Page 42: Software Functions

    Standard software APCI-/CPCI-1500 Software functions Remark: The CPCI-1500 board is entirely compatible with the APCI-1500 board regarding the software installation and the device driver. The program ADDIREG will thus make no difference between the systems (PCI board or Compact PCI board).
  • Page 43: I_Apci1500_Checkandgetpcislotnumber

    = i_APCI1500_CheckAndGetPCISlotNumber (b_SlotNumberArray); Return value: Returns the number of xPCI-1500 boards which are inserted in your PC. If the return value equals 0 then no xPCI-1500 board was found in your PC. Common designation for the boards APCI-1500 and CPCI-1500...
  • Page 44: I_Apci1500_Setboardinformation

    Standard software APCI-/CPCI-1500 i_APCI1500_SetBoardInformation (...) Syntax: <Return value> = i_APCI1500_SetBoardInformation (BYTE b_SlotNumber, PBYTE pb_BoardHandle) Parameters: - Input: BYTE b_SlotNumber: Slot number of the xPCI-1500 board - Output: PBYTE pb_BoardHandle: Handle of board xPCI-1500 for using the functions Task: Checks if the board xPCI-1500 is present and stores the slot number. A handle is returned to the user which allows to use the following functions.
  • Page 45: I_Apci1500_Gethardwareinformation

    APCI-/CPCI-1500 Standard software i_APCI1500_GetHardwareInformation (...) Syntax: <Return value> = i_APCI1500_GetHardwareInformation (BYTE b_BoardHandle, PUINT pui_BaseAddress, PBYTE pb_InterruptNbr, PBYTE pb_SlotNumber) Parameters: - Input BYTE b_BoardHandle Handle of board xPCI-1500 - Output: PUINT pui_BaseAddress xPCI-1500 base address PBYTE pb_InterruptNbr xPCI-1500 interrupt channel. PBYTE pb_SlotNumber xPCI-1500 slot number Task:...
  • Page 46: I_Apci1500_Closeboardhandle

    Standard software APCI-/CPCI-1500 i_APCI1500_CloseBoardHandle (..) IMPORTANT! Call up this function each time you want to leave the user program! Syntax: <Return value> = i_APCI1500_CloseBoardHandle (BYTE b_BoardHandle) Parameters: - Input: BYTE b_BoardHandle Handle of board xPCI-1500 - Output: No output signal has occurred. Task: Releases the board handle.
  • Page 47: Interrupt

    APCI-/CPCI-1500 Standard software 9.2.2 Interrupt IMPORTANT! This function is only available for C/C++ and Pascal for DOS. i_APCI1500_SetBoardIntRoutineDos (..) Syntax: <Return value> = i_APCI1500_SetBoardIntRoutineDos (BYTE b_BoardHandle, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask BYTE b_InputChannelNbr)) Parameters: - Input: BYTE b_BoardHandle Handle of board xPCI-1500 VOID v_FunctionName Name of the user interrupt routine...
  • Page 48: Table 9-3: Interrupt Mask

    Standard software APCI-/CPCI-1500 The following errors are possible - overtemperature - short-circuit - no voltage is available If several boards are operated and if they have to react to interrupts, the variable b_BoardHandle returns the identification number (handle) of the board which has generated the interrupt.
  • Page 49 APCI-/CPCI-1500 Standard software Calling convention: ANSI C : void v_FunctionName (unsigned char b_BoardHandle, unsigned char b_InterruptMask, unsigned int b_InputChannelNumber) i_ReturnValue; unsigned char b_BoardHandle; i_ReturnValue = i_APCI1500_SetBoardIntRoutineDos (b_BoardHandle, v_FunctionName ); Return value: 0: No error -1: The handle parameter of the board is wrong -2: Interrupt already installed...
  • Page 50: I_Apci1500_Setboardintroutinevbdos

    Standard software APCI-/CPCI-1500 IMPORTANT! This function is only available for Visual Basic DOS. i_APCI1500_SetBoardIntRoutineVBDos (..) Syntax: <Return value> = i_APCI1500_SetBoardIntRoutineVBDos (BYTE b_BoardHandle) Parameters: - Input: BYTE b_BoardHandle Handle of board xPCI-1500 - Output: No output signal has occurred. Task: This function must be called up for each xPCI-1500 on which an interrupt action is to be enabled.
  • Page 51 APCI-/CPCI-1500 Standard software Calling convention: Visual Basic DOS: Dim Shared i_ReturnValue As Integer Dim Shared i_BoardHandle As Integer Dim Shared i_InterruptMask As Integer Dim Shared l_InputChannelNbr As Integer IntLabel: i_ReturnValue = i_APCI1500_TestInterrupt (i_BoardHandle, _ i_InterruptMask, _ i_InputChannelNbr) Return ON UEVENT GOSUB IntLabel UEVENT ON i_ReturnValue = i_APCI1500_SetBoardIntRoutineVBDos (b_BoardHandle) Return value:...
  • Page 52: I_Apci1500_Setboardintroutinewin16

    Standard software APCI-/CPCI-1500 IMPORTANT! This function is only available for Windows 3.1 and Windows 3.11 i_APCI1500_SetBoardIntRoutineWin16 (..) Syntax: <Return value> = i_APCI1500_SetBoardIntRoutineWin16 (BYTE b_BoardHandle, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE InputChannelNbr)) Parameters: - Input: BYTE b_BoardHandle Handle of board xPCI-1500 VOID v_FunctionName Name of the user interrupt routine...
  • Page 53 APCI-/CPCI-1500 Standard software The following errors are possible - overtemperature - short-circuit - no voltage is available If several boards are operated and if they have to react to interrupts, the variable b_BoardHandle returns the identification number (handle) of the board which has generated the interrupt.
  • Page 54 Standard software APCI-/CPCI-1500 IMPORTANT! If you use Visual Basic for Windows the following parameters have no signification. You must use "i_APCI1500_TestInterrupt". VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE b_InputChannelNbr) Calling convention: ANSI C : void v_FunctionName (unsigned char b_BoardHandle, unsigned char b_InterruptMask, unsigned char b_InputChannelNbr) i_ReturnValue;...
  • Page 55: I_Apci1500_Setboardintroutinewin32

    APCI-/CPCI-1500 Standard software i_APCI1500_SetBoardIntRoutineWin32 (..) Syntax: <Return value> = i_APCI1500_SetBoardIntRoutineWin32 (BYTE b_BoardHandle, BYTE b_UserCallingMode, ULONG ul_UserSharedMemorySize, VOID ** ppv_UserSharedMemory, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE b_InputChannelNbr, BYTE b_UserCallingMode, VOID * pv_UserSharedMemory)) Parameters: - Input: BYTE b_BoardHandle Handle of board xPCI-1500 BYTE b_UserCallingMode APCI1500_SYNCHRONOUS_MODE: The...
  • Page 56 Standard software APCI-/CPCI-1500 Task: WINDOWS 32-BIT INFORMATION For Windows NT and Windows 2000/9x, 4 running rings (ring 0 to ring 3) are available The user application operates in ring 3. This ring gives no access to hardware. VXD and SYS driver operate in ring 0 and give access to hardware. Ring 0 has no direct access to global variable from ring 3.
  • Page 57 APCI-/CPCI-1500 Standard software User interrupt routine can be called : - directly by the driver interrupt routine (Synchronous mode). The code of the user interrupt routine directly operates in ring 0. - by the driver interrupt thread (Asynchronous mode). An event is generated and the interrupt thread calls up the user interrupt routine.
  • Page 58 Standard software APCI-/CPCI-1500 Shared memory If you have selected the APCI1500_SYNCHRONOUS_MODE you cannot have access to global variables. But you have the possibility to create a shared memory (ppv_UserSharedMemory). The user shared memory can have all predefined compiler types or user define types. The variable ul_UserSharedMemorySize indicates the size in bytes of the selected user type.
  • Page 59 APCI-/CPCI-1500 Standard software IMPORTANT! If you use Visual Basic 4 the following parameters have not signification. You must used the "i_APCI1500_TestInterrupt" function BYTE b_UserCallingMode, ULONG ul_UserSharedMemorySize, VOID ** ppv_UserSharedMemory, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE b_InputChannelNbr, BYTE b_UserCallingMode, VOID * pv_UserSharedMemory) Calling convention: ANSI C : typedef struct...
  • Page 60 Standard software APCI-/CPCI-1500 i_ReturnValue = i_APCI1500_SetBoardIntRoutineWin32 (i_BoardHandle, APCI1500_ASYNCHRONOUS_MODE, AddressOf v_FunctionName) Return value: 0: No error -1: The handle parameter of the board is wrong -2: Interrupt already installed -3: Calling mode selection of the user interrupt routine is wrong -4: No memory available for the user shared memory...
  • Page 61: I_Apci1500_Testinterrupt

    APCI-/CPCI-1500 Standard software i_APCI1500_TestInterrupt (..) Syntax: <Return value> = i_APCI1500_TestInterrupt (PBYTE pb_BoardHandle, PBYTE pb_InterruptMask, PBYTE pb_ChannelNbr) Parameters: - Input: No input signal is to occur. - Output: PBYTE pb_BoardHandle Handle of the board PCI-1500 which has generated the interrupt, PBYTE pb_InterruptMask Error mask of the event which has generated the interrupt.
  • Page 62: I_Apci1500_Resetboardintroutine

    Standard software APCI-/CPCI-1500 Calling convention: ANSI C : unsigned char b_BoardHandle; unsigned char b_InterruptMask; unsigned char b_ChannelNbr; i_Irq; Irq = i_APCI1500_TestInterrupt (&b_BoardHandle, & b_InterruptMask, & b_ChannelNbr); Return value: -1: No interrupt > 0: IRQ number i_APCI1500_ResetBoardIntRoutine (..) Syntax: <Return value> = i_APCI1500_ResetBoardIntRoutine (BYTE b_BoardHandle) Parameters: - Input:...
  • Page 63: Kernel Functions

    APCI-/CPCI-1500 Standard software 9.2.3 Kernel functions i_APCI1500_KRNL_Read16DigitalInput (...) Syntax: <Return value> = i_APCI1500_KRNL_Read16DigitalInput (UINT ui_BaseAddress, PLONG pl_InputValue) Parameters: - Input: UINT ui_BaseAddress xPCI-1500 base address - Output: PLONG pl_InputValue State of the digital input channels of both ports (0 to 65535) Task: Indicates the state of both ports.
  • Page 64: V_Apci1500_Krnl_Set16Digitaloutputon

    Standard software APCI-/CPCI-1500 v_APCI1500_KRNL_Set16DigitalOutputOn (...) Syntax: <Return value> = v_APCI1500_KRNL_Set16DigitalOutputOn (UINT ui_BaseAddress, LONG l_Value) Parameters: - Input: UINT ui_BaseAddress xPCI-1500 base address LONG l_Value Output value (0 to 65535) - Output: No output signal has occurred. Task: Sets one or several output channels of board xPCI-1500 Example: l_Value = 5555 Hex The output channels 1, 3, 5, 7, 9, 11, 13, 15 are set.
  • Page 65: Digital Input Channel

    APCI-/CPCI-1500 Standard software 9.2.4 Digital input channel i_APCI1500_Read1DigitalInput (...) Syntax : <Return value> = i_APCI1500_Read1DigitalInput (BYTE b_BoardHandle, BYTE b_Channel, PBYTE pb_ChannelValue) Parameters: BYTE b_BoardHandle Handle of board xPCI-1500 BYTE b_Channel The number of the input channel to be read (1 to 16) PBYTE pb_ChannelValue State of the digital input channel:...
  • Page 66: I_Apci1500_Read16Digitalinput

    Standard software APCI-/CPCI-1500 Example: b_Port = 1 pb_PortValue = 55 Hex A voltage is present on the input channels 1, 3, 5, 7 A voltage is not present on the input channels 2, 4, 6, 8. Return value: 0: No error -1: Handle parameter of the board is wrong -2: The parametered port number is wrong (parameter 1 or 2) i_APCI1500_Read16DigitalInput (...)
  • Page 67: Digital Input Channel - Events

    APCI-/CPCI-1500 Standard software 9.2.5 Digital input channel - events i_APCI1500_SetInputEventMask (...) Syntax: <Return value> = i_APCI1500_SetInputEventMask (BYTE b_BoardHandle, BYTE b_PortNbr, BYTE b_Logik, PCHAR pc_EventMask) Parameters: BYTE b_BoardHandle Handle of board xPCI-1500 BYTE b_Port Number of the input port to be masked (1 or 2) BYTE b_Logik Event logic...
  • Page 68 Standard software APCI-/CPCI-1500 An event is a change of state (ex. Low high) on one or several input channels if an AND/OR/OR_PRIORITY logic has been defined. Examples: Example 1: b_PortNbr b_Logik = APCI1500_AND pc_EventMask = "3X100101" An event is generated: - when the input channels 2, 4 and 5 are on "0".
  • Page 69: I_Apci1500_Startinputevent

    APCI-/CPCI-1500 Standard software i_APCI1500_StartInputEvent (...) Syntax : <Return value> = i_APCI1500_StartInputEvent (BYTE b_BoardHandle, BYTE b_PortNbr) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 BYTE b_Port Number of the input port (1 or 2) Task: As soon as the function is called, it is possible to process an event on one port. First mask the input channels with the following function i_APCI1500_SetInputEventMask .
  • Page 70: Digital Output Channel

    Standard software APCI-/CPCI-1500 9.2.6 Digital output channel i_APCI1500_SetOutputMemoryOn (...) Syntax: <Return value> = i_APCI1500_SetOutputMemoryOn (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 Task: Activates the digital output memory. After calling this function, the output channels you have previously activated with the functions "i_APCI1500_SetXDigitalOutputOn"...
  • Page 71: I_Apci1500_Set1Digitaloutputon

    APCI-/CPCI-1500 Standard software i_APCI1500_Set1DigitalOutputOn (...) Syntax: <Return value> = i_APCI1500_Set1DigitalOutputOn (BYTE b_BoardHandle, BYTE b_Channel) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 BYTE b_Channel Number of the output channel you want to set (1 to 16) Task: Sets the output channel which has been passed with b_Channel. Setting an output channel means setting an output channel on high.
  • Page 72: I_Apci1500_Set8Digitaloutputon

    Standard software APCI-/CPCI-1500 Return value: 0: No error -1: The handle parameter of the board is wrong -2: The input number is not between 1 and 16 -3: Digital output memory OFF. First use the function "i_APCI1500_SetOutputMemoryOn" i_APCI1500_Set8DigitalOutputOn (...) Syntax: <Return value>...
  • Page 73: I_Apci1500_Set8Digitaloutputoff

    APCI-/CPCI-1500 Standard software i_APCI1500_Set8DigitalOutputOff (...) Syntax: <Return value> = i_APCI1500_Set8DigitalOutputOff (BYTE b_BoardHandle, BYTE b_Port, BYTE b_Value) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 BYTE b_Port Number of the output port (1 or 2) BYTE b_Value Output value (0 to 255) Task: Resets one or several output channels of one port.
  • Page 74: V_Apci1500_Set16Digitaloutputon

    Standard software APCI-/CPCI-1500 v_APCI1500_Set16DigitalOutputOn (...) Syntax: <Return value> = v_APCI1500_Set16DigitalOutputOn (BYTE b_BoardHandle, LONG l_Value) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 LONG l_Value Output value (0 to 65535) Task: Sets one or several output channels of board xPCI-1500 Example: Switching on the digital output memory (ON) see function "i_APCI1500_SetOutputMemoryOn (...) l_Value = 5555 Hex The output channels 1, 3, 5, 7, 9, 11, 13, 15 are set.
  • Page 75: V_Apci1500_Set16Digitaloutputoff

    APCI-/CPCI-1500 Standard software v_APCI1500_Set16DigitalOutputOff (...) Syntax: <Return value> = v_APCI1500_Set16DigitalOutputOff (BYTE b_BoardHandle, LONG l_Value) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 LONG l_Value Output value (0 to 65535) Task: Resets one or several output channels of board xPCI-1500. Example: l_Value = 5555 Hex The output channels 1, 3, 5, 7, 9, 11, 13, 15 are reset.
  • Page 76: I_Apci1500_Inittimercounter1

    Standard software APCI-/CPCI-1500 IMPORTANT! The timer component internally operates with half of the input frequency. Task: Selects the input clock timing for all timers Return value: 0: No error -1: The handle-parameter of the board is wrong -2: The parameter for selecting the input clock is wrong i_APCI1500_InitTimerCounter1 (...) Syntax: <Return value>...
  • Page 77: I_Apci1500_Inittimercounter2

    APCI-/CPCI-1500 Standard software Task: Selects the operating mode of the first counter/timer. The user enters its start value. You have to decide: - if the counter/timer must execute once or several times the counting operation, - if the counter/timer is used as a counter or a timer, - and if an interrupt must be generated when the counter/timer has run down.
  • Page 78 Standard software APCI-/CPCI-1500 BYTE b_HardwareOrSoftwareTriggerSelect: - APCI1500_HARDWARE_TRIGGER: The input 12 is used for the trigger. If this input channel is on high, the start value is re-loaded. - APCI1500_SOFTWARE_TRIGGER: Input 12 has no influence on the trigger BYTE b_HardwareOrSoftwareGateSelect: - APCI1500_HARDWARE_GATE: The input 13 is used for the gate.
  • Page 79: I_Apci1500_Initwatchdogcounter3

    APCI-/CPCI-1500 Standard software i_APCI1500_InitWatchdogCounter3 (...) Syntax: <Return value> = i_APCI1500_InitWatchdogCounter3 (BYTE b_BoardHandle, BYTE b_WatchdogOrCounterSelect, LONG l_ReloadValue, BYTE b_ContinuousOrSingleCycleSelect, BYTE b_HardwareOrSoftwareGateSelect, BYTE b_InterruptHandling) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 BYTE b_WatchdogOrCounterSelect Selects the mode of the third counter/watchdog - APCI1500_WATCHDOG: The third counter/watchdog is used as a watchdog.
  • Page 80: I_Apci1500_Starttimercounter1

    Standard software APCI-/CPCI-1500 Return value: No error -1: The handle parameter of the board is wrong -2: The parameter for selecting the counter or the timer is wrong (APCI1500_COUNTER or APCI1500_WATCHDOG) -3: Interrupt selection error (APCI1500_ENABLE or APCI1500_DISABLE) -4: User interrupt routine is not installed -5: Cycle parameter is wrong (APCI1500_CONTINUOUS or APCI1500_SINGLE) -6: Gate parameter is wrong (APCI1500_SOFTWARE_GATE or...
  • Page 81: I_Apci1500_Startcounter3

    APCI-/CPCI-1500 Standard software i_APCI1500_StartCounter3 (...) Syntax: <Return value> = i_APCI1500_StartCounter3 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 Task: Starts the third counter. Please initialise it previously with the function "i_APCI1500_InitWatchdogCounter3". Return value: 0: No error -1: The handle parameter of the board is wrong -2: Counter has not been initialised -3: The counter/watchdog has been initialised as a watchdog.
  • Page 82: I_Apci1500_Stoptimercounter2

    Standard software APCI-/CPCI-1500 i_APCI1500_StopTimerCounter2 (...) Syntax: <Return value> = i_APCI1500_StopTimerCounter2 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 Task: Stops the second counter/timer. The timer counter value is freezed. Return value: 0: No error -1: The handle parameter of the board is wrong -2: The counter or timer has not been initialised.
  • Page 83: I_Apci1500_Triggertimercounter2

    APCI-/CPCI-1500 Standard software 12) i_APCI1500_TriggerTimerCounter2 (...) Syntax: <Return value> = i_APCI1500_TriggerTimerCounter2 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 Task: Triggers the second counter/timer. The start value is loaded in the counter/timer. Return value: 0: No error -1: The handle parameter of the board is wrong -2: The counter or timer has not been initialised.
  • Page 84: I_Apci1500_Readtimercounter1

    Standard software APCI-/CPCI-1500 15) i_APCI1500_ReadTimerCounter1 (...) Syntax: <Return value> = i_APCI1500_ReadTimerCounter1 (BYTE b_BoardHandle, PLONG pl_ReadValue) Parameters: BYTE b_BoardHandle Handle of the xPCI-1500 PLONG pl_ReadValue This parameter has two meanings. When the counter/timer is used as a counter, it returns the current value of the counter. When the counter/timer is used as a timer, it returns the current value of the timer.
  • Page 85: I_Apci1500_Readcounter3

    APCI-/CPCI-1500 Standard software Task: Reads the current value of the second counter/timer if used as a counter or reads the timer content if used as a timer. Counter: the counter value is decremented each time the input channel changes from low to high. This counter value can be read with this function. Timer: the timer value is decremented each time the input clock changes from low to high.
  • Page 86: Glossary

    Glossary APCI-/CPCI-1500 GLOSSARY Table 10-1: Glossary Term Description A/D converter = ADC An electronic device that produces a digital output directly proportional to an analog signal output. Acquisition The process by which data is gathered by the computer for analysis or storage. The group of conductors that interconnect individual circuitry in a computer.
  • Page 87 APCI-/CPCI-1500 Glossary Inductive loads The voltage over the inductor is U=L.(dI/dt), whereas L is the inductivity and I is the current. If the current is switched on fast, the voltage over the load can become very highly for a short time. Input impedance The measured resistance and capacitance between the high and low inputs of a circuit.
  • Page 88 Glossary APCI-/CPCI-1500 PCI bus PCI bus is a fast local bus with a clock rate up to 33 MHz. This bus is used for processing a great number of data. The PCI bus is not limited like the ISA and EISA systems. = Programmable Logic Device Prorammable logic circuitry Protective circuitry...
  • Page 89: Index

    Software functions 71 Dimensions 12 Registering a new board 27 safety 15 Electromagnetic compatibility 12 Slots Energy requirements 13 APCI-1500 18 CPCI-1500 20 Software 22 Software download 28 Standard software 41 Functions of the board 32 Technical data 12 Glossary 87...
  • Page 90 Index APCI-/CPCI-1500 Watchdog Software functions 76 Weight 12...

This manual is also suitable for:

Cpci-1500

Table of Contents