Changes for page 01 Lua Functions
Last modified by Theodore Xu on 2023/10/26 10:51
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1360,19 +1360,25 @@ 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 errormessage" %)1363 +(% class="box infomessage" %) 1364 1364 ((( 1365 1365 **✎Note: ** 1366 -))) 1367 1367 1368 1368 * The address in @B_HDX is taken from the word in @W_HDW, so pay special attention when using the address. 1369 1369 ** 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. 1370 1370 * 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" %) 1372 1372 ((( 1373 - == **Data storage area(HDW/HDX)** ==1375 + 1374 1374 ))) 1375 1375 1378 +((( 1379 +== **bvData storage area(HDW/HDX)** == 1380 +))) 1381 + 1376 1376 The system storage area (HDW) of the V-BOX is used to store temporary data: 1377 1377 1378 1378 1. Access by word, the number range is: "@W_HDW0"-"@W_HDW299999". ... ... @@ -1382,11 +1382,14 @@ 1382 1382 == **8.2 Special data area (HSW/HSX)** == 1383 1383 ))) 1384 1384 1391 +(% class="box errormessage" %) 1392 +((( 1385 1385 **✎Note: ** 1386 1386 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). 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 +))) 1388 1388 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. 1390 1390 1391 1391 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: 1392 1392