PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
88
4.4.27 DNM100_SetBreakOption
z
Description:
This function will change the re-connection mechanism when the slave
device is broken.
z
Syntax:
DWORD DNM100_SetBreakOption (BYTE BoardNo, BYTE DesMACID,
BYTE Option)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
DestMACID:
[input] The remote slave device’s MAC ID (0~63)
Option:
[input] The option value when connection is broken.
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 devices into ScanList.
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