Changes for page 05 Lua Script

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

From version 34.1
edited by Hunter
on 2023/04/26 19:00
Change comment: There is no comment for this version
To version 37.1
edited by Hunter
on 2023/07/07 17:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -276,9 +276,23 @@
276 276  (% style="text-align:center" %)
277 277  [[image:csvGenerateServerPath.png]]
278 278  
279 -The table drawing and csv file generation is mainly using the following function to implement, the customized data is argument tab, and csv file storage path in HMI is "udisk:weather1.csv":
279 +The csv file generation is mainly using the following function to implement, the customized data is argument tab, and csv file storage path in HMI is "udisk:weather1.csv":
280 280  
281 281  (% style="text-align:center" %)
282 282  [[image:csvGenerateLuaCode.png]]
283 283  
284 -
284 +The table drawing is mainly using the following function to implement:
285 +
286 +(% style="text-align:center" %)
287 +[[image:csvLuaTableDrawing.png]]
288 +
289 += 15 **String customized length word-wrapped** =
290 +
291 +The example shows automatically line break for long string content according to user input length.
292 +
293 +The following are some demonstrated strings from offline simulator:
294 +
295 +(% style="text-align:center" %)
296 +[[image:WordWrapDisplayResult.png]]
297 +
298 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/CRLF.zip]]
WordWrapDisplayResult.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +24.4 KB
Content
csvLuaTableDrawing.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +43.9 KB
Content