Search found 2 matches

by HenryLi9988
Sat Jun 08, 2024 2:18 pm
Forum: ESP IoT Solution 中文讨论版
Topic: modbus master 轮询的数据字典 灵活设置
Replies: 0
Views: 4720

modbus master 轮询的数据字典 灵活设置

最近要设计一个modbus master 轮询的方案, 采用官网例程进行修改, 官方有提到可以从SD卡或MQTT来源进行初始化, 如果从NVS获取怎么设计呢? During initialization of the Modbus stack, a pointer to the Data Dictionary (called descriptor) must be provided as the parameter of the function below. mbc_master_set_descriptor(): Initialization of master descriptor. I...
by HenryLi9988
Fri Jun 07, 2024 7:19 am
Forum: ESP-SkaiNet 中文讨论版
Topic: modbus 主站 Data (Object) Dictionary 动态调整的问题
Replies: 0
Views: 5605

modbus 主站 Data (Object) Dictionary 动态调整的问题

const mb_parameter_descriptor_t device_parameters[] = { {0, STR("TEST_HOLD"), STR("XH"), 1 , MB_PARAM_HOLDING, 0 ,20, HOLD_OFFSET(test_regs), PARAM_TYPE_U16, 40, OPTS(0, 0, 0), PAR_PERMS_READ_WRITE_TRIGGER}, {1, STR("TEST_HOLD1"), STR("XH"), 2, MB_PARAM_HOLDING, 0,20, HOLD_OFFSET(test_regs), PARAM_T...