Changes for page 05 Lua Script

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

From version 70.1
edited by Jett
on 2024/11/26 17:13
Change comment: There is no comment for this version
To version 60.1
edited by Hunter
on 2024/09/27 17:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.2454238480
1 +XWiki.Hunter
Content
... ... @@ -2,52 +2,44 @@
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://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/64bitCalculation.zip]]
5 +[[Download link>>https://drive.google.com/file/d/1ji5RbQJzUn_rQ2couX062fYt_6dqQNRb/view?usp=sharing]]
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://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20MQTT%20Client.zip]]
11 +[[Download link>>https://drive.google.com/file/d/1LWLaOlhWB3BRSTLy3_2RC6Yb0wK7slEB/view?usp=sharing]]
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://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/LuaTimer.zip]]
17 +[[Download link>>https://drive.google.com/file/d/1iwD2Kca9SIAGCYFBaQbn26zdc4kIUuSV/view?usp=sharing]]
18 18  
19 19  = **4 Trigger** =
20 20  
21 21  The example shows how to use the Lua Trigger function.
22 22  
23 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/LuaTrigger.zip]]
23 +[[Download link>>https://drive.google.com/file/d/1GDCbbMgNSixonXP2erA0VoJbo7qagsCv/view?usp=sharing]]
24 24  
25 25  = **5 User Free Protocol** =
26 26  
27 27  The example shows the simple write and read of User Free protocol
28 28  
29 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20User%20Free%20Protocol.zip]]
29 +[[Download link>>https://drive.google.com/file/d/1v8UZvdclq3OGEajkbd78w7_XY2bY2qAe/view?usp=sharing]]
30 30  
31 31  = **6 Arabic Keypad** =
32 32  
33 33  The example shows how to use the Lua to achieve the Arabic keypad. Also available for other non-English language like Cyrillic.
34 34  
35 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/ArabicKeyboard.zip]]
35 +[[Download link>>https://drive.google.com/file/d/1JqpTRRqj6db32aLn7tqqO8dWT6EuXBEL/view?usp=sharing]]
36 36  
37 37  = **7 FTP Client** =
38 38  
39 -The example shows how  to establish the FTP server at WIN10 OS and make V2.0 HMI as FTP client.
39 +The example shows how the to establish the FTP server at WIN10 OS and make the 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 -
51 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]]**
52 52  
53 53  2. Enter PC (FTP Server) IP address and port number (Default 21).
... ... @@ -117,12 +117,14 @@
117 117  (% style="text-align:center" %)
118 118  [[image:4ALQq7niTV.png]]
119 119  
112 +
120 120  = **8 Telegram Notification** =
121 121  
122 122  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.
123 123  
124 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Telegram.zip]]
117 +[[Download link>>https://drive.google.com/file/d/1wV0O79TJ2mgUEBkKcjrb53PM8DkTQxVo/view?usp=sharing]]
125 125  
119 +
126 126  = 9** LINE Notify** =
127 127  
128 128  This example shows how to use the LINE Notify to send message into LINE group. When monitoring bit "@B_HDX0.0" changes, it will trigger and send the message. Please replace with your own Token.
... ... @@ -647,10 +647,5 @@
647 647  
648 648  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).
649 649  
650 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20SMS%20Library.zip]]
651 651  
652 -= 24 ATC module Calling =
653 -
654 -The example shows how to use HMI to customize communication with the ATC-3101 module via Lua script to make phone call
655 -
656 -.[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/lua%20ATC%20calling.rar]]
645 +
dZyxVCtWDz.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.joe
Size
... ... @@ -1,1 +1,0 @@
1 -53.7 KB
Content