0 工具准备
1.SOEM-master-1.4.0源码
1 ecx_siifind函数解析
在SOEM主站获取从站的SII信息时,经常可以看到这个ecx_siifind函数的身影,该函数内容如下:
/** Find SII section header in slave EEPROM.在从站eeprom中寻找段头
* @param[in] context = context struct 句柄
* @param[in] slave = slave number 从站序号
* @param[in] cat = section category SII类别段的段头名
* @return byte address of section at section length entry, if not available then 0 SII类别段的长度地址,如果未找到,返回0
*/
int16 ecx_siifind(ecx_contextt *context