Changes for page 05 Lua Script
Last modified by Devin Chen on 2025/03/04 14:07
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. joe1 +XWiki.Molly - Content
-
... ... @@ -2,19 +2,19 @@ 2 2 3 3 The example shows how to do the Addition, Subtraction, Multiplication and Division for HMI internal address. 4 4 5 -[[Download link>>https:// drive.google.com/file/d/1ji5RbQJzUn_rQ2couX062fYt_6dqQNRb/view?usp=sharing]]5 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/64bitCalculation.zip]] 6 6 7 7 = **2 MQTT Client** = 8 8 9 9 The example shows how to connect to the MQTT server.(Test on MaQiaTTo) 10 10 11 -[[Download link>>https:// drive.google.com/file/d/1LWLaOlhWB3BRSTLy3_2RC6Yb0wK7slEB/view?usp=sharing]]11 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20MQTT%20Client.zip]] 12 12 13 13 = **3 Timer** = 14 14 15 15 The example shows how to use the Lua Timer function. 16 16 17 -[[Download link>>https:// drive.google.com/file/d/1iwD2Kca9SIAGCYFBaQbn26zdc4kIUuSV/view?usp=sharing]]17 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/LuaTimer.zip]] 18 18 19 19 = **4 Trigger** = 20 20 ... ... @@ -36,10 +36,18 @@ 36 36 37 37 = **7 FTP Client** = 38 38 39 -The example shows how t he to establish the FTP server at WIN10 OS and maketheHMI as FTP client.39 +The example shows how to establish the FTP server at WIN10 OS and make V2.0 HMI as FTP client. 40 40 41 41 [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/FTP%20ClientV2.zip]] 42 42 43 +(% class="box infomessage" %) 44 +((( 45 +Note: The above demo can work normal in OS V2.0. But if HMI OS is V3.0, please change "r+" to "r" in the script. 46 +))) 47 + 48 +(% style="text-align:center" %) 49 +[[image:dZyxVCtWDz.png]] 50 + 43 43 ~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]]** 44 44 45 45 2. Enter PC (FTP Server) IP address and port number (Default 21). ... ... @@ -98,8 +98,17 @@ 98 98 (% style="text-align:center" %) 99 99 [[image:vmG8WGu5P2.png]] 100 100 101 - 102 102 110 +Error 2: No route to host 111 + 112 +The previous steps are the same as Error 1 → Port → specific local ports→ input port number “21”→ Click “NEXT” continuously 113 + 114 +(% style="text-align:center" %) 115 +[[image:fdsxie8WHc.png]] 116 + 117 +(% style="text-align:center" %) 118 +[[image:4ALQq7niTV.png]] 119 + 103 103 = **8 Telegram Notification** = 104 104 105 105 The example shows how to use Bot API to push the notification to channel or group of Telegram. Please change the Token and Chat id to users' own one. ... ... @@ -626,3 +626,9 @@ 626 626 627 627 (% style="text-align:center" %) 628 628 [[image:tPN1mbz7ny.png]] 646 + 647 += 23 Lua SMS = 648 + 649 +The example shows how to use HMI built-in 4G module to send SMS via Lua script. This demo requires the HMI model name with (G) or (AG). 650 + 651 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20SMS%20Library.zip]]
- 4ALQq7niTV.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.joe - Size
-
... ... @@ -1,0 +1,1 @@ 1 +20.7 KB - Content
- dZyxVCtWDz.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.joe - Size
-
... ... @@ -1,0 +1,1 @@ 1 +53.7 KB - Content
- fdsxie8WHc.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.joe - Size
-
... ... @@ -1,0 +1,1 @@ 1 +22.4 KB - Content