Changes for page 09 Lua Editor
Last modified by Nhu Nguyen on 2025/03/09 17:22
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. nhunguyen951 +XWiki.Jim - Content
-
... ... @@ -111,13 +111,10 @@ 111 111 * **Rising script**: after the button is raised, the code chunk in the area is executed; 112 112 * **Timing script**: periodically execute the code. 113 113 114 -(% class="box infomessage" %) 115 -((( 116 116 **✎Note: ** 117 117 118 118 * The timing script is not commonly used because it is similar to the screen background script function. It is not recommended to write and call function here. It should be written in Script_Screen.lua, which is convenient for editing, searching, and replacing operations. 119 119 * It is not allowed to write endless loops or call functions that will loop enlessly in the widget. Once used, the entire screen will be stuck, and any buttons will no longer be used. We have to restart the screen to restore. 120 -))) 121 121 122 122 = **Platform** = 123 123 ... ... @@ -140,10 +140,7 @@ 140 140 * **Tens digit=1**: indicates that the function or global variable defined in this file can be used in the background code file (Script_BG.lua). If it is 0, it is not available. 141 141 * **Ones digit=1**: indicates that the functions or global variables defined in this file can be used in the screen code file (Script_Screen.lua) or LuaScript components. If it is 0, it is not available. 142 142 143 -(% class="box infomessage" %) 144 -((( 145 145 **✎Note: **If you rename the file manually, you must modify the limits in the file accordingly, otherwise the script file will not take effect. 146 -))) 147 147 148 148 == Built-In script file == 149 149 ... ... @@ -168,10 +168,7 @@ 168 168 169 169 The above is the initialization function of screen 0. For screen 100, you can replace 0 with 100. You can add your own function: function we_scr_init_100() end 170 170 171 -(% class="box infomessage" %) 172 -((( 173 173 **✎Note: **The above function has a fixed name. If it is modified, it will not cause crash, but the function can be found. 174 -))) 175 175 176 176 **Example:** After the screen 0 initialization function is changed to we_scR_init_0(), the script will not be executed when screen 0 is initialized, and then no script will be executed, and nothing will be done because the "we_scr_init_0" function cannot be found. 177 177
- XWiki.XWikiComments[0]
-
- Date
-
... ... @@ -1,1 +1,0 @@ 1 -2025-03-09 17:22:36.258 - Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.nhunguyen95 - Comment
-
... ... @@ -1,1 +1,0 @@ 1 -hello, i am using wecon pi3070ig monitor product and i want to use it to control thermal monitoring device. my thermal monitoring device will send thermal information via rs485 communication when receiving thermal reading command with syntax: "STX001,RRD,01,0100", the returned information will be in the form of "STX001,RRD,OK,(thermal parameter)". i want to ask if i can use lua script to send the above data reading command?