background image

 

 

Product information 

This manual contains the technical installation and important instructions for correct commissioning 
and usage, as well as production information according to the current status before printing. 
The content of this manual and the technical product data may be changed without prior notice.  
ADDI-DATA GmbH reserves the right to make changes to the technical data and the materials 
included herein. 

Warranty and liability 

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 
installation and/or commissioning of the board by the user or improper use, for example, if the board is 
operated despite faulty safety and protection devices, or if notes in the operating instructions regarding 
transport, storage, installation, commissioning, operation, thresholds, etc. are not taken into 
consideration. Liability is further excluded if the operator changes the board or the source code files 
without authorisation and/or if the operator is guilty of not monitoring the permanent operational 
capability of working parts and this has led to damage. 

Copyright 

This manual, which is intended for the operator and its staff only, is protected by copyright. 
Duplication of the information contained in the operating instructions and of any other product 
information, or disclosure of this information for use by third parties, is not permitted, unless this right 
has been granted by the product licence issued. Non-compliance with this could lead to civil and 
criminal proceedings. 

ADDI-DATA software product licence 

Please read this licence carefully before using the standard software. The customer is only granted the 
right to use this software if he/she agrees with the conditions of this licence. 
The software must only be used to set up the ADDI-DATA boards. 
Reproduction of the software is forbidden (except for back-up and for exchange of faulty data 
carriers). Disassembly, decompilation, decryption and reverse engineering of the software are 
forbidden. This licence and the software may be transferred to a third party if this party has acquired a 
board by purchase, has agreed to all the conditions in this licence contract and the original owner does 
not keep any copies of the software. 

Trademarks 

-

 

ADDI-DATA is a registered trademark of ADDI-DATA GmbH. 

-

 

Turbo Pascal, Delphi, Borland C, Borland C++ are registered trademarks of Borland Insight 
Company. 

-

 

Microsoft C, Visual C++, Windows XP, 98, Windows 2000, Windows 95, Windows NT, 
EmbeddedNT and MS DOS are registered trademarks of Microsoft Corporation. 

-

 

LabVIEW, LabWindows/CVI, DasyLab, Diadem are registered trademarks of National Instruments 
Corp. 

-

 

CompactPCI is a registered trademark of PCI Industrial Computer Manufacturers Group. 

-

 

VxWorks is a registered trademark of Wind River Systems.

 

 

-

 

 

Содержание ADDINUM PA 1500

Страница 1: ...N 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 ...

Страница 2: ...f only is protected by copyright Duplication of the information contained in the operating instructions and of any other product information or disclosure of this information for use by third parties is not permitted unless this right has been granted by the product licence issued Non compliance with this could lead to civil and criminal proceedings ADDI DATA software product licence Please read t...

Страница 3: ...fety precautions yellow leaflet If this leaflet is not with the documentation please contact us and ask for it Observe the instructions of the manual Make sure that you do not forget or skip any step We are not liable for damages resulting from a wrong use of the board Used symbols i IMPORTANT designates hints and other useful information WARNING It designates a possibly dangerous situation If the...

Страница 4: ......

Страница 5: ...y 18 5 1 2 Boards settings 18 5 1 3 Setting the base address through DIP switsches 19 Windows NT 19 Windows XP 2000 9x 19 Decoding the base address 6 INSTALLATION OF THE BOARD 20 20 6 1 Opening the PC 20 6 2 Selecting a free slot 21 6 3 Plugging the board into the slot 21 6 4 Closing the PC 7 SOFTWARE 22 22 7 1 Board registration with ADDIREG 23 7 1 1 Installing a new board 26 7 1 2 Registering a ...

Страница 6: ... functions 37 Jumper 37 9 4 Interrupt 38 Jumper 38 9 5 Counter timer 38 9 5 1 Counter 39 9 5 2 Timer 39 Gate 39 Trigger 39 Jumper 39 Data 10 STANDARD SOFTWARE 40 40 10 1 Introduction 41 10 2 Software functions API 41 10 2 1 Base address 1 i_PA1500_InitCompiler 41 2 i_PA1500_SetBoardAddress 42 3 i_PA1500_CloseBoardHandle 43 44 10 2 2 Interrupt 1 i_PA1500_SetBoardIntRoutineDos 44 2 i_PA1500_SetBoard...

