![ICP DAS USA PISO-DNM100-D Скачать руководство пользователя страница 99](http://html1.mh-extra.com/html/icp-das-usa/piso-dnm100-d/piso-dnm100-d_user-manual_4476349099.webp)
PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
99
4.4.38 DNM100_AutoScanDevice
z
D
escription:
This function is used to retrieve all devices in DeviceNet network.
Attention! This function will terminate all communications with remote
devices. This function is usually used for developing or debugging
applications.
z
Syntax:
DWORD DNM100_AutoScanDevice (BYTE BoardNo,
WORD *TotalDevices,
BYTE *DesMACID,
BYTE *Type,
WORD *DeviceInputLen,
WORD *DeviceOutputLen)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
TotalDevices:
[output] The data count of all the information.
DestMACID:
[output] The MAC ID of all the slave devices.
Type:
[output] The connection type of all the slave devices.
DeviceInputLen:
[output] The input data length of all the slave devices.
DeviceOutputLen:
[output] The output data length of all the slave
devices.
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