Addi-Data ADDINUM PA 1500 Technical Description page 54

Digital input and output board
Table of Contents

Advertisement

Standard software
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
v_FunctionName
b_BoardHandle
b_InterruptMask
b_InputChannelNbr
b_UserCallingMode
pv_UserSharedMemory
Mask
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, b_InputChannelNbr, b_UserCallingMode,
pv_UserSharedMemory.
54
(BYTE
b_BoardHandle,
BYTE
b_InterruptMask,
BYTE
b_InputChannelNbr,
BYTE
b_UserCallingMode,
VOID *
pv_UserSharedMemory)
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.
Is not used. But stays for compatibility
reasons.
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
Pointer of the user shared memory.
Meaning
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
PA 1500

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