Changes for page 01 Lua Functions

Last modified by Theodore Xu on 2023/10/26 10:51

From version 5.13
edited by Stone Wu
on 2022/07/12 09:45
Change comment: (Autosaved)
To version 5.12
edited by Stone Wu
on 2022/07/12 09:40
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -1360,25 +1360,19 @@
1360 1360  
1361 1361  For example: @B_HDX1020.12, its meaning is to access the system data area in bit mode, the specific location is the 13th bit of the 1020th word.
1362 1362  
1363 -(% class="box infomessage" %)
1363 +(% class="box errormessage" %)
1364 1364  (((
1365 1365  **✎Note: **
1366 +)))
1366 1366  
1367 1367  * The address in @B_HDX is taken from the word in @W_HDW, so pay special attention when using the address.
1368 1368  ** For example, @B_HDX1020.12 is to access the 13th bit of the 1020th word. The value of this bit is the same as the word obtained by @W_HDW001020. The 13th bit of this word is actually the same bit as @B_HDX1020.12.
1369 1369  * The address of the bit address @B_HDX has a decimal point, while the word address is an integer.
1370 -)))
1371 1371  
1372 -
1373 -(% class="box errormessage" %)
1374 1374  (((
1375 -
1373 +== **Data storage area(HDW/HDX)** ==
1376 1376  )))
1377 1377  
1378 -(((
1379 -== **bvData storage area(HDW/HDX)** ==
1380 -)))
1381 -
1382 1382  The system storage area (HDW) of the V-BOX is used to store temporary data:
1383 1383  
1384 1384  1. Access by word, the number range is: "@W_HDW0"-"@W_HDW299999".
... ... @@ -1388,14 +1388,11 @@
1388 1388  == **8.2 Special data area (HSW/HSX)** ==
1389 1389  )))
1390 1390  
1391 -(% class="box errormessage" %)
1392 -(((
1393 1393  **✎Note: **
1394 1394  
1395 -* //HSW// is a system special register, so please refer to the system special register table during use. Do not use addresses that are not mentioned in the table, and use the addresses stated in the table with caution (example: restart ("@W_HSW0") Writing a value of 1 will cause V-BOX to restart).
1396 -* //Without any conditions. Direct use ("@W_HSW0") will cause the V-BOX to restart continuously.// When using ("@W_HSW0") address, please add judgment conditions, such as: connection to MQTT fails, there is no network, the value of a PLC address meets the condition or counts to a certain value.
1397 -)))
1387 +//HSW// is a system special register, so please refer to the system special register table during use. Do not use addresses that are not mentioned in the table, and use the addresses stated in the table with caution (example: restart ("@W_HSW0") Writing a value of 1 will cause V-BOX to restart).
1398 1398  
1389 +//Without any conditions. Direct use ("@W_HSW0") will cause the V-BOX to restart continuously.// When using ("@W_HSW0") address, please add judgment conditions, such as: connection to MQTT fails, there is no network, the value of a PLC address meets the condition or counts to a certain value.
1399 1399  
1400 1400  1.The system data area (HSW) of the box is used for system special registers (system reserved). Use //addr_getword// to obtain the following register information:
1401 1401