PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
94
4.4.33 DNM100_GetDeviceInfo
z
Description:
This function will get the specific device's information in the ScanList.
z
Syntax:
DWORD DNM100_GetDeviceInfo (BYTE BoardNo, BYTE DesMACID,
WORD *ListCount,
BYTE *ConnectionTypeList,
WORD *InputDataLenList,
WORD *OutputDataLenList,
WORD *EPRList)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
DestMACID:
[input] The remote slave device’s MAC ID (0~63)
ListCount:
[output] The data count of all the information.
ConnectionTypeList:
[output] The connection type of the slave device.
InputDataLenList:
[output] The input data length of the slave device.
OutputDataLenList:
[output] The output data length of the slave device.
EPRList:
[output] The EPR value of the slave device.
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