
PA 1508 Table of contents
II
7 FUNCTIONS OF THE BOARD.................................................................25
7.1 Output channels...................................................................................................25
7.2 Diagnostic............................................................................................................25
7.3 Watchdog.............................................................................................................26
7.4 Input channels .....................................................................................................27
8 CORRECTION OF FAILURES.................................................................28
8.1 The PC can no longer be initialised. .................................................................28
8.2 The outputs do not react any more....................................................................28
8.3 The inputs deliver wrong values. .......................................................................29
8.4 By operating the board, failures sometimes occur..........................................29
9 STANDARD SOFTWARE ........................................................................30
9.1 Compatibility of the driver...................................................................................30
9.2 Conventions .........................................................................................................30
9.2 DIN 66001- Graphical symbols............................................................................32
9.3 Software functions (API)........................................................................................33
9.3.1 Base address...............................................................................................................33
1) i_PA1508_SetBoardInformation (...)..........................................................................33
2) i_PA1508_CloseBoardHandle (..).............................................................................33
9.3.2 Digital inputs................................................................................................................34
1)i_PA1508_Read1DigitalInput (...)...............................................................................34
2)i_PA1508_Read8DigitalInput (...)...............................................................................34
9.3.3 Digital outputs..............................................................................................................35
1)i_PA1508_SetOutputMemoryOn (...) .........................................................................35
2)i_PA1508_SetOutputMemoryOff (...) .........................................................................35
3)i_PA1508_Set1DigitalOutputOn (...)...........................................................................35
4)i_PA1508_Set1DigitalOutputOff (...)...........................................................................36
5)i_PA1508_Set8DigitalOutputOn (...)...........................................................................36
6)i_PA1508_Set8DigitalOutputOff (...)...........................................................................37
9.3.4 Watchdog...................................................................................................................38
1) i_PA1508_EnableOutputsWatchdog (...)..................................................................38
2) i_PA1508_DisableOuputsWatchdog (..)...................................................................38
3) i_PA1508_RearmOuputsWatchdog.........................................................................39
4) i_PA1508_ReadOuputsWatchdogStatus..................................................................39
9.4 Examples..............................................................................................................40
9.4.1 Digital input channels..................................................................................................40
1) Determining the status of an input chanel ..............................................................40
Example in C.........................................................................................................40
2) Determining the state of 8 input channels ..............................................................41
Example in C.........................................................................................................41