Project

General

Profile

Feature #3116

申电云-龙阳与卷帘门modbustcpc_ex接口增加DO遥控以16功能码发送且回答0x8x错误码跳过继续执行其余扫描

Added by yufeng wu over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
08/02/2023
Due date:
08/02/2023
% Done:

0%

Estimated time:

Description

20230802 22:00申电云-龙阳换乘站现场调试卷帘门,采用libmodbus_tcpc_ex.so协议,需要采用DO遥控以16功能码发一个AO遥控命令
要求当晚完成接口对接调试
libmodbus_tcpc_ex.so协议接口增加DO遥控以16功能码发送且回答0x8x错误码跳过继续执行其余扫描
debian10 QTISCS3.1.1数字底座


Files

modbus_tcpex.cpp (82.9 KB) modbus_tcpex.cpp yufeng wu, 08/03/2023 09:14 AM
libmodbus_tcpc_ex.so (380 KB) libmodbus_tcpc_ex.so yufeng wu, 08/03/2023 09:14 AM
卷帘门接口csv_20230802-2200.jpg (756 KB) 卷帘门接口csv_20230802-2200.jpg yufeng wu, 08/03/2023 09:16 AM
libmodbus_tcpc_ex.so (380 KB) libmodbus_tcpc_ex.so yufeng wu, 08/04/2023 01:14 PM

History

#1

Updated by yufeng wu over 1 year ago


由于没权限上传到svn代码服务器,暂时上传到附件中。

#2

Updated by yufeng wu over 1 year ago

  • Status changed from New to Resolved

卷帘门设备,发现polling扫描间隔不能太小(当前设置800ms),否则不回答数据,
且扫描未提供服务的地址,设备不回答任何报文码。地址%MW3用来16功能码发AO遥控,但是此地址不支持读取。

#3

Updated by yufeng wu over 1 year ago

20230803 16功能码遥控0值,有问题,现场修改
uint8 CModbusTcpc::Operate_16(uint16 Address, uint16 num, uint16 pValue, uint8 func) {
if (num > 125 || pValue NULL) {
PrintLog(LOG_ERROR, ">>>>>> Wrong Func_16 parameter");
return 0;
}
if (num > 125 || pValue NULL)改为if (num > 125)

Also available in: Atom PDF