Search found 3 matches
- Thu May 16, 2024 12:47 pm
- Forum: ESP-IDF
- Topic: Read multiple registers in modbus RTU
- Replies: 1
- Views: 995
Read multiple registers in modbus RTU
I am reading 4 registers in Modbus and am successful in receiving the values but I am only being able to print the first 2 register values Please help. #include "modbus_master.h" static const char *TAG = "MASTER_TEST"; float flow_valu = 0; // Enumeration of modbus device addresses accessed by master...
- Thu May 16, 2024 12:02 pm
- Forum: ESP-IDF
- Topic: read multiple registers in modbus RTU
- Replies: 1
- Views: 943
read multiple registers in modbus RTU
I want to read 4 register values together , I am successful in getting a response. But I am only able to read the first 2 register values. This is how I have defined my values { CID_INP_DATA_0, STR("active_energy"), STR(" "), MB_DEVICE_ADDR1, MB_PARAM_INPUT, 01127, 4, INPUT_OFFSET(data_block1), PARA...
- Tue Apr 16, 2024 12:14 pm
- Forum: ESP-IDF
- Topic: Modbus Cid error
- Replies: 1
- Views: 884
Modbus Cid error
Hi, I am working with ESP 32 and 5.1.2 IDF , I am Communicating with 3 separate Mod slaves in RTU mode. I am successfully reading first 7 values CID 0 to 6 and CID 8. But I am having trouble reading CID 7 & 9. I (25838) MASTER_TEST: Characteristic #0 value = 40F3DB19 read successful. I (26288) MASTE...