Changes for page 05 Lua Script

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

From version 45.1
edited by Hunter
on 2023/08/03 15:02
Change comment: Replaced user [xwiki:XWiki.hunter123] in fields [author, contentAuthor] to user [xwiki:XWiki.Hunter]
To version 47.1
edited by Devin Chen
on 2023/08/17 15:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Hunter
1 +XWiki.DevinChen
Content
... ... @@ -38,7 +38,7 @@
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 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/FTP%20Client.zip]]
41 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/FTP%20ClientV2.zip]]
42 42  
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  
... ... @@ -545,4 +545,18 @@
545 545  (% style="text-align:center" %)
546 546  [[image:celllocation.png]]
547 547  
548 -
548 += 18 Convert a number to a string =
549 +
550 +The example shows how to convert a number to a string using the "tostring()" function.
551 +
552 +
553 +The core code is from file convert.lua:
554 +
555 +(% style="text-align:center" %)
556 +[[image:convert.lua.png]]
557 +
558 +The HMI offline simulator result:
559 +
560 +(% style="text-align:center" %)
561 +[[image:Converttestdisplay.png]]
562 +
Converttestdisplay.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.DevinChen
Size
... ... @@ -1,0 +1,1 @@
1 +37.0 KB
Content
convert.lua.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.DevinChen
Size
... ... @@ -1,0 +1,1 @@
1 +28.6 KB
Content