Changes for page 05 Lua Script

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

From version 42.1
edited by Hunter
on 2023/07/31 17:34
Change comment: There is no comment for this version
To version 40.1
edited by Hunter
on 2023/07/28 10:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -528,12 +528,3 @@
528 528  The example shows how to read the csv file into HMI, and then display as table.
529 529  
530 530  [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/csvRead.zip]]
531 -
532 -The core code is from file readcsv.lua, and file path is set as Sheet_2023_06_13_15_29_45.csv at the root path for USB.
533 -
534 -1) The reading content is a two-dimensional table, can use the table index to lacate the specify data cell;
535 -
536 -2) Remember to change csv separator in the second parameter from function csv_csvToTable according to user's need, this demo is using **semicolon** as separator;
537 -
538 -(% style="text-align:center" %)
539 -[[image:CSVreadwithsemicolon.png]]
CSVreadwithsemicolon.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -51.3 KB
Content
luacsvfilereadcontent.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -46.5 KB
Content