equal
deleted
inserted
replaced
214 if derived == "HMI_NODE": |
214 if derived == "HMI_NODE": |
215 hmi_tree_root = HMITreeNode(path, "", derived, v["type"], v["vartype"], v["C_path"]) |
215 hmi_tree_root = HMITreeNode(path, "", derived, v["type"], v["vartype"], v["C_path"]) |
216 hmi_types_instances.pop(i) |
216 hmi_types_instances.pop(i) |
217 break |
217 break |
218 |
218 |
219 assert(hmi_tree_root is not None) |
219 if hmi_tree_root is None: |
|
220 self.FatalError("SVGHMI : Library is selected but not used. Please either deselect it in project config or add a SVGHMI node to project.") |
220 |
221 |
221 # deduce HMI tree from PLC HMI_* instances |
222 # deduce HMI tree from PLC HMI_* instances |
222 for v in hmi_types_instances: |
223 for v in hmi_types_instances: |
223 path = v["IEC_path"].split(".") |
224 path = v["IEC_path"].split(".") |
224 # ignores variables starting with _TMP_ |
225 # ignores variables starting with _TMP_ |