From bc36593f6bbcdf963bbfbf5cc369234ede6b20a7 Mon Sep 17 00:00:00 2001 From: gigi mamaladze Date: Tue, 8 Jul 2025 17:05:31 +0400 Subject: [PATCH] Updated APF Docked East view --- .../Information-Docked-East-VFD/view.json | 122 ++++++++++++++---- 1 file changed, 94 insertions(+), 28 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 7abd7c2..f46015e 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,6 @@ { "custom": { - "PLC_list": [ - "MCM01", - "MCM02", - "MCM03", - "MCM04", - "MCM05", - "MCM06", - "MCM07" - ], + "PLC_list": null, "running_state": -1, "state": 0, "views_data": [] @@ -1910,9 +1902,37 @@ "props.style.backgroundColor": { "binding": { "config": { - "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7DB17D\",\r\n if(\r\n {this.props.text} \u003d \"START PRESSED\",\r\n \"#009400\",\r\n if(\r\n {this.props.text} \u003d \"START\",\r\n \"#00D900\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State" }, - "type": "expr" + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "#00D900", + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "#00D900" + }, + { + "input": 1, + "output": "#00FF00" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "tag" } }, "props.text": { @@ -1924,7 +1944,7 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Start_PB_Pressed" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State" }, "transforms": [ { @@ -1937,7 +1957,7 @@ "mappings": [ { "input": 1, - "output": "START PRESSED" + "output": "STARTED" } ], "outputType": "scalar", @@ -1998,9 +2018,37 @@ "props.style.backgroundColor": { "binding": { "config": { - "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"STOP PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"STOP\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State" }, - "type": "expr" + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "#D90000", + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "#D90000" + }, + { + "input": 2, + "output": "#FF0000" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "tag" } }, "props.text": { @@ -2012,7 +2060,7 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Stop_PB_Pressed" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State" }, "transforms": [ { @@ -2024,8 +2072,8 @@ "inputType": "scalar", "mappings": [ { - "input": 1, - "output": "STOP PRESSED" + "input": 2, + "output": "STOPPED" } ], "outputType": "scalar", @@ -2093,9 +2141,33 @@ "props.style.backgroundColor": { "binding": { "config": { - "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#55A49B\",\r\n if(\r\n {this.props.text} \u003d \"JOG PRESSED\",\r\n \"#34B2A3\",\r\n if(\r\n {this.props.text} \u003d \"JOG\",\r\n \"#2ACCBA\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Jog_PB_Pressed" }, - "type": "expr" + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "#00ACAC", + "inputType": "scalar", + "mappings": [ + { + "input": true, + "output": "#47FFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "tag" } }, "props.text": { @@ -2178,14 +2250,6 @@ "type": "tag" } }, - "props.style.backgroundColor": { - "binding": { - "config": { - "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7292B8\",\r\n if(\r\n {this.props.text} \u003d \"Direction Backward\",\r\n \"#0068F7\",\r\n if(\r\n {this.props.text} \u003d \"Direction Forward\",\r\n \"#3467AD\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" - }, - "type": "expr" - } - }, "props.text": { "binding": { "config": { @@ -2221,6 +2285,7 @@ }, "props": { "style": { + "backgroundColor": "#095ECD", "marginBottom": 10 } }, @@ -2284,6 +2349,7 @@ "grow": 1 }, "props": { + "currentTabIndex": 2, "menuType": "modern", "tabSize": { "width": 1000