<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>广州大彩串口屏论坛_大彩开发者交流论坛 - LUA脚本</title>
    <link>https://bbs.gz-dc.com/forum.php?mod=forumdisplay&amp;fid=68</link>
    <description>Latest 20 threads of LUA脚本</description>
    <copyright>Copyright(C) 广州大彩串口屏论坛_大彩开发者交流论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 16 Oct 2026 23:30:15 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://bbs.gz-dc.com/static/image/common/logo_88_31.gif</url>
      <title>广州大彩串口屏论坛_大彩开发者交流论坛</title>
      <link>https://bbs.gz-dc.com/</link>
    </image>
    <item>
      <title>使用了自由串口协议,程序里使用send_ctrl_msg无法修改灵敏度</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2615</link>
      <description><![CDATA[local clr_cmd = { 0x8A, 0x5A, 0xA5, 0x07, 0xFF, 0xFC, 0xFF, 0xFF }
clr_cmd[0] = 0xEE
send_ctrl_msg(clr_cmd)
使用的是TFT软件,以上修改灵敏度无响应,但是在界面上通过按钮发送给内部可以响应,请问怎么在lua程序里实现修改默认灵敏度,不然每块屏烧写后都需要设置灵 ...]]></description>
      <category>LUA脚本</category>
      <author>大锤八十</author>
      <pubDate>Wed, 23 Sep 2026 06:00:03 +0000</pubDate>
    </item>
    <item>
      <title>TFT软件，怎么通过LUA给内部发指令修改文本控件的前景色</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2610</link>
      <description><![CDATA[指令助手里有可以通过串口发送的方式，现需要实现在LUA里发送给内部来修改前景色，请问该怎么实现呢]]></description>
      <category>LUA脚本</category>
      <author>大锤八十</author>
