Changes for page 05 Lua Script

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

From version 55.1
edited by Theodore Xu
on 2024/01/23 14:03
Change comment: There is no comment for this version
To version 57.1
edited by Hunter
on 2024/07/18 18:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.AiXia
1 +XWiki.Hunter
Content
... ... @@ -582,3 +582,19 @@
582 582  The example shows how to use HMI to customize communication with the ATC SMS module via Lua script to send SMS.
583 583  
584 584  [[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/SMS.zip]]
585 +
586 += 22 TCP Client =
587 +
588 +The example shows how to use the Lua Socket TCP module to connect with a TCP server.
589 +
590 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/TCP%20ClientV1.1.zip]]
591 +
592 +~1. Set the initial values of Server IP and port number.
593 +
594 +(% style="text-align:center" %)
595 +[[image:vcbt6CE6EL.png]]
596 +
597 +2. Set the actual receive length of TCP message according to the actual needs.
598 +
599 +(% style="text-align:center" %)
600 +[[image:tPN1mbz7ny.png]]
1721298723226-463.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +33.9 KB
Content
tPN1mbz7ny.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +59.4 KB
Content
vcbt6CE6EL.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Hunter
Size
... ... @@ -1,0 +1,1 @@
1 +33.9 KB
Content