Addi-Data ADDINUM PA 1500 Technical Description

Digital input and output board
Table of Contents

Advertisement

Quick Links

DIN EN ISO 9001:2000
certified
ADDI-DATA GmbH
Dieselstraße 3
D-77833 OTTERSWEIER
Technical support:
+49 (0)7223 / 9493 – 0
Technical description
ADDINUM PA 1500
Digital input and output board
Edition: 08.02-12/2005

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADDINUM PA 1500 and is the answer not in the manual?

Questions and answers

Summary of Contents for Addi-Data ADDINUM PA 1500

  • Page 1 DIN EN ISO 9001:2000 certified ADDI-DATA GmbH Dieselstraße 3 D-77833 OTTERSWEIER Technical support: +49 (0)7223 / 9493 – 0 Technical description ADDINUM PA 1500 Digital input and output board Edition: 08.02-12/2005...
  • 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 MSX-Box, PC and peripherals ♦ Pollution of the environment ♦ Protect yourself, the others and the environment! ♦...
  • Page 5: Table Of Contents

    PA 1500 Table of contents INTENDED PURPOSE OF THE BOARD...... 9 Limits of use ..............10 USER ..............11 Qualification ..............11 Personal protection ............11 HANDLING OF THE BOARD ........12 TECHNICAL DATA..........13 Electromagnetic compatibility (EMC) ......13 Physical set-up of the board ..........13 Limit values ..............14...
  • Page 6 Table of contents PA 1500 FUNCTIONS OF THE BOARD ........ 31 Block diagram ..............31 General description ............32 Digital inputs ..............33 9.3.1 Read the inputs 1 to 16 ............33 Example with the DEBUG program under DOS: ....34 EXAMPLE in BASIC: ..............34 Example in ASSEMBLER ............34...
  • Page 7 PA 1500 Table of contents v_PA1500_KRNL_Set16DigitalOutputOn (...)....59 10.2.4 Digital inputs ................ 60 i_PA1500_Read1DigitalInput (...) ........60 i_PA1500_Read8DigitalInput (...) ........60 i_PA1500_Read16DigitalInput (...) ........61 10.2.5 Digital inputs - events ............62 i_PA1500_SetInputEventMask (...) ........62 i_PA1500_StartInputEvent (...) ........... 64 i_PA1500_StopInputEvent (...)..........
  • Page 8 Table of contents PA 1500 Figures Fig. 3-1: Wrong handling ..............12 Fig. 3-2: Correct handling ..............12 Fig. 4-1: Component scheme ............16 Fig. 5-1: Jumper location on the board (settings at delivery) ... 17 Fig. 5-2: Block of DIP switches S1 ............
  • Page 9: Intended Purpose Of The Board

    PA 1500 Intended purpose of the board INTENDED PURPOSE OF THE BOARD The board PA 1500 is the interface between an industrial process and a personal computer (PC). The board PA 1500 must be inserted in a PC with a free ISA slots, which is used as electrical equipment for measurement, control and laboratory use as defined in the norm IEC 61010-1.
  • Page 10: Limits Of Use

    Intended purpose of the board PA 1500 Limits of use The PA 1500 board is not to be used as safety related part for securing emergency stop functions. The emergency stop functions are to be secured separately. This securing must not be influenced by the board or the PC. WARNING! The EMC tests have been carried out in a specific appliance configuration.
  • Page 11: User

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

    Handling of the board PA 1500 HANDLING OF THE BOARD Fig. 3-1: Wrong handling Fig. 3-2: Correct handling...
  • Page 13: Technical Data

    PA 1500 Technical data TECHNICAL DATA Electromagnetic compatibility (EMC) The board has been subjected to EMC tests in an accredited laboratory. The board complies with the limit values set by the norms IEC61326 as follows: True value Set value ESD (Discharge by contact/air) ....4/8 kV 4/8 kV Fields ............
  • Page 14: Limit Values

    Technical data PA 1500 Limit values Max. altitude: ..........2000 m Operating temperature: ......0 to 60°C Storage temperature: ......... -25 to 70°C Relative humidity: ........30% to 99% non condensing Minimum PC requirements: ISA bus interface: ........8 MHz Operating system: ........
  • Page 15 PA 1500 Technical data 24V digital outputs Output type: ..........high side (load at ground) Number of outputs: ........16 Nominal voltage: ........24 VDC Supply voltage range: ........ 10 V to 36 VDC (min. 5 V) Maximum output current for the 16 outputs: ..........
  • Page 16: Component Scheme

    Technical data PA 1500 Component scheme Fig. 4-1: Component scheme...
  • Page 17: Settings Of The Board

    PA 1500 Settings of the board SETTINGS OF THE BOARD IMPORTANT! Do observe the safety precautions (yellow leaflet)! Settings at delivery 5.1.1 Jumper location at delivery Fig. 5-1: Jumper location on the board (settings at delivery)
  • Page 18: Boards Settings

    Settings of the board PA 1500 5.1.2 Boards settings IMPORTANT! J1-A. It means that jumper J1 is set in position A . Selection of the time base for the timers or the watchdog. Timer: 111.5 kHz ± 1 % J1-A Watchdog: 8.94 µs to 586 ms Settings at delivery Timer: 3.45 kHz ±...
  • Page 19: Windows Nt

    PA 1500 Settings of the board Windows NT To check it, open Start/Programs/Administrative tools (common)/Windows NT diagnostics. Click on "I/O Port". Windows XP/2000/9x To check it, start the device manager under Start/Settings/Control Panel/ System/Hardware. Set the view to "resources by type". If the set base address is not displayed, it is then free.
  • Page 20: Installation Of The Board

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

    PA 1500 Installation of the board Plugging the board into the slot ♦ Insert the board vertically into the chosen slot. Fig. 6-3: Inserting the board ♦ Fasten the board to the rear of the PC housing with the screw which was fixed on the back cover.
  • Page 22: Software

    The ADDIREG registration program is a 32-bit program for Windows NT XP/2000/NT 4.0/ 9x. The user can register all hardware information necessary to operate the ADDI-DATA PC boards. IMPORTANT! If you use one or several resources of the board, you cannot start the...
  • Page 23: Installing A New Board

    The base address set in ADDIREG must correspond to the one set through DIP switches. 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,...
  • Page 24 Software PA 1500 Interrupt: Used interrupt of the board. If the board supports no interrupt, the message "Not available" is displayed. For PCI boards the interrupt is allocated through BIOS. WICHTIG! The interrupt set in ADDIREG must correspond to the one set through jumper.
  • Page 25: Fig. 7-2: Selecting A New Board

    PA 1500 Software Insert: When you want to insert a new board, click on "Insert". The following dialog window appears: Fig. 7-2: Selecting a new board All boards you can register are listed on the left. Select the wished board. (The corresponding line is highlighted).
  • Page 26: Registering A New Board

    Software PA 1500 Restore: Reactivates the last saved parameters and registration. Test registration: Controls if there is a conflict between the board and other devices. A message indicates the parameter which has generated the conflict. If there is no conflict, "OK" is displayed. Deinstall registration: Deinstalls the registrations of all board listed in the table.
  • Page 27: Changing The Registration Of A Board

    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 PA 1500 http://www.addi-data.com...
  • Page 28: Connecting The Peripheral

    Connecting the peripheral PA 1500 CONNECTING THE PERIPHERAL Connector pin assignment Fig. 8-1: 37-pin SUB-D male connector Fig. 8-2: Connection principle...
  • Page 29: Connection Examples

    PA 1500 Connecting the peripheral Connection examples Fig. 8-3: Connection example...
  • Page 30: Fig. 8-4: Connection To Screw Terminal And Relay Output Boards

    Connecting the peripheral PA 1500 Fig. 8-4: Connection to screw terminal and relay output boards...
  • Page 31: Functions Of The Board

    PA 1500 Functions of the board FUNCTIONS OF THE BOARD Block diagram Fig. 9-1: Block diagram of the PA 1500...
  • Page 32: General Description

    Functions of the board PA 1500 General description The board PA 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 33: Digital Inputs

    PA 1500 Functions of the board Digital inputs The board PA 1500 supplies 16 optically isolated inputs. The inputs comply with the 24 V industry standard (IEC1131-2): logic "1" corresponds to an input voltage > 16 V logic "0" corresponds to an input voltage < 15 V. All the inputs have a common current ground: 0V Ext.
  • Page 34: Example With The Debug Program Under Dos

    Functions of the board PA 1500 Example with the DEBUG program under DOS: c:> DEBUG (CR) - i 390 (CR) (* Read the inputs 1-8 (* All the inputs are on logic "0" *) - i 391 (CR) (* Read the inputs 9-16 (* All the inputs are on logic "0"...
  • Page 35: Counter

    PA 1500 Functions of the board 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 36: Features Of The Outputs

    Functions of the board PA 1500 Fig. 9-3: Protection circuitry for the outputs Features of the outputs Short-circuit current for the 16 outputs Protection against overtemperature: shut down logic. Ech group of 4 outputs is switched off: 1 to 4, 5 to 8, 9 to 12, 13 to 16. The outputs are switched off if the ext.
  • Page 37: Special Functions

    PA 1500 Functions of the board Example with the DEBUG program under DOS C:> DEBUG (CR) - o 392, 01 (CR) (* Set output 1 - o 393, 80 (CR) (* Set output 16 (* Quit the DEBUG program *) Example in Basic OUT &H392, 1 (* Set output 1...
  • Page 38: Jumper

    Functions of the board PA 1500 Possible interrupt sources : Event 1 has occurred (input 1-8), Event 2 has occurred (input 9-14), Counter/Timer 1 has run down Counter/Timer 2 has run down Counter/Timer 3 has run down Watchdog has run down, the outputs are reset, Voltage error (the external voltage supply has dropped below 5 V), Short-circuit error, overtemperature error.
  • Page 39: Timer

    PA 1500 Functions of the board 9.5.2 Timer If the component Z8536 is used as a timer, the frequency is used as a reference. You set it with jumper J1. "Gate" and "trigger" are possible through the inputs. Gate The gate can be driven by software or an input can be set. The polarity of the input can be programmed.
  • Page 40: Standard Software

    Standard software PA 1500 STANDARD SOFTWARE 10.1 Introduction IMPORTANT! Note the following conventions in the text: Function: "i_PA1500_SetBoardAddress" Variable ui_Address Table 10-1 : Type Declaration for Dos and Windows 3.1X Borland C Microsoft C Borland Microsoft Microsoft Pascal Visual Basic Visual Basic Windows VOID...
  • Page 41: Software Functions (Api)

    PA 1500 Standard software 10.2 Software functions (API) 10.2.1 Base address i_PA1500_InitCompiler (..) Syntax: <Return value> = i_PA1500_InitCompiler (BYTE b_CompilerDefine) Parameters: - Input: BYTE b_CompilerDefine The user has to choose the language under Windows in which he/she wants to program - DLL_COMPILER_C: The user programs in C.
  • Page 42: I_Pa1500_Setboardaddress

    Standard software PA 1500 i_PA1500_SetBoardAddress (...) Syntax: <Return value> = i_PA1500_SetBoardAddress (UINT ui_BaseAddress, BYTE b_AccessMode, PBYTE pb_BoardHandle) Parameters: - Input: UINT ui_BaseAddress: Base address of the PA 1500 board BYTE b_AccessMode: PA 1500 access mode - PA1500_8BIT: 8-bit access - PA1500_16BIT: 16-bit access - Output: PBYTE pb_BoardHandle: Handle...
  • Page 43: I_Pa1500_Closeboardhandle

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

    Standard software PA 1500 10.2.2 Interrupt IMPORTANT! This function is only available for C/C++ and Pascal for DOS i_PA1500_SetBoardIntRoutineDos (..) Syntax: <Return value> = i_PA1500_SetBoardIntRoutineDos (BYTE b_BoardHandle, BYTE b_InterruptNbr, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask BYTE b_InputChannelNbr)) Parameters: - Input: BYTE b_BoardHandle Handle of board PA 1500...
  • Page 45: Table 10-3: Interrupt Mask

    PA 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. The user interrupt routine must have the following Syntax: VOID v_FunctionName (BYTE b_BoardHandle,...
  • Page 46: I_Pa1500_Setboardintroutinevbdos

    Standard software PA 1500 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; unsigned char b_InterruptNbr; i_ReturnValue = i_PA1500_SetBoardIntRoutineDos (b_BoardHandle, b_InterruptNbr, v_FunctionName ); Return value: 0: No error -1: The handle parameter of the board is wrong -2: Interrupt already installed -3: Interrupt number error IMPORTANT!
  • Page 47 PA 1500 Standard software First calling (first board): the user interrupt routine is installed interrupts are enabled. If you operate several boards PA 1500 which have to react to interrupts, call up the function as often as you operate boards PA 1500. The variable v_FunctionName is only relevant for the first calling.
  • Page 48: I_Pa1500_Setboardintroutinewin16

    Standard software PA 1500 IMPORTANT! This function is only available for Windows 3.1 and Windows 3.11 i_PA1500_SetBoardIntRoutineWin16 (..) Syntax: <Return value> = i_PA1500_SetBoardIntRoutineWin16 (BYTE b_BoardHandle, BYTE b_InterruptNbr, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE InputChannelNbr)) Parameters: - Input: BYTE b_BoardHandle Handle of board PA 1500 BYTE b_InterruptNbr...
  • Page 49 PA 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 50 Standard software PA 1500 Calling convention: ANSI C : void v_FunctionName (unsigned char b_BoardHandle, unsigned char b_InterruptMask, unsigned char b_InputChannelNbr) i_ReturnValue; unsigned char b_BoardHandle; unsigned char b_InterruptNbr; i_ReturnValue = i_PA1500_SetBoardIntRoutineWin16 (b_BoardHandle, b_InterruptNbr, v_FunctionName ); Return value: 0: No error -1: The handle parameter of the board is wrong -2: Interrupt already installed -3: Interrupt number error...
  • Page 51: I_Pa1500_Setboardintroutinewin32

    PA 1500 Standard software IMPORTANT! This function is only available for 32-Bit Betriebsysteme. i_PA1500_SetBoardIntRoutineWin32 (..) Syntax: <Return value> = i_PA1500_SetBoardIntRoutineWin32 (BYTE b_BoardHandle, BYTE b_InterruptNbr, BYTE b_UserCallingMode, ULONGul_UserSharedMemorySize, VOID ** ppv_UserSharedMemory, VOID v_FunctionName (BYTE b_BoardHandle, BYTE b_InterruptMask, BYTE b_InputChannelNbr, BYTE b_UserCallingMode VOID * pv_UserSharedMemory)) Parameters: - Input:...
  • Page 52 Standard software PA 1500 Task: IMPORTANT: WINDOWS 32-BIT INFORMATION For Windows NT and Windows 95, 4 running rings (ring 0 to ring 3) are available The user application operates in ring 3. This ring does not give access to hardware. VXD and SYS driver operate in ring 0 and give access to hardware.
  • Page 53 PA 1500 Standard software SYNCHRONOUS MODE ADVANTAGE The code of the user interrupt routine is directly called by driver interrupt routine (ring 0). The time between interrupt and the user interrupt routine is reduced. The user cannot debug the user interrupt routine. The user routine cannot call Windows API functions.
  • Page 54 Standard software PA 1500 The variable ul_UserSharedMemorySize indicates the size in byte of the selected user type. A pointer of the variable ppv_UserSharedMemory is given to the user interrupt routine with the variable pv_UserSharedMemory .This is not possible for Visual Basic. The user interrupt routine must have the following Syntax: VOID v_FunctionName (BYTE...
  • Page 55 PA 1500 Standard software IMPORTANT! If you use Visual Basic 4 the following parameters have no meaning. You must used the „i_PA1500_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:...
  • Page 56: I_Pa1500_Testinterrupt

    Standard software PA 1500 Visual Basic 5: v_FunctionName (ByVal i_BoardHandle As Integer, ByVal i _InterruptMask As Integer, ByVal i _InputChannelNbr As Integer, ByVal b_UserCallingMode As Integer, ByVal l_UserSharedMemory As Long) End Sub Dim i_ReturnValue As Integer Dim i_BoardHandle As Integer Dim i_InterruptNbr As Integer i_ReturnValue = i_PA1500_SetBoardIntRoutineWin32 (i_BoardHandle,...
  • Page 57 PA 1500 Standard software Mask Meaning 0000 0001 Event 1 has occurred 0000 0010 Event 2 has occurred 0000 0100 Counter/timer 1 has run down 0000 1000 Counter/timer 2 has run down 0001 0000 Counter 3 has run down 0010 0000 Watchdog has run down 0100 0000 Voltage error...
  • Page 58: I_Pa1500_Resetboardintroutine

    Standard software PA 1500 i_PA1500_ResetBoardIntRoutine (..) Syntax: <Return value> = i_PA1500_ResetBoardIntRoutine (BYTE b_BoardHandle) Parameters: - Input: BYTE b_BoardHandle Handle of board PA 1500 - Output: No output signal has occurred Task: Stops the interrupt management of board PA1500. Deinstalls the interrupt routine if the management of interrupts of all PA 1500 is stopped.
  • Page 59: V_Pa1500_Krnl_Set16Digitaloutputon

    PA 1500 Standard software Example: pl_InputValue = 5555 Hex A voltage is present on the inputs 1, 3, 5, 7, 9, 11, 13 and 15 . A voltage is not present on the inputs 2, 4, 6, 8, 10, 12, 14 and 16. Return value: 0: No error v_PA1500_KRNL_Set16DigitalOutputOn (...)
  • Page 60: Digital Inputs

    Standard software PA 1500 10.2.4 Digital inputs i_PA1500_Read1DigitalInput (...) Syntax : <Return value> = i_PA1500_Read1DigitalInput (BYTE b_BoardHandle, BYTE b_Channel, PBYTE pb_ChannelValue) Parameters: BYTE b_BoardHandle Handle of board PA 1500 BYTE b_Channel The number of the input to be read (1 to 16) PBYTE pb_ChannelValue State of the digital input:...
  • Page 61: I_Pa1500_Read16Digitalinput

    PA 1500 Standard software Example: b_Port = 1 pb_PortValue = 55 Hex A voltage is present on the inputs 1, 3, 5, 7 A voltage is not present on the inputs 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_PA1500_Read16DigitalInput (...)
  • Page 62: Digital Inputs - Events

    Standard software PA 1500 10.2.5 Digital inputs - events i_PA1500_SetInputEventMask (...) Syntax: <Return value> = i_PA1500_SetInputEventMask (BYTE b_BoardHandle, BYTE b_PortNbr, BYTE b_Logik, PCHAR pc_EventMask) Parameters: BYTE b_BoardHandle Handle of board PA 1500 BYTE b_Port Number of the input port to be masked (1 or 2) BYTE b_Logik...
  • Page 63 PA 1500 Standard software Task: An event can be generated for each port. The first event is related to the first 8 inputs (port 1). The second event is related to the next 6 inputs (port 2). An interrupt is generated when one or both events have happened. An event is a change of state (ex.
  • Page 64: I_Pa1500_Startinputevent

    Standard software PA 1500 i_PA1500_StartInputEvent (...) Syntax : <Return value> = i_PA1500_StartInputEvent (BYTE b_BoardHandle, BYTE b_PortNbr) Parameters: BYTE b_BoardHandle Handle of the PA 1500 BYTE b_Port Number of the input port (1 or 2) Task: As soon as the function is called up, it is possible to process an event on one port.
  • Page 65: Digital Outputs

    PA 1500 Standard software 10.2.6 Digital outputs i_PA1500_SetOutputMemoryOn (...) Syntax: <Return value> = i_PA1500_SetOutputMemoryOn (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the PA 1500 Task: Activates the digital output memory. After calling this function, the outputs you have previously activated with the functions "i_PA1500_SetXDigitalOutputOn"...
  • Page 66: I_Pa1500_Set1Digitaloutputoff

    Standard software PA 1500 Task: Sets the output which has been passed with b_Channel. Setting an output means setting an output on high. Switching on the digital output memory (ON) see function "i_PA1500_SetOutputMemoryOn (...) b_Channel= 1 The output 1 is set. The others outputs hold their state. Switching off the digital output memory (OFF) see function "i_PA1500_SetOutputMemoryOff (...) b_Channel= 1...
  • Page 67: I_Pa1500_Set8Digitaloutputon

    PA 1500 Standard software i_PA1500_Set8DigitalOutputOn (...) Syntax: <Return value> = i_PA1500_Set8DigitalOutputOn (BYTE b_BoardHandle, BYTE b_Port, BYTE b_Value) Parameters: BYTE b_BoardHandle Handle of the board PA 1500 BYTE b_Port Number of the output port (1 or 2) BYTE b_Value Output value (0 to 255) Task: Sets one or several outputs of a port.
  • Page 68: I_Pa1500_Set8Digitaloutputoff

    Standard software PA 1500 i_PA1500_Set8DigitalOutputOff (...) Syntax: <Return value> = i_PA1500_Set8DigitalOutputOff (BYTE b_BoardHandle, BYTE b_Port, BYTE b_Value) Parameters: BYTE b_BoardHandle Handle of the PA 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 outputs of one port .
  • Page 69: V_Pa1500_Set16Digitaloutputoff

    PA 1500 Standard software Example: Switching on the digital output memory (ON) see function "i_PA1500_SetOutputMemoryOn (...) l_Value = 5555 Hex The outputs 1, 3, 5, 7, 9, 11, 13, 15 are set. The other outputs hold their state. Switching off the digital output memory (OFF) see function "i_PA1500_SetOutputMemoryOff (...) l_Value = 5555 Hex Outputs 1, 3, 5, 7, 9, 11, 13, 15 are set.Outputs 2, 4, 6, 8, 10, 12, 14, 16 are...
  • Page 70: Timer/Counter And Watchdog

    Standard software PA 1500 Return value: 0: No error -1: The handle parameter of the board is wrong -2: The digital output memory is OFF. Please first use the function "i_PA1500_SetDigitalOutputMemoryOn" 10.2.7 Timer/counter and watchdog i_PA1500_InitTimerCounter1 (...) Syntax: <Return value> = i_PA1500_InitTimerCounter1 (BYTE b_BoardHandle, BYTE b_CounterOrTimerSelect, LONG l_ReloadValue,...
  • Page 71: I_Pa1500_Inittimercounter2

    PA 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 72 Standard software PA 1500 BYTE b_ContinuousOrSingleCycleSelect - PA1500_CONTINUOUS: Each time the counting value or timer value is set to "0", l_ReloadValue is loaded. - PA1500_SINGLE: If the counter or timer value is set to "0", the counter or timer is stopped. BYTE b_HardwareOrSoftwareTriggerSelect - PA1500_HARDWARE_TRIGGER:...
  • Page 73: I_Pa1500_Initwatchdogcounter3

    PA 1500 Standard software Return value: 0: No error -1: The handle-parameter of the board is wrong -2: Wrong selection for counter/timer (PA1500_COUNTER or PA1500_TIMER) -3: Error with the interrupt selection (PA1500_ENABLE or PA1500_DISABLE) -4: User interrupt routine is not installed -5: Cycle parameter is wrong (PA1500_CONTINUOUS or PA1500_SINGLE) -6: Wrong gate parameter...
  • Page 74 Standard software PA 1500 BYTE b_HardwareOrSoftwareGateSelect - PA1500_HARDWARE_GATE: Input 16 is used for the gate. - PA1500_SOFTWARE_GATE: Input 16 has no influence on the gate. BYTE b_InterruptHandling Interrupts can be generated, when the counter or watchdog has run down. With this parameter the user decides to use interrupts or not.
  • Page 75: I_Pa1500_Starttimercounter1

    PA 1500 Standard software i_PA1500_StartTimerCounter1(...) Syntax: <Return value> = i_PA1500_StartTimerCounter1 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the PA 1500 Task: Starts the first counter/timer. Please initialise it previously with the function "i_PA1500_InitTimerCounter1". If the counter is used, it is now ready for counting. If the timer is used, it is now running.
  • Page 76: I_Pa1500_Startcounter3

    Standard software PA 1500 i_PA1500_StartCounter3 (...) Syntax: <Return value> = i_PA1500_StartCounter3 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the PA 1500 Task: Starts the third counter. Please initialise it previously with the function "i_PA1500_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 77: I_Pa1500_Stoptimercounter2

    PA 1500 Standard software i_PA1500_StopTimerCounter2 (...) Syntax: <Return value> = i_PA1500_StopTimerCounter2 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the PA 1500 Task: Stops the second counter/timer. The timer counting 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 78: I_Pa1500_Triggertimercounter2

    Standard software PA 1500 11) i_PA1500_TriggerTimerCounter2 (...) Syntax: <Return value> = i_PA1500_TriggerTimerCounter2 (BYTE b_BoardHandle) Parameters: BYTE b_BoardHandle Handle of the PA 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 79: I_Pa1500_Readtimercounter1

    PA 1500 Standard software 13) i_PA1500_ReadTimerCounter1 (...) Syntax: <Return value> = i_PA1500_ReadTimerCounter1 (BYTE b_BoardHandle, PLONG_ pl_ReadValue) Parameters: BYTE b_BoardHandle Handle of the PA 1500 PLONG pl_ReadValue This parameter has 2 meanings. When the counter/timer is used as a counter, it returns the current value of the counter.
  • Page 80: I_Pa1500_Readcounter3

    Standard software PA 1500 Task: Reads the current value of the second counter/timer if used as a counter or reads the timer status if used as a timer. Counter: the counting value is decremented each time the input changes from low to high. This counting value can be read with this function.

Table of Contents