<enclosure url="https://bbs.gz-dc.com/data/attachment/forum/202609/11/204818wu6r4ue08wueh8u6.png" length="40483" type="image/jpeg" />      <pubDate>Fri, 11 Sep 2026 12:49:01 +0000</pubDate>
    </item>
    <item>
      <title>【求助】LUA滑块刻度动态修改，真机set_control_position无效</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2601</link>
      <description><![CDATA[硬件：大彩EW系列串口屏，分辨率320*480

软件版本：VisualTFT VER3.0.0.1249

需求：做滑块控件的自定义刻度，有7个刻度文本控件，需要根据通道量程（电压/位移两种量程切换），在Lua脚本中完成两件事：
1、动态修改每个刻度文本的显示数值；
2、动态修改每个刻度文本 ...]]></description>
      <category>LUA脚本</category>
      <author>flyingwings99</author>
      <pubDate>Wed, 26 Aug 2026 01:02:55 +0000</pubDate>
    </item>
    <item>
      <title>record隐藏</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2596</link>
      <description><![CDATA[代码在我的附件里
我希望当record控件8显示的时候，点击其他非控件8区域，控件8要隐藏起来，这个可以实现吗？
还有个问题，这个选中效果可以添加图片效果吗，比如选中选项1，有个打勾图标

]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Thu, 13 Aug 2026 08:01:24 +0000</pubDate>
    </item>
    <item>
      <title>record 如何关闭掉</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2595</link>
      <description><![CDATA[我用record 做了个菜单，点击按钮1的时候，弹出这个菜单，
如何点击到画面其他地方的时候，如果这个record 显示的话，就把这个record 隐藏起来，
点击到record是执行定义的操作]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Tue, 11 Aug 2026 08:14:43 +0000</pubDate>
    </item>
    <item>
      <title>历史控件的Y轴刻度可以显示定点数吗？</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2594</link>
      <description><![CDATA[RT，设置1000显示为100.0，上传的数据是x10定点数的，需要定点数显示刻度]]></description>
      <category>LUA脚本</category>
      <author>aple0807</author>
      <pubDate>Tue, 11 Aug 2026 06:00:51 +0000</pubDate>
    </item>
    <item>
      <title>文本控件Text_Display多语言显示</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2589</link>
      <description><![CDATA[我用的是Text_Display，然后set_text() 
字体用的是编码是UTF-8 字体文件是tahoma.ttf(因为还要显示其他国家的语言，所以选择这个字体文件)
然后读取字段是写在lua文件里的韩语字段，例如 국제 언어 但是文本控件显示不出来或者乱码，但是我切回默认字体库就是正常显示 ...]]></description>
      <category>LUA脚本</category>
      <author>zaq</author>
      <pubDate>Thu, 06 Aug 2026 07:54:04 +0000</pubDate>
    </item>
    <item>
      <title>文本控件与变量绑定与LUA脚本</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2588</link>
      <description><![CDATA[启用默认协议，创建一个变量，并绑定到文本控件上，下载到屏幕里发现文本控件不显示值。在lua脚本里自增这个变量，文本控件还是不显示

但是虚拟串口屏显示的没问题

 ...]]></description>
      <category>LUA脚本</category>
      <author>ChenZ929</author>
<enclosure url="https://bbs.gz-dc.com/data/attachment/forum/202608/04/141734fxx6ux625x1xu6xa.png" length="617558" type="image/jpeg" />      <pubDate>Tue, 04 Aug 2026 06:18:01 +0000</pubDate>
    </item>
    <item>
      <title>串口屏不能向Flash写入超长数据</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2579</link>
      <description><![CDATA[我尝试写入一个超长的字符串，写入后立即读取是正常的；如果循环写入多次后再进行读取，结果为nil；
1.写入的数据长度是否有限制？
2.有没有写入超长数据的解决方案？
3.读取的数据长度是否有限制？
 ...]]></description>
      <category>LUA脚本</category>
      <author>CoCo</author>
      <pubDate>Sat, 25 Jul 2026 07:33:15 +0000</pubDate>
    </item>
    <item>
      <title>历史曲线控件的起始值和终止值可以动态修改吗？</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2578</link>
      <description><![CDATA[如题：]]></description>
      <category>LUA脚本</category>
      <author>intheroad</author>
      <pubDate>Sat, 25 Jul 2026 06:31:41 +0000</pubDate>
    </item>
    <item>
      <title>子画面能否用按钮控件实现滑动的效果</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2577</link>
      <description><![CDATA[型号DC48854M050
子画面可以通过set_screen_range配置之后，实现手势滑动的效果，通过按钮控件，调用set_value可以实现子画面的切换，但是这个时候切换是没有效果的，能否实现点击按钮也可以实现滑动切换的效果
 ...]]></description>
      <category>LUA脚本</category>
      <author>Hony</author>
      <pubDate>Sat, 25 Jul 2026 04:24:01 +0000</pubDate>
    </item>
    <item>
      <title>仪表控件的起始值和终止值(最小值和最大值)可以动态修改...</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2576</link>
      <description><![CDATA[如题
可以用LUA动态修改吗？]]></description>
      <category>LUA脚本</category>
      <author>intheroad</author>
      <pubDate>Sat, 25 Jul 2026 01:18:53 +0000</pubDate>
    </item>
    <item>
      <title>用lua写的脚本读从机的modbus报文，显示报文是空</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2570</link>
      <description><![CDATA[用lua写的脚本读从机的modbus报文，虚拟屏用slave设的报文输入符合预期，再测串口modbus报文也是正常发，但是实体屏幕和串口连起来我用ttl抓取报错信息就显示的是我读取的03报文是nil空，这是什么问题
 ...]]></description>
      <category>LUA脚本</category>
      <author>hsj6</author>
      <pubDate>Tue, 21 Jul 2026 01:52:20 +0000</pubDate>
    </item>
    <item>
      <title>物联型怎么通过图标控件四种状态通过MODBUS下发四种数据</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2560</link>
      <description><![CDATA[1 现在又一个控件按钮 有四帧，现在添加了一个按钮控件，每次按下切换一帧，怎么把他和modbus连接上，每帧代表一种状态下发]]></description>
      <category>LUA脚本</category>
      <author>15909207257</author>
      <pubDate>Thu, 09 Jul 2026 06:44:11 +0000</pubDate>
    </item>
    <item>
      <title>lua串口接收问题</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2548</link>
      <description><![CDATA[目前问题是PC端给屏幕发送数据，有回应后50ms再发送，就相当于间隔50ms给屏幕发送数据，屏幕需要回应。on_uart_recv_data和uart_send_data配合使用。50ms是没有响应的，需要150ms才有响应。function on_uart_recv_data(packer)    local addr, func = packer[0], packer ...]]></description>
      <category>LUA脚本</category>
      <author>1944677010</author>
      <pubDate>Thu, 25 Jun 2026 08:20:41 +0000</pubDate>
    </item>
    <item>
      <title>tcp连接问题</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2537</link>
      <description><![CDATA[tcp客户端与服务器连接后，如果服务端因为物理连接断开，后恢复后，触摸屏设置成客户端的情况下，触摸屏不会自动连接服务端，这种情况要怎么解决？是否可以在程序中判断连接断开后，重新进行连接，这样是否影响性能？
 ...]]></description>
      <category>LUA脚本</category>
      <author>lxz6503</author>
      <pubDate>Fri, 12 Jun 2026 10:08:03 +0000</pubDate>
    </item>
    <item>
      <title>TCP服务端ip设置问题</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2536</link>
      <description><![CDATA[21.5寸 DC19108X215，触摸屏为客户端，网络调试助手模拟服务端，服务端的iP和端口号可以随意设置吗？我目前触摸屏的iP可以随意设置，但是服务器的ip只有192.168.1.50，端口号5050，触摸屏ip只有设置成192.168.1.X，就可以连接，X设置成任意地址都可以，我是用大彩api设 ...]]></description>
      <category>LUA脚本</category>
      <author>lxz6503</author>
      <pubDate>Thu, 11 Jun 2026 13:21:20 +0000</pubDate>
    </item>
    <item>
      <title>get_network_state()问题</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2531</link>
      <description><![CDATA[21.5寸 DC19108X215，触摸屏为客户端，网络调试助手模拟服务端，可以成功连接，但是get_network_state()的返回值一直是0，我想实现的功能是：监测客户端和服务端的“连接状态”]]></description>
      <category>LUA脚本</category>
      <author>lxz6503</author>
      <pubDate>Sat, 06 Jun 2026 15:24:41 +0000</pubDate>
    </item>
    <item>
      <title>程序从1个从站转换为2个从站，画面中的地址要重新配置...</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2526</link>
      <description><![CDATA[如题，原本的程序按1个屏带一个PLC设计，现在想同样的屏控制2个PLC，想通过LUA站号切换来实现。请问切换为2个从站的情况下，画面中的地址需要全部重新设置吗？能不能实现，切换站号后，画面中的地址全部自动转为从站2的地址？
 ...]]></description>
      <category>LUA脚本</category>
      <author>walker12</author>
      <pubDate>Tue, 02 Jun 2026 00:21:27 +0000</pubDate>
    </item>
    <item>
      <title>Lua读取bin文件大小</title>
      <link>https://bbs.gz-dc.com/forum.php?mod=viewthread&amp;tid=2520</link>
      <description><![CDATA[目前使用M系列 lua脚本读写bin文件，发现读取8K的可以用，读取大几十k的就卡住了，是有限制吗，如果用缓存读取文件，缓存大小有限制吗]]></description>
      <category>LUA脚本</category>
      <author>Dnggitgn</author>
      <pubDate>Fri, 15 May 2026 09:09:47 +0000</pubDate>
    </item>
  </channel>
</rss>