![ICP DAS USA PISO-DNM100-D Скачать руководство пользователя страница 114](http://html1.mh-extra.com/html/icp-das-usa/piso-dnm100-d/piso-dnm100-d_user-manual_4476349114.webp)
PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
114
4.4.53 DNM100_ConfigCOS
z
D
escription:
This function is used to configure the Change_Of_State connection
of the specific device. After configuring the connection, the specific slave
device would send out the I/O data when the I/O status changed. This
configuration data will be saved into EEPROM on the PISO-DNM100.
z
Syntax:
DWORD DNM100_ConfigCOS (BYTE BoardNo, BYTE DesMACID,
WORD DeviceInputLen,
WORD DeviceOutputLen,
WORD EPR)
z
Parameter:
BoardNo:
[input] PISO-DNM100 board number (0~15)
DestMACID:
[input] The remote slave device’s MAC ID (0~63)
DeviceInputLen:
[input] The input data length of the slave device.
DeviceOutputLen:
[input] The output data length of the slave device.
EPR:
[input] 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