82
Explicit Message API Functions
Section 4-6
Arguments
Return Value
TRUE is returned if the message registration was cleared successfully.
FALSE is returned if an error occurred. Detailed error information can be read
with the GetLastError() function.
Checking for Client Response Events: SCAN_PeekClientEvent()
Application Range
Online status
Function
Checks whether there is a client response event.
Call Format
BOOL SCAN_PeekClientEvent(DWORD
Handle
, WORD
MacId
,)
Arguments
Return Value
TRUE is returned if there is a client response event in the event queue.
FALSE is returned if an error occurred or there is not a client response event
in the event queue. Detailed error information can be read with the GetLastEr-
ror() function.
Reading the Length of a Client Response: SCAN_GetClientEventLength()
Application Range
Online status
Function
Determines the length of the client response.
Call Format
BOOL SCAN_GetClientEventLength(DWORD
Handle
, WORD
MacId
,
DWORD*
Length
)
Arguments
Return Value
TRUE is returned if the size of the event was read successfully. FALSE is
returned if an error occurred, such as the lack of a client event. Detailed error
information can be read with the GetLastError() function.
Description
Before getting the response message using SCAN_ReceiveClientExplicit(),
set aside a buffer for storing service data that is at least as large as the
response read using this function.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacID
Desired node address
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Node address being checked for response destina-
tion (remote)
Setting range: 0x00 to 0x3F (0 to 63)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Destination (remote) node address for response for
which response size is being read.
DWORD*
Length
Buffer address where response size is received.
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 ...