61
Board Management API Functions
Section 4-3
Arguments
Return Value
TRUE is returned if registration of the notification message was completed
successfully. FALSE is returned if an error occurred such as null values for
both the thread ID and window handle. Detailed error information can be read
with the GetLastError() function.
Description
Specifies the thread ID or window handle for the event notification.
The interrupt status and notification message are sent to WPARAM and the
notification message is sent to LPARAM.
Clearing an Interrupt Notification Message: SCAN_UnRegIrqEvtNotifyMessage()
Application Range
Open status
Function
Clears the notification message.
Call Format
BOOL SCAN_UnRegIrqEvtNotifyMessage(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the registered notification message was cleared success-
fully. FALSE is returned if an error occurred. Detailed error information can be
read with the GetLastError() function.
Reading Interrupt Event: SCAN_PeekIrqEvent()
Application Range
Open status
Function
Reads the cause of the interrupt that occurred in the specified Board.
Call Format
BOOL SCAN_PeekIrqEvent(DWORD
Handle
, BYTE *
IrqStatus
)
Arguments
Return Value
TRUE is returned if the status value was read successfully from the specified
Board. FALSE is returned if an error occurred. Detailed error information can
be read with the GetLastError() function.
Description
To check the interrupt status of a specified Board, use the SCAN_
SetIrqControl() function and specify notification to the computer of the
interrupt that occurred in the Board.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
DWORD
ThreadId
The thread ID to notify.
(No setting = NULL)
HWND
hWnd
Specifies the window handle to notify.
(No setting = NULL)
UNIT
Msg
Notification message
Range: W 0x100 to W 0x7FFF
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
BYTE*
IrqStatus
Buffer address for obtaining the cause of the inter-
rupt.
(The data format is the same as it is in
SCAN_GetIrqControl().)
Summary of Contents for DeviceNet 3G8F7-DRM21-E
Page 1: ...OPERATION MANUAL Cat No W381 E1 02 3G8F7 DRM21 E DeviceNet PCI Board ...
Page 2: ...3G8F7 DRM21 E DeviceNet PCI Board Operation Manual Revised July 2005 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 29: ...12 Preparation for Operation Section 1 8 ...
Page 67: ...50 PC Watchdog Timer Management Function Section 3 11 ...
Page 115: ...98 Maintenance API Functions Section 4 7 ...
Page 131: ...114 Remote I O Communications Characteristics Section 6 1 ...
Page 145: ...Index 128 ...
Page 147: ...130 Revision History ...