From 4fe3f05eec23657c845599fa7db5d90cfe3abef4 Mon Sep 17 00:00:00 2001 From: "gigi.mamaladze" Date: Wed, 22 Oct 2025 23:14:45 +0400 Subject: [PATCH] Updated SCADA --- .../Information-Docked-East-VFD/view.json | 73 +++++++++++++++---- 1 file changed, 60 insertions(+), 13 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json index 98a14ac..5f6ec4c 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json @@ -1,14 +1,9 @@ { "custom": { - "PLC_list": [ - "MCM01", - "MCM02", - "MCM03", - "MCM04", - "MCM05" - ], - "color": "#FF0000", - "state": "VFD Reset Required" + "MCM": "MCM01", + "PLC_list": null, + "color": "#C2C2C2", + "state": "Closed" }, "params": { "tagProps": [ @@ -25,6 +20,21 @@ ] }, "propConfig": { + "custom.MCM": { + "binding": { + "config": { + "path": "view.custom.MCM" + }, + "transforms": [ + { + "code": "\tbaseTag \u003d self.view.params.tagProps[0]\n\tparts \u003d baseTag.split(\"/\")\n\tmcm \u003d parts[1] if len(parts) \u003e 1 else None\n\treturn mcm", + "type": "script" + } + ], + "type": "property" + }, + "persistent": true + }, "custom.PLC_list": { "binding": { "config": { @@ -1880,18 +1890,55 @@ } }, "meta": { - "name": "NumericEntryField" + "name": "NumericEntryField", + "tooltip": { + "enabled": true + } }, "position": { "basis": "150px" }, "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "path": "this.props.enabled" + }, + "transforms": [ + { + "fallback": "Turn on Setup Motor Speeds from MCM", + "inputType": "scalar", + "mappings": [ + { + "input": true, + "output": "Setup Motor Speeds" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "property" + } + }, "props.enabled": { "binding": { "config": { - "expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0" + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.custom.MCM}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Setup_Motor_Speeds" }, - "type": "expr" + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus}, false)", + "type": "expression" + } + ], + "type": "tag" } }, "props.value": { @@ -2767,7 +2814,7 @@ "grow": 1 }, "props": { - "currentTabIndex": 1, + "currentTabIndex": 2, "menuType": "modern", "tabSize": { "width": 1000