Standard software
PA 1500
Visual Basic 5:
Sub
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,
i_InterruptNbr,
PA1500_ASYNCHRONOUS_MODE,
0,
0,
AddressOf v_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:
No input signal has occurred.
- Output:
PBYTE pb_BoardHandle
Handle of the board
PA 1500
which has
generated the interrupt,
PBYTE pb_InterruptMaske
Error mask of the event which has
generated the interrupt. Several errors
can simultaneously occur.
56
Содержание ADDINUM PA 1500
Страница 4: ......
Страница 12: ...Handling of the board PA 1500 3 HANDLING OF THE BOARD Fig 3 1 Wrong handling Fig 3 2 Correct handling 12 ...
Страница 16: ...Technical data PA 1500 4 4 Component scheme Fig 4 1 Component scheme 16 ...
Страница 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 ...