Changes for page 05 Lua Script

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

From version 48.1
edited by Devin Chen
on 2023/08/17 15:33
Change comment: There is no comment for this version
To version 52.1
edited by Hunter
on 2023/10/18 11:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.DevinChen
1 +XWiki.Hunter
Content
... ... @@ -549,7 +549,10 @@
549 549  
550 550  The example shows how to convert a number to a string using the "tostring()" function.
551 551  
552 +[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/Number%20to%20string.zip]]
552 552  
554 +Note:This demo converts a 64-bit floating to a string,you can change the data format of "@W_HDW0" depand on requirements
555 +
553 553  The core code is from file convert.lua:
554 554  
555 555  (% style="text-align:center" %)
... ... @@ -559,3 +559,5 @@
559 559  
560 560  (% style="text-align:center" %)
561 561  [[image:Converttestdisplay.png]]
565 +
566 += 19 HUAWEI CLOUD & OpenCloud =