![Omron DeviceNet 3G8F7-DRM21-E Скачать руководство пользователя страница 106](http://html.mh-extra.com/html/omron/devicenet-3g8f7-drm21-e/devicenet-3g8f7-drm21-e_operation-manual_743611106.webp)
89
Maintenance API Functions
Section 4-7
Arguments
Return Value
TRUE is returned if the send event registration was completed successfully.
FALSE is returned if an error occurred. Detailed error information can be read
with the GetLastError() function.
Description
The message ID, service code, service data size, and buffer address where
the service data must be saved in the SERVER_RES structure. The data cor-
responding to the service to be sent as the response (service data) must be
stored in the specified service data storage buffer.
Make sure that the value saved as MessageID in the SERVER_REQ structure
when SCAN_ReceiveServerExplicit() is completed is saved as the message
ID for the SERVER_RES structure.
4-7
Maintenance API Functions
4-7-1
Status Service API Functions
Reading Network Status: SCAN_GetNetworkStatus()
Application Range
Open status
Function
Gets the network (CAN) status.
Call Format
BOOL SCAN_GetNetworkStatus(DWORD
Handle
, WORD *
Status
)
Arguments
Return Value
TRUE is returned if the specified Board’s network status was read success-
fully. FALSE is returned if an error occurred. Detailed error information can be
read with the GetLastError() function.
Description
The following table shows the location and meaning of the network status
flags. The flags are contained within 16 bits.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
SERVER_RES*
Msg
Buffer address where the response message is
stored
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD *
Status
Buffer address for receiving the status.
Bit
Code
Meaning
0
B00
CAN active
1
B01
Network frame detected
2 to 7
---
Not used
8
B08
Network power supply error
9
B09
Transmission timeout error
10
B10
Reception overwrite occurred
11
B11
Reception overload warning
12
B12
Transmission overload warning
13
---
Not used
14
B14
Bus off error
15
---
Not used
Содержание 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 ...