PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
89
4.4.28 DNM100_GetBreakOption
z
Description:
This function will get the option value when slave device connection is
broken.
z
Syntax:
DWORD DNM100_GetBreakOption (BYTE BoardNo, BYTE DesMACID)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
DestMACID:
[input] The remote slave device’s MAC ID (0~63)
z
Return:
The option value of the slave device.
0x00 : No re-connection mechanism.
0x01 : Re-Connect when I/O connection is broken. If the slave device
doesn't response or response error. The master (PISO-DNM100)
will re-connect it. If the device was shut down then power on, the
master will not re-connect it.
0x02 : Re-Connect when device was power on again.
0x03 : The combination of the 0x01 and 0x02. This is the default value
when the users add new device into ScanList.
z
Error 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