![ICP DAS USA PISO-DNM100-D Скачать руководство пользователя страница 91](http://html1.mh-extra.com/html/icp-das-usa/piso-dnm100-d/piso-dnm100-d_user-manual_4476349091.webp)
PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
91
4.4.30 DNM100_GetLastDeviceError
z
Description:
This function will get the last error device in the network
z
Syntax:
DWORD DNM100_GetLastDeviceError (BYTE BoardNo,
BYTE *Err_MACID,
BYTE *Err_Type,
BYTE *Err_Code)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
Err_MACID:
[output] The error slave device's MAC ID. If there is no error
device, the value is FF (hex).
Err_Type:
[output] The connection type of the error slave device. If there
is no error device, the value is FF (hex).
Err_Code:
[output] The error code. If there is no error device, the value is
FF (hex). Please refer to Table 4.2.13 ~ Table 4.2.17
z
Return:
DNM100_NoError (0):
OK
DNM100_DriverError (10001):
Kernel driver is not opened.
DNM100_ActiveBoardError (10002):
This board can not be activated or
kernel driver can not be found.
DNM100_BoardNumberError (10003):
BoardNo exceeds the current
scanned total board number.
DNM100_TimeOut (10023):
The PISO-DNM100 has no response.
Others:
Please refer to Table 4.2.2 ~ Table 4.2.9