Страница 7: ...ff 66 5 i_PA1500_Set8DigitalOutputOn 67 6 i_PA1500_Set8DigitalOutputOff 68 7 v_PA1500_Set16DigitalOutputOn 68 8 v_PA1500_Set16DigitalOutputOff 69 70 10 2 7 Timer counter and watchdog 1 i_PA1500_InitTimerCounter1 70 2 i_PA1500_InitTimerCounter2 71 3 i_PA1500_InitWatchdogCounter3 73 4 i_PA1500_StartTimerCounter1 75 5 i_PA1500_StartTimerCounter2 75 6 i_PA1500_StartCounter3 76 7 i_PA1500_StopTimerCoun...

Страница 8: ...program example 25 Fig 7 2 Selecting a new board 28 Fig 8 1 37 pin SUB D male connector 28 Fig 8 2 Connection principle 29 Fig 8 3 Connection example 30 Fig 8 4 Connection to screw terminal and relay output boards 31 Fig 9 1 Block diagram of the PA 1500 33 Fig 9 2 Protection circuitry for the inputs 36 Fig 9 3 Protection circuitry for the outputs 38 Fig 9 4 Selection of the interrupt line through ...

Страница 9: ...he screw terminal board PX 901 and the relay board PX 8500 allow to connect the 24 V supply voltage through a shielded cable The use of the board PA 1500 in combination with external screw terminal or relay boards is to occur in a closed switch cabinet The installation is to be effected competently Check the shielding capacity of the PC housing and of the cable prior to putting the device into ope...

Страница 10: ...ppliance configuration is at your disposal on request The use of the board in a PC could change the PC features regarding noise emission and immunity Increased noise emission or decreased noise immunity could result in the system not being conform anymore The installation of the board PA 1500 in sites lying under risk of explosion is excluded The board is not to be used as electrical equipment as ...

Страница 11: ...in electronics are entitled to perform the following works installation use maintenance 2 2 Personal protection Consider the country specific regulations about the prevention of accidents electrical and mechanical installations radio interference suppression 11 ...

Страница 12: ...Handling of the board PA 1500 3 HANDLING OF THE BOARD Fig 3 1 Wrong handling Fig 3 2 Correct handling 12 ...

Страница 13: ...Burst 4 kV 2 kV Conducted radio interferences 10 V 10 V 4 2 Physical set up of the board The board is assembled on a 4 layer printed circuit card Dimensions 156 mm 99 mm Weight approx 150 g Installation in XT AT slot V Connection to the peripheral 37 pin SUB D male connector Accessories 1 Standard cable ST010 S ST011 S Screw terminal board PX 901 Relay output board PX 8500 cascadable with cable ST...

Страница 14: ...PC 229 mA 24 V digital inputs Input type common ground in accordance with IEC1131 2 Number of inputs 16 Interruptible inputs 14 Interrupt lines IRQ 3 5 for XT IRQ 10 11 12 14 15 for AT Nominal voltage 24 VDC Input current at nominal voltage 6 mA Logic input levels max 30 V current 9 mA typ UH 1 UH min 19 V current 3 5 mA typ UL max 14 V current 0 75 mA typ 2 UL min 0 V current 0 mA typ Signal dela...

Страница 15: ...N resistance 0 4 R max Switch ON time at 24 V Rload 500 mA 120 µs typ Switch OFF time at 24 V Rload 500 mA 40 µs typ Overtemperature 170 C switches off the components 4 outputs Temperature hysteresis 20 C Safety Optical isolation DIN VDE 0411 100 1000 V from the PC to the external peripheral Shut down logic When the 24 V ext voltage supply drops below 5 V the outputs are switched off Diagnostic th...

