迪文科技论坛

 找回密码
 立即注册
搜索
查看: 214|回复: 14

[Question]Modbus Read command issue DMG10600C070_03WTC

[复制链接]

0

主题

6

回帖

43

积分

新手上路

Rank: 1

积分
43
发表于 2026-7-14 15:18:42 | 显示全部楼层 |阅读模式
本帖最后由 vas_teplocom 于 2026-7-15 17:10 编辑

Model: DWIN DMG10600C070_03WTC
OS kernel: DWINOS_DWIN_T5L_115200__UART4_ModBus.bin (downloaded from the "DWIN_T5L_115200_UART4_MODBUS_Master" package)
DGUS Tool project: 4 Data Variable Display icons, VP 0x5000-0x5003, type int (2 bytes, signed)

Issue: In Modbus RTU master mode, WRITE instructions work correctly (master writes VP value to slave register, confirmed on slave side), but READ instructions never update the on-screen display, even though the RTU bus traffic confirms the slave is answering correctly.

22_config.bin content (offset 0x1C000):
5A 01 03 01 30 00 00 00 50 00 00 02 00 00 00 00   (read slave reg 0x0002 -> VP 0x5000, unconditional)
5A 01 03 01 30 01 00 00 50 01 00 04 00 00 00 00   (read slave reg 0x0004 -> VP 0x5001, on page 0)
5A 01 06 01 30 04 00 00 50 02 00 01 00 00 00 00   (write VP 0x5002 -> slave reg 0x0001, on VP change)
5A 01 06 01 30 00 00 00 50 03 00 00 00 00 00 00   (write VP 0x5003 -> slave reg 0x0000, unconditional)

RTU sniffer log confirms correct bus traffic for the read instructions, including the slave register value actually changing (0x05 -> 0x0A) when I changed it on the slave side:
Rx: 01 03 00 02 00 01 25 CA
Tx: 01 03 02 00 05 78 47
... (repeats)
Rx: 01 03 00 02 00 01 25 CA
Tx: 01 03 02 00 0A 38 43   <- value updated correctly on the wire after changing it on the slave

So the Modbus RTU exchange itself is 100% correct (verified with an RTU sniffer and by intentionally changing the slave register value mid-test), but the value never appears in the Data Variable Display icon bound to VP 0x5000 on the panel screen.

I also tried:
- Moving the VP addresses to 0xE000-0xE003 instead of 0x5000-0x5003 (icons + 22_config both updated) - no change, read still doesn't show, write still works.
- Add the 5A A5 enable header and starting the 4 instructions directly at 0x1C010 instead of 0x1C000 - no change.
- Reading VP 0x5000 directly via DGUS Tool's Debug/VP monitor tool (5A A5 04 83 50 00 01) while the master polling loop was running - got no response at all from the panel to this debug read request, while the RTU master polling continued normally in the background.

Questions:
1. Is there a known issue with READ instructions (function 0x03) not updating the display VP correctly on this OS kernel, while WRITE instructions (function 0x06) work fine?
2. Could the continuous/unconditional Modbus master polling loop (no configurable interval, instructions run back-to-back nonstop) be blocking or delaying the panel's internal VP-write-to-display refresh step, or blocking response to DGUS debug commands (5A A5) sent over the same UART?
3. Is there a different/updated OS kernel version needed for correct READ instruction handling on this panel model?

Any help identifying why READ instructions don't reach the display, while WRITE instructions work correctly with the same file/instruction format, would be greatly appreciated.
回复

使用道具 举报

0

主题

489

回帖

1万

积分

论坛元老

Rank: 8Rank: 8

积分
16933
发表于 2026-7-14 16:13:24 | 显示全部楼层
本帖最后由 ZVIP7679 于 2026-7-16 14:50 编辑


You can try using the source code on the 2nd floor here. For this link, the 03 instruction is fine. This is the most commonly used instruction.
【Development Materials】T5, T5L Series MODBUS_RTU Protocol Communication OS Source Code - Upgrade Version http://inforum.dwin.com.cn:20080 ... 9&fromuid=54868
(Source: Diven Technology Forum)

Also, when looking at the Modbus communication transmission and reception instructions, the process is fine. In this case, it is possible to check the DGUS engineering interface to see if there are any issues.
人生苦短,及时行乐
回复

使用道具 举报

0

主题

6

回帖

43

积分

新手上路

Rank: 1

积分
43
 楼主| 发表于 2026-7-14 17:20:41 | 显示全部楼层
That didn't work for me
回复

使用道具 举报

0

主题

559

回帖

3191

积分

论坛元老

Rank: 8Rank: 8

积分
3191
发表于 2026-7-15 08:52:00 | 显示全部楼层
本帖最后由 紫狐 于 2026-7-16 14:55 编辑

The kernel file DWINOS_DWIN_T5L_115200__UART4_ModBus.bin is fully functional. Display the value at address 0x5000 using data variables, and send images to check the control properties and screen display.
回复

使用道具 举报

0

主题

6

回帖

43

积分

新手上路

Rank: 1

积分
43
 楼主| 发表于 2026-7-15 14:09:28 | 显示全部楼层
紫狐 发表于 2026-7-15 08:52
这个DWINOS_DWIN_T5L_115200__UART4_ModBus.bin内核是可以正常使用的。用数据变量显示看下0x5000地址的值, ...

Here are all screenshots. As you can see my variables that have VP 0x5002 and 0x5003 shown on display when I change values but my display dont show real values from slave.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

559

回帖

3191

积分

论坛元老

Rank: 8Rank: 8

积分
3191
发表于 2026-7-15 18:19:51 | 显示全部楼层
本帖最后由 紫狐 于 2026-7-16 14:55 编辑

Could you send the burning file?
回复

使用道具 举报

0

主题

6

回帖

43

积分

新手上路

Rank: 1

积分
43
 楼主| 发表于 2026-7-15 18:42:30 | 显示全部楼层
紫狐 发表于 2026-7-15 18:19
烧录文件方便发下吗?

This is what you asked for?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

559

回帖

3191

积分

论坛元老

Rank: 8Rank: 8

积分
3191
发表于 2026-7-15 21:28:37 | 显示全部楼层
本帖最后由 紫狐 于 2026-7-16 14:56 编辑
vas_teplocom 发表于 2026-7-15 18:42
This is what you asked for?

Yes, I'll test it out
回复

使用道具 举报

0

主题

559

回帖

3191

积分

论坛元老

Rank: 8Rank: 8

积分
3191
发表于 2026-7-16 08:40:53 | 显示全部楼层
本帖最后由 紫狐 于 2026-7-16 14:55 编辑

The program is fine; check the hardware wiring to see if the RX4 of the screen is properly connected.
回复

使用道具 举报

0

主题

6

回帖

43

积分

新手上路

Rank: 1

积分
43
 楼主| 发表于 6 天前 | 显示全部楼层
紫狐 发表于 2026-7-16 08:40
The program is fine; check the hardware wiring to see if the RX4 of the screen is properly connected ...

I use RX2/TX2 to upload files to the display, and RX4/TX4 to verify functionality. As far as I can tell, everything is connected correctly.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2026-7-26 12:31 , Processed in 0.036306 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表