Addi-Data ADDINUM PA 1500 Technical Description page 49

Digital input and output board
Table of Contents

Advertisement

PA 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.
The user interrupt routine must have the following Syntax:
VOID v_FunctionName
v_FunctionName
b_BoardHandle
b_InterruptMas
b_InputChannelNbr
0000 0001
0000 0010
0000 0100
0000 1000
0001 0000
0010 0000
0100 0000
1000 0000
The user can give another name for v_FunctionName, b_BoardHandle,
b_InterruptMask,and b_InputChannelNbr.
IMPORTANT!
i
If you use Visual Basic for Windows the following parameters have no
meaning. You must use the „i_PA1500_TestInterrupt" function.
VOID
v_FunctionName
(BYTE b_BoardHandle,
BYTE b_InterruptMask,
BYTE b_InputChannelNbr)
Name of the user interrupt routine
Handle of the PA 1500 which has
generated the interrupt
Mask of the events which have
generated the interrupt.
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
Event 1 has occurred
Event 2 has occurred
Counter/timer 1 has run down
Counter/timer 2 has run down
Counter 3 has run down
Watchdog has run down
Voltage error
Short-circuit error
(BYTE b_BoardHandle,
BYTE b_InterruptMask,
BYTE b_InputChannelNbr)
Standard software
Meaning
49

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

Table of Contents