Страница 16: ...Technical data PA 1500 4 4 Component scheme Fig 4 1 Component scheme 16 ...

Страница 17: ... of the board 5 SETTINGS OF THE BOARD i IMPORTANT Do observe the safety precautions yellow leaflet 5 1 Settings at delivery 5 1 1 Jumper location at delivery Fig 5 1 Jumper location on the board settings at delivery 17 ...

Страница 18: ... to 0 All positions are set at delivery J2 A to J2 C J3 Selection of the data bus width J3 set 16 bit data bus access on the addresses Base 0 Base 2 J3 open 8 bit data bus access on the addresses Base 0 Base 2 J4 Selection of an interrupt line to the PC bus No interrupt line is selected at delivery i IMPORTANT IRQ 10 is almost always free on the PC 5 1 3 Setting the base address through DIP switch...

Страница 19: ...t is then free If it is occupied by another device you have to set a new base address through the block of DIP switches of the board Decoding the base address The base address is decoded in steps of each time 8 I O addresses The base address can be selected between 0100H and 0FFFFH within the PC I O address space In table 6 1 the address 0390H is decoded Settings at delivery Table 5 1 Decoding tab...

Страница 20: ...n your PC as described in the manual of the PC manufacturer 6 2 Selecting a free slot Insert the board in a free ISA XT AT slot Fig 6 1 PCI 5V slot 32 bit Remove the back cover of the selected slot according to the instructions of the PC manufacturer Keep the back cover You will need it if you remove the board Discharge yourself from electrostatic charges Take the board out of its protective blist...

Страница 21: ...o 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 Fig 6 4 Fastening the board at the back cover Tighten all the loosen screws 6 4 Closing the PC Close your PC as described in the manual of the PC manufacturer 21 ...

Страница 22: ...navigation pane Bookmarks of Acrobat Reader The board is supplied with a CD ROM CD1 containing the driver and software samples for Windows NT 4 0 and Windows XP 2000 98 the ADDIREG registration program for Windows NT 4 0 and Windows XP 2000 98 7 1 Board registration with ADDIREG The ADDIREG registration program is a 32 bit program for Windows NT XP 2000 NT 4 0 9x The user can register all hardware...

Страница 23: ... of the board For PCI boards the base address is allocated through BIOS i WICHTIG 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 the message NO is displayed 23 ...

Страница 24: ...ion of the used base addresses for the board Select a name through the pull down menu The corresponding address range is displayed in the field below Base address Base address In this box you can select the base addresses of your PC board The free base addresses are listed The used base addresses do not appear in this box Interrupt name Description of the used IRQ lines for the board Select a name...

Страница 25: ...et before you save it Cancel Reactivates the former parameters of the saved configuration Default Sets the standard parameters of the board 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 activ...

Страница 26: ...Insert Select the wished board Click on OK The default address interrupt and the other parameters are automatically set in the lower fields The parameters are listed in the lower fields If the parameters are not automatically set by the BIOS you can change them Click on the wished scroll function s and choose a new value Activate your selection with a click Once the wished configuration is set cli...

Страница 27: ...right and if the board is present If the test has been successfully completed you can quit the ADDIREG program The board is initialised with the set parameters and can now be operated In case the registration data is to be modified it is necessary to boot your PC again A message asks you to do so When it is not necessary you can quit the ADDIREG program and directly begin with your application 7 2...

Страница 28: ...Connecting the peripheral PA 1500 8 CONNECTING THE PERIPHERAL 8 1 Connector pin assignment Fig 8 1 37 pin SUB D male connector Fig 8 2 Connection principle 28 ...

Страница 29: ...PA 1500 Connecting the peripheral 8 2 Connection examples Fig 8 3 Connection example 29 ...

Страница 30: ...Connecting the peripheral PA 1500 Fig 8 4 Connection to screw terminal and relay output boards 30 ...

