86
Explicit Message API Functions
Section 4-6
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
Along with the notification message, notification of the object class ID of the
server request recipient is sent as WPARAM and notification of the reception
request size (in bytes) is sent as LPARAM.
Clearing a Server Notification Message: SCAN_UnRegServerEvtNotifyMessage()
Application Range
Open status
Function
Clears registration of the notification message for the specified object class
ID.
Call Format
BOOL SCAN_UnRegServerEvtNotifyMessage(DWORD
Handle
, WORD
ClassId
,)
Arguments
Return Value
TRUE is returned if registration of the notification message was cleared suc-
cessfully. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Checking Server Request Events: SCAN_PeekServerEvent()
Application Range
Open status
Function
Checks whether there is a server request event addressed to the specified
class ID.
Call Format
BOOL SCAN_PeekServerEvent(DWORD
Handle
, WORD
ClassId
,)
Arguments
Return Value
TRUE is returned if there is a server request event addressed to the specified
class ID; FALSE is returned if an error occurred or there is not. Detailed error
information can be read with the GetLastError() function.
Reading the Server Request Size: SCAN_GetServerEventLength()
Application Range
Open status
Function
Gets the server request size (in bytes) for the specified object class ID.
Call Format
BOOL SCAN_GetServerEventLength(DWORD
Handle
, WORD
ClassId
,
DWORD*
Length
)
HWND
hWnd
Specifies the window handle to notify.
(No setting = NULL)
UINT
Msg
Notification message
Range: W 0x100 to W
0x7FFF
Type
Name
Contents
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ClassId
Object class ID being cleared
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ClassId
Class ID being checked for event
Содержание DeviceNet 3G8F7-DRM21-E
Страница 1: ...OPERATION MANUAL Cat No W381 E1 02 3G8F7 DRM21 E DeviceNet PCI Board ...
Страница 2: ...3G8F7 DRM21 E DeviceNet PCI Board Operation Manual Revised July 2005 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 29: ...12 Preparation for Operation Section 1 8 ...
Страница 67: ...50 PC Watchdog Timer Management Function Section 3 11 ...
Страница 115: ...98 Maintenance API Functions Section 4 7 ...
Страница 131: ...114 Remote I O Communications Characteristics Section 6 1 ...
Страница 145: ...Index 128 ...
Страница 147: ...130 Revision History ...