Changes for page 05 Lua Script

Last modified by Joe on 2026/03/27 14:47

From version 8.1
edited by Hunter
on 2026/02/25 18:55
Change comment: There is no comment for this version
To version 10.1
edited by Joe
on 2026/03/27 14:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Hunter
1 +XWiki.joe
Content
... ... @@ -48,29 +48,32 @@
48 48  (% style="text-align:center" %)
49 49  [[image:dZyxVCtWDz.png]]
50 50  
51 -~1. About how to set up the FTP server in Windows PC: **[[Build an FTP Site on IIS>>https://docs.microsoft.com/en-us/iis/publish/using-the-ftp-service/scenario-build-an-ftp-site-on-iis]] **,** [[How to set up and manage an FTP server on Windows 10>>https://www.windowscentral.com/how-set-and-manage-ftp-server-windows-10]]**
51 +(% class="box infomessage" %)
52 +(((
53 +Note:About how to set up the FTP server in Windows PC: **[[How to set up and manage an FTP server on Windows 10>>https://www.windowscentral.com/how-set-and-manage-ftp-server-windows-10]]**
54 +)))
52 52  
53 -2. Enter PC (FTP Server) IP address and port number (Default 21).
56 +1.Enter PC (FTP Server) IP address and port number (Default 21).
54 54  
55 55  (% style="text-align:center" %)
56 56  [[image:LuaFTPDemoIP&Port.png]]
57 57  
58 -3. Change the filename of the file that needs to be uploaded. If run on as Offline Simulator, the simulate upload path of "udisk:1.png" will be "C:\WECON\USB\1.png" on the PC.
61 +2.Change the filename of the file that needs to be uploaded. If run on as Offline Simulator, the simulate upload path of "udisk:1.png" will be "C:\WECON\USB\1.png" on the PC.
59 59  
60 60  (% style="text-align:center" %)
61 61  [[image:LuaFTPDemoUpload.png]]
62 62  
63 -4. Change drive letter of file save path according to drop-down list (There are three option available: Flash, UDisk and SDCard).
66 +3.Change drive letter of file save path according to drop-down list (There are three option available: Flash, UDisk and SDCard).
64 64  
65 65  (% style="text-align:center" %)
66 66  [[image:LuaFTPDemoDropBox.png]]
67 67  
68 -5. Change the filename of the file that needs to be downloaded from PC(Server).
71 +4.Change the filename of the file that needs to be downloaded from PC(Server).
69 69  
70 70  (% style="text-align:center" %)
71 71  [[image:LuaFTPDemoDownload.png]]
72 72  
73 -6. Set the default configuration in file "Script_BG.lua"
76 +5.Set the default configuration in file "Script_BG.lua"
74 74  
75 75  (% style="text-align:center" %)
76 76  [[image:LuaFTPDemoInitial.png]]
... ... @@ -717,3 +717,8 @@
717 717  {{/warning}}
718 718  
719 719  [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/GoogleSheet.zip]]
723 +
724 += 29 Graphics Drawing =
725 +
726 +The example shows drawing a snow and a star on the HMI screen with drawing function from Lua Script.Please note that  use PI version 10.6 or higher to open the project.
727 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Graphics%20Drawing.pi2]]