Страница 31: ...PA 1500 Functions of the board 9 FUNCTIONS OF THE BOARD 9 1 Block diagram Fig 9 1 Block diagram of the PA 1500 31 ...

Страница 32: ...r wide supply voltage range the outputs are switched off if the voltage drops below the limit value 5 V The base address is set with a 10 pin block of DIP switches and jumper J2 Decoding occurs on the 64 KB I O address range of the PC The board requires 8 I O addresses within the I O address range of the PC Available interrupt lines IRQ3 IRQ5 on XT IRQ10 IRQ11 IRQ12 IRQ14 IRQ15 on AT The 16 bit da...

Страница 33: ...he 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 LC filters and optical couplers protect the system bus from noise emitted by the peripheral The effects of inductive and capacitive noise are thus reduced The board requires no initialisation to read the 24 V digital information After successful power ON reset data...

Страница 34: ...e address is available in the I O address range Base 0 for the inputs 1 16 Example in ASSEMBLER MOV DX 390 Base address on 0390H IN AX DX Read the inputs 1 to 16 Example in Pascal Function Read_Inputs w_Base WORD WORD begin Read the inputs in the 16 bit data bus width w_Basis 390 Read_Inputs portw w_Base end 9 3 2 Special input functions Interrupt The inputs 1 to 14 can generate an interrupt Input...

Страница 35: ...ith 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 The outputs switch the 24V ext outside to the load One end of the load is connected with the ground of 0V EXT outputs All outputs have a common ground 0V ext outputs pin 29 of the 37 pin SUB D male connector WARNING Do you use all outputs with...

Страница 36: ...erature voltage drop or watchdog Transorb diodes C filters and optical couplers filter noise from the peripheral to the system bus Thus the effects of inductive and capacitive noise are reduced Possible noise emissions are also reduced by C filters The board requires no initialisation to output the 24V digital information You can program the outputs immediately after successful power ON reset Stat...

Страница 37: ... WORD begin Set the outputs the 16 bit data bus width w_Base 392 portw w_Base 2 w_Value end Special functions Different diagnostic bits are set if a short circuit has happened on an output if a component has overtemperature or if the external voltage supply drops These error data are available through an interrupt routine See API functions i_PA1500_SetBoardIntRoutineXX i_Pa1500_ResetBoardIntRoutin...

Страница 38: ... several inputs if a logic has been defined between the inputs Running down if the counter changes from 1 Æ 0 Jumper Select a free interrupt line on the PC bus with jumper field J4 See 5 1 2 Fig 9 4 Selection of the interrupt line through jumper field J4 In this example Jumper J4 C is set IRQ10 is selected 9 5 Counter timer On the board PA 1500 three 16 bit counters timers are available in the com...

Страница 39: ...ising the counters timers Starting the counters timers Stopping the counters timers Reading the counting value of the counters timers The counter timer 3 has a special function Watchdog Timer The function Watchdog Timer allows to supervise the software or PC The principle is The counter timer 3 is programmed as a not re loadable timer The timer is started The outputs are reset when the timer has r...

Страница 40: ...YTE Unsigned char unsigned char var byte integer integer PINT int int var integer integer integer PUINT Unsigned int unsigned int var word long long PCHAR char char var string string string Table 10 2 Type Declaration for Windows 95 NT Borland C Microsoft C Borland Microsoft Microsoft Pascal Visual Basic Visual Basic Dos Windows VOID void void pointer any BYTE unsigned char unsigned char byte inte...

Страница 41: ...s DLL_COMPILER_VB_5 The user programs in Visual Basic 5 for Windows NT or Windows 95 DLL_COMPILER_PASCAL The user programs in Pascal or Delphi DLL_LABVIEW The user programs in Labview Output No output signal has occurred Task If you want to use the DLL functions choose the language which you want to program in This function must be the first to be called up i IMPORTANT This function is only availa...

Страница 42: ...YTE pb_BoardHandle Handle1 of board PA 1500 to use the functions Task Checks if the board PA 1500 is present and stores the base address A handle is returned to the user which allows to use the following functions Handles allow to operate several boards Return value 0 No error 1 Not available base address 2 Error in the access mode parameter 3 Board not present 4 No handle is available for the boa...

