Changes for page 05 Lua Script

Last modified by Hunter on 2025/05/08 20:54

From version 74.1
edited by Hunter
on 2025/05/08 20:54
Change comment: There is no comment for this version
To version 69.1
edited by Molly
on 2024/10/24 10:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Hunter
1 +XWiki.Molly
Content
... ... @@ -1,8 +1,8 @@
1 -= **1 **Arithmetic operations =
1 += **1 64bits Address Basic Algorithm** =
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/Arithmetic%20operations%20by%20Lua%20V1.0.zip]]
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  
... ... @@ -648,40 +648,3 @@
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 650  [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Lua%20SMS%20Library.zip]]
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]]
657 -
658 -(% class="box infomessage" %)
659 -(((
660 -Note:Due to differences in operators, it is recommended to test before use.
661 -)))
662 -
663 -= 25 Lua SQLite =
664 -
665 -The example shows how to generate a user customized database and table via Lua script.
666 -
667 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/SQL%20demo.zip]]
668 -
669 -~1. Choose the designate storage path of db file, here we choose the U disk;
670 -
671 -(% style="text-align:center" %)
672 -[[image:lgvAY47My2.png]]
673 -
674 -2. Create the database a.db and create the table filer;
675 -
676 -(% style="text-align:center" %)
677 -[[image:SbfZ7qC2qr.png]]
678 -
679 -3. Write the data of HDW10, then click Add data to insert new record into the table filer;
680 -
681 -(% style="text-align:center" %)
682 -[[image:sMi8nKsDCy.png]]
683 -
684 -4. Export the file a.db to PC, and using the DB Browser to view the created data(Because it is not standard data record file, not able to be recognized correctly by DataLogTool);
685 -
686 -(% style="text-align:center" %)
687 -[[image:xT8f08pfY0.png]]
SbfZ7qC2qr.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -15.3 KB
Content
lgvAY47My2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -18.0 KB
Content
lgvAY47MyI.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -17.1 KB
Content
sMi8nKsDCy.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -17.3 KB
Content
xT8f08pfY0.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Hunter
Size
... ... @@ -1,1 +1,0 @@
1 -38.3 KB
Content