Changes for page 05 Lua Script

Last modified by Devin Chen on 2025/03/04 14:07

From version 26.1
edited by Hunter
on 2023/03/01 12:05
Change comment: There is no comment for this version
To version 31.2
edited by Hunter
on 2023/04/26 12:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -239,4 +239,24 @@
239 239  local newVal = shiftHigh|shiftLow
240 240  {{/code}}
241 241  
242 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/byteswitch.zip]]
243 +
244 += **12 Week time setting** =
245 +
246 +The example shows how to use day time to control functions:
247 +
248 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/week%20time.zip]]
249 +
250 += **13 MQTT Multi-link** =
251 +
252 +The example shows use mqtt realize multi-machine function:
253 +
254 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/MQTT%20Multi-link.zip]]
255 +
256 += **14 CSV File Generation** =
257 +
258 +The example shows convert the lua table data into csv string, then output as a file:
259 +
260 +~1. Click "Create Table" to draw the lua table into HMI
261 +
242 242