Страница 43: ...le BYTEb_BoardHandle Parameters Input BYTE b_BoardHandle Handle of board PA 1500 Output No output signal has occurred Task Releases the board handle Blocks the access to the board Calling convention ANSI C int i_ReturnValue unsigned char b_BoardHandle i_ReturnValue i_PA1500_CloseBoardHandle b_BoardHandle Return value 0 No error 1 The handle parameter of the board is wrong 43 ...

Страница 44: ... signal has occurred Task This function must be called up for each PA 1500 on which an interrupt action is to be enabled 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...

Страница 45: ...le Handle of the PA 1500 which has generated the interrupt b_InterruptMask Mask of the events which have generated the interrupt b_InputChannelNbrIf an interrupt is generated with a Mask 0000 0001 and if you use the OR PRIORITY logic this variable gives the input number which have generated the interrupt Table 10 3 Interrupt mask Mask Meaning 0000 0001 Event 1 has occurred 0000 0010 Event 2 has oc...

Страница 46: ...nterrupt already installed 3 Interrupt number error i IMPORTANT This function is only available for Visual Basic DOS 2 i_PA1500_SetBoardIntRoutineVBDos Syntax Return value i_PA1500_SetBoardIntRoutineVBDos BYTE b_BoardHandle BYTE b_InterruptNbr Parameters Input BYTE b_BoardHandle Handle of board PA 1500 BYTE b_InterruptNbr PA 1500 interrupt number 3 5 10 11 12 14 or 15 Output No output signal has o...

Страница 47: ...ng functions ON UEVENT GOSUB xxxxxxxxx of Visual Basic for DOS and i_PA1500_TestInterrupt This function tests the interrupt of the PA 1500 It is used for obtaining the values of b_BoardHandle b_InterruptMask and b_InputChannelNbr 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_InputChanne...

Страница 48: ...ut No output signal has occurred Task This function must be called up for each PA 1500 on which an interrupt action is to be enabled 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 f...

Страница 49: ...ave generated the interrupt b_InputChannelNbr If an interrupt is generated with a Mask 0000 0001 and if you use the OR PRIORITY logic this variable gives the input number which have generated the interrupt 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 000...

Страница 50: ...ask unsigned char b_InputChannelNbr int 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 50 ...

Страница 51: ...500 BYTE b_InterruptNbr PA 1500 interrupt number 3 5 10 11 12 14 or 15 BYTE b_UserCallingMode PA1500_SYNCHRONOUS_MODE The user routine is directly called by driver interrupt routine PA1500_ASYNCHRONOUS_MODE The user routine is called by driver interrupt thread VOID v_FunctionName Name of the user interrupt routine ULONG ul_UserSharedMemorySize Determines the size in bytes of the user shared memory...

Страница 52: ... as you operate boards PA 1500 The variable v_FunctionName is only relevant for the first calling From the second call of the function next board interrupts are allowed Interrupt The user interrupt routine is called up by the system when an interrupt is generated An interrupt is generated when the counter timer has run down an event is generated the watchdog has run down The following errors are p...

Страница 53: ...ic ASYNCHRONOUS MODE The user can debug the user interrupt routine provided he has not programmed in Visual Basic 5 ADVANTAGE The user routine can call Windows API functions The user routine can call functions which give access to global variables The user routine can call all PA 1500 driver functions with the following extension i_PA1500_XXXX RESTRICTION The code of the user interrupt routine is ...

Страница 54: ...t b_InterruptMask Mask of the events which have generated the interrupt b_InputChannelNbr Is not used But stays for compatibility reasons b_UserCallingMode PA1500_SYNCHRONOUS_MODE The user routine is directly called by driver interrupt routine PA1500_ASYNCHRONOUS_MODE The user routine is called by driver interrupt thread pv_UserSharedMemory Pointer of the user shared memory Mask Meaning 0000 0001 ...

