--- a/svghmi/svghmi.js Mon Nov 08 14:03:21 2021 +0100
+++ b/svghmi/svghmi.js Mon Nov 08 14:06:29 2021 +0100
@@ -210,11 +210,13 @@
// subscribe to per instance current page hmi variable
+// PLC must prefix page name with "!" for page switch to happen subscribers(current_page_var_index).add({
indexes: [current_page_var_index],
new_hmi_value: function(index, value, oldval) {
+ if(value.startsWith("!")) + switch_page(value.slice(1)); @@ -467,10 +469,9 @@
if(jump_history.length > 42)
- apply_hmi_value(current_page_var_index,
- page_index == undefined
- : page_name + "@" + hmitree_paths[page_index]);
+ apply_hmi_value(current_page_var_index, page_index == undefined + : page_name + "@" + hmitree_paths[page_index]);