广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2716|回复: 2

modbus主机用16命令写操作怎么实现

[复制链接]

3

主题

5

帖子

39

积分

新手上路

Rank: 1

积分
39
发表于 2023-1-16 16:58:51 | 显示全部楼层 |阅读模式
本帖最后由 ZDZ52DS 于 2023-1-16 17:00 编辑

屏作为MODBUS主机。当按下保存按钮时把设置的参数发给主板。这个怎么实现
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
发表于 2023-1-21 06:57:51 | 显示全部楼层
U can create variable who is "connected" with modbus register (in Tools-> Protocol and variable settings), next, made switch/keyboard who change value. Atef change this variable will be automatically send via modbus.

In other way u can use C or LUA and here you can send this variable by command
Copz this link to browser, I have no permision to paste  complete link here doc.gz-dc.com/VisualTFT/LUA/14_modbus.html
回复

使用道具 举报

3

主题

5

帖子

39

积分

新手上路

Rank: 1

积分
39
 楼主| 发表于 2023-1-24 21:24:26 | 显示全部楼层
thank you very much @terefere
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-5-16 01:51 , Processed in 0.055214 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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