PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
69
4.4.8 DNM100_CheckFirmwareMode
z
Description:
The function is used to obtain the specified PISO-DNM100-D/T if it is
in download mode or firmware mode.
z
Syntax:
DWORD DNM100_CheckFirmwareMode (BYTE BoardNo, BYTE
*Mode)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
Mode:
[output] The address of a variable used to get the PISO-DNM100-
D/T mode. If this value is 0, it indicates that the PISO-DNM100-
D/T is in download mode. If 1, it is in firmware mode. When PISO-
DNM100-D/T is in download mode, it can only update the
firmware and the firmware will not work at the same time.
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_InitError (10007):
The PISO-DNM100 replies erroneously.
DNM100_TimeOut (10023):
The PISO-DNM100 has no response.
DNM100_ModeError (10027):
This board is in download mode, and can’t
be changed to firmware mode.