Страница 55: ...ion ANSI C typedef struct str_UserStruct str_UserStruct ps_UserSharedMemory void v_FunctionName unsigned char b_BoardHandle unsigned char b_InterruptMask unsigned char b_InputChannelNbr unsigned char b_UserCallingMode void pv_UserSharedMemory str_UserStruct ps_InterruptSharedMemory ps_InterruptSharedMemory str_UserStruct pv_UserSharedMemory int i_ReturnValue unsigned char b_BoardHandle unsigned ch...

Страница 56: ..._FunctionName Return value 0 No error 1 The handle parameter of the board is wrong 2 Interrupt already installed 3 Interrupt number error 4 Calling mode selection of the user interrupt routine is wrong 5 No memory avaible for the user shared memory 5 i_PA1500_TestInterrupt Syntax Return value i_PA1500_TestInterrupt PBYTE pb_BoardHandle PBYTE pb_InterruptMaske PBYTE pb_ChannelNbr Parameters Input N...

Страница 57: ...E pb_ChannelNbr Is not used But stays for compatibility reasons Task Checks if a board PA 1500 has generated an interrupt If yes the function returns the board handle and the interrupt source i IMPORTANT This function is only available in Visual Basic Dos and Windows Calling convention ANSI C unsigned char b_BoardHandle unsigned char b_InterruptMaske unsigned char b_ChannelNbr int i_Irq Irq i_PA15...

Страница 58: ...ed Calling convention ANSI C unsigned char b_BoardHandle Irq i_PA1500_ResetBoardIntRoutine b_BoardHandle Return value 0 No error 1 Handle parameter of the board is wrong 2 Interrupt routine is not installed 10 2 3 Kernel functions 1 i_PA1500_KRNL_Read16DigitalInput Syntax Return value i_PA1500_KRNL_Read16DigitalInput UINT ui_BaseAddress PLONG pl_InputValue Parameters Input UINT ui_BaseAddress PA 1...

Страница 59: ...t16DigitalOutputOn Syntax Return value i_PA1500_KRNL_Set16DigitalOutputOn UINT ui_BaseAddress LONG l_Value Parameters Input UINT ui_BaseAddress PA 1500 base address LONG l_Value Output value 0 to 65535 Output No output signal has occurred Task Sets one or several outputs of board PA 1500 Example l_Value 5555 Hex The outputs 1 3 5 7 9 11 13 15 are set The outputs 2 4 6 8 10 12 14 16 are reset Retur...

Страница 60: ...read 1 to 16 A value is returned with the variable pb_ChannelValue 0 low or 1 high Return value 0 No error 1 The handle parameter of the board is wrong 2 The input number is not between 1 and 16 2 i_PA1500_Read8DigitalInput Syntax Return value i_PA1500_Read8DigitalInput BYTE b_BoardHandle BYTE b_Port PBYTE pb_PortValue Parameters BYTE b_BoardHandle Handle of the PA 1500 BYTE b_Port Number of the i...

Страница 61: ...nput Syntax Return value i_PA1500_Read16DigitalInput BYTE b_BoardHandle PLONG_ pl_InputValue Parameters BYTE b_BoardHandle Handle of the PA 1500 PLONG pl_InputValue State of the digital inputs of both ports 0 to 65535 Task Indicates the state of both ports Reads the 16 inputs at once Example pl_InputValue 5555 Hex A voltage is present on the inputs 1 3 5 7 9 11 13 15 A voltage is not present on th...

Страница 62: ... a OR logic PCHAR pc_EventMask This 8 digit character string port 1 and 6 digit character string port 2 define the mask of the event Each digit indicates the state of the input The state is identified by one of the following characters X This input is not used for event 0 The input must be on 0 1 The input must be on 1 2 The input reacts to a falling edge 3 The input reacts to a rising edge 4 The ...

Страница 63: ...nt is generated when the inputs 2 4 and 5 are on 0 when the inputs 1 3 and 6 are on 1 and when a rising edge has been detected at input 8 T Input 8 Input 7 Input 6 Input 5 Input 4 Input 3 Input 2 Input 1 Event Return value 0 No error 1 The handle parameter of the board is wrong 2 The parametered port number is wrong parameter 1 or 2 3 Error with the logic parameter b_Logik has not the expected val...

Страница 64: ... Handle parameter of the board is wrong 2 The parametered port number is wrong 3 Event has not been initialised with the function i_PA1500_SetInputEvent 3 i_PA1500_StopInputEvent Syntax Return value i_PA1500_StopInputEvent 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 Once the function is called up it is not p...

Страница 65: ... the function i_PA1500_SetXDigitalOutputOff Return value 0 No error 1 Handle parameter of the board is wrong 2 i_PA1500_SetOutputMemoryOff Syntax Return value i_PA1500_SetOutputMemoryOff BYTE b_BoardHandle Parameters BYTE b_BoardHandle Handle of the PA 1500 Task Deactivates the digital output memory Return value 0 No error 1 Handle parameter of the board is wrong 3 i_PA1500_Set1DigitalOutputOn Syn...

Страница 66: ... No error 1 Handle parameter of the board is wrong 2 Input number is not between 1 and 16 4 i_PA1500_Set1DigitalOutputOff Syntax Return value i_PA1500_Set1DigitalOutputOff BYTE b_BoardHandle BYTE b_Channel Parameters BYTE b_BoardHandle Handle of the PA 1500 BYTE b_Channel Number of the output you want to reset 1 to 16 Task Resets the output you have passed with b_Channel Resetting an output means ...

Страница 67: ...t means setting on high If you have switched off the digital output memory OFF the inputs are set to 0 Example Switching on the digital output memory ON see function i_PA1500_SetOutputMemoryOn b_Port 1 b_Value 55 Hex The outputs 1 3 5 7 are set The other outputs hold their state Switching off the digital output memory OFF see function i_PA1500_SetOutputMemoryOff b_Port 1 b_Value 55 Hex The outputs...

Страница 68: ... outputs 1 3 5 7 are reset i IMPORTANT You can use this function only if the digital output memory is ON See function i_PA1500_SetOutputMemoryOn Return value 0 No error 1 The handle parameter of the board is wrong 2 The port number is not 1 or 2 3 The digital output memory is OFF Please first use the function i_PA1500_SetDigitalOutputMemoryOn 7 v_PA1500_Set16DigitalOutputOn Syntax Return value v_P...

Страница 69: ...puts 2 4 6 8 10 12 14 16 are reset Return value 0 No error 1 The handle parameter of the board is wrong 8 v_PA1500_Set16DigitalOutputOff Syntax Return value v_PA1500_Set16DigitalOutputOff BYTE b_BoardHandle LONG_ l_Value Parameters BYTE b_BoardHandle Handle of the PA 1500 LONG l_Value Output value 0 to 65535 Task Resets one or several outputs of board PA 1500 Example l_Value 5555 Hex The outputs 1...

Страница 70: ...timer is used as a timer PA1500_COUNTER The first counter timer is used as a counter LONG l_ReloadValue This parameter has 2 meanings If the counter timer is used as a counter it loads the start value of the counter If the counter timer is used as a timer it loads the divider factor for the output BYTE b_ContinuousOrSingleCycleSelect PA1500_CONTINUOUS Each time the counting value or timer value is...

Страница 71: ... not installed 5 Cycle parameter is wrong PA1500_CONTINUOUS or PA1500_SINGLE 2 i_PA1500_InitTimerCounter2 Syntax Return value i_PA1500_InitTimerCounter2 BYTE b_BoardHandle BYTE b_CounterOrTimerSelect LONG_ l_ReloadValue BYTE b_ContinuousOrSingleCycleSelect BYTE b_HardwareOrSoftwareTriggerSelect BYTE b_HardwareOrSoftwareGateSelect BYTE b_InterruptHandling Parameters BYTE b_BoardHandle Handle of the...

Страница 72: ... high the counter timer is started If this input is on low the counter timer is stopped PA1500_SOFTWARE_GATE Input 13 has no influence on the gate BYTE b_InterruptHandling Interrupts can be generated when the counter has run down or when the timer output is on high With this parameter the user decides if interrupts are used or not PA1500_ENABLE Interrupts are enabled PA1500_DISABLE Interrupts are ...

Страница 73: ...elect LONG l_ReloadValue BYTE b_ContinuousOrSingleCycleSelect BYTE b_HardwareOrSoftwareGateSelect BYTE b_InterruptHandling Parameters BYTE b_BoardHandle Handle of the PA 1500 BYTE b_WatchdogOrCounterSelect Selects the mode of the third counter watchdog PA1500_WATCHDOG The third counter watchdog is used as a watchdog PA1500_COUNTER The third counter watchdog is used as a counter LONG l_ReloadValue ...

Страница 74: ...u have to decide if the counter must execute once or several times the counting operation if the counter watchdog is used as a counter or a watchdog if an interrupt must be generated when the counter watchdog has run down and if the external gate is used if it is used as a counter Return value 0 No error 1 The handle parameter of the board is wrong 2 The parameter for selecting the counter or the ...

Страница 75: ...e board is wrong 2 The counter or timer has not been initialised Please use function i_PA1500_InitTimerCounter1 5 i_PA1500_StartTimerCounter2 Syntax Return value i_PA1500_StartTimerCounter2 BYTE b_BoardHandle Parameters BYTE b_BoardHandle Handle of the PA 1500 Task Starts the second counter timer Please initialise it previously with the function i_PA1500_InitTimerCounter2 If the counter is used it...

Страница 76: ... been initialised as a watchdog i_PA1500_InitWatchdogCounter3 7 i_PA1500_StopTimerCounter1 Syntax Return value i_PA1500_StopTimerCounter1 BYTE b_BoardHandle Parameters BYTE b_BoardHandle Handle of the PA 1500 Task Stops the first counter timer The timer counting value is freezed It has the same influence as a hardware gate Input Clock Timer Software Gate i_PA1500_StartTimerCounter1 i_PA1500_StartT...

Страница 77: ...b_BoardHandle Handle der PA 1500 Task Stops the third counter The counting value is freezed Return value 0 No error 1 The handle parameter of the board is wrong 2 The counter has not been initialised 3 The counter watchdog has been initialised as a wachdog Please use function i_PA1500_InitWatchdogCounter3 10 i_PA1500_TriggerTimerCounter1 Syntax Return value i_PA1500_TriggerTimerCounter1 BYTE b_Boa...

Страница 78: ...ng 2 The counter or timer has not been initialised Please use function i_PA1500_InitTimerCounter2 12 i_PA 1500_TriggerCounter3 Syntax Return value i_PA1500_TriggerCounter3 BYTE b_BoardHandle Parameters BYTE b_BoardHandle Handle of the PA 1500 Task Triggers the third counter The start value is loaded in the counter Return value 0 No error 1 The handle parameter of the board is wrong 2 The counter h...

Страница 79: ...h time the input changes from low to high This counting value can be read with this function Timer the timer value is decremented each time the input clock changes from low to high This timer value can be read with this function Return value 0 No error 1 The handle parameter of the board is wrong 2 The counter or timer has not been initialised Please use function i_PA1500_InitTimerCounter1 14 i_PA...

Страница 80: ...e use function i_PA1500_InitTimerCounter2 15 i_PA1500_ReadCounter3 Syntax Return value i_PA1500_ReadCounter3 BYTE b_BoardHandle PLONG pl_ReadValue Parameters BYTE b_BoardHandle Handle of the PA 1500 PLONG_ pl_ReadValue When the counter watchdog is used as a counter it returns the current value of the counter Task Reads the current value of the third counter watchdog if used as a counter Counter th...

Отзывы: