Changes for page 05 Lua Script
Last modified by Devin Chen on 2025/03/04 14:07
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 6 removed)
Details
- Page properties
-
- Content
-
... ... @@ -38,38 +38,14 @@ 38 38 39 39 The example shows how the to establish the FTP server at WIN10 OS and make the HMI as FTP client. 40 40 41 - ~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]]**41 +Step1: 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]]** 42 42 43 -2 . EnterPC(FTPServer) IPaddressand port number(Default21).43 +Step2: Change the IP, port, username and password in Script_BG.lua, to connect user's own server. 44 44 45 -(% style="text-align:center" %) 46 -[[image:LuaFTPDemoIP&Port.png]] 45 +Step3: Change the filename want to download or upload in Script_BG.lua 47 47 48 - 3.Change thefilenameofthefilethatneeds tobe uploaded.IfunonasOfflineSimulator, the simulateuploadpathof"udisk:1.png"will be "C:\WECON\USB\1.png"onthePC.47 +Step4: Change the string "udisk:smtp.jpg", into the storage path user want to download from FTP server save to HMI, in function Main_download() in Main.lua. 49 49 50 -(% style="text-align:center" %) 51 -[[image:LuaFTPDemoUpload.png]] 52 - 53 -4. Change drive letter of file save path according to drop-down list (There are three option available: Flash, UDisk and SDCard). 54 - 55 -(% style="text-align:center" %) 56 -[[image:LuaFTPDemoDropBox.png]] 57 - 58 -5. Change the filename of the file that needs to be downloaded from PC(Server). 59 - 60 -(% style="text-align:center" %) 61 -[[image:LuaFTPDemoDownload.png]] 62 - 63 -6. Set the default configuration in file "Script_BG.lua" 64 - 65 -(% style="text-align:center" %) 66 -[[image:LuaFTPDemoInitial.png]] 67 - 68 -✎Note: If want to confirm whether it is downloaded successfully, please add a File list object to check in HMI project. If saved path is root path (same to the all three drive), please set the folder as "~/~/". 69 - 70 -(% style="text-align:center" %) 71 -[[image:LuaFTPDemoFilelist.png]] 72 - 73 73 [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/FTP%20Client.zip]] 74 74 75 75 = **8 Telegram Notification** =
- LuaFTPDemoDownload.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -26.2 KB - Content
- LuaFTPDemoDropBox.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -29.2 KB - Content
- LuaFTPDemoFilelist.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -16.5 KB - Content
- LuaFTPDemoIP&Port.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -26.4 KB - Content
- LuaFTPDemoInitial.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -55.5 KB - Content
- LuaFTPDemoUpload.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Hunter - Size
-
... ... @@ -1,1 +1,0 @@ 1 -26.6 KB - Content