From 4b9d34f83b18366309c2bcdb97366318996c6ce1 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 10:57:13 +0400 Subject: [PATCH 1/8] Fix Extendo Docked-East --- .../Information-Docked-East-Extendo/view.json | 461 +++--------------- 1 file changed, 69 insertions(+), 392 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json index fb4e880..828a942 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json @@ -397,304 +397,6 @@ }, "type": "ia.container.flex" }, - { - "children": [ - { - "children": [ - { - "meta": { - "name": "Name" - }, - "position": { - "basis": "50%", - "grow": 1 - }, - "props": { - "style": { - "paddingLeft": 20 - }, - "text": "FULL" - }, - "type": "ia.display.label" - }, - { - "meta": { - "name": "Full" - }, - "position": { - "basis": "50%", - "grow": 1 - }, - "propConfig": { - "props.style.backgroundColor": { - "binding": { - "config": { - "path": "this.props.text" - }, - "transforms": [ - { - "fallback": "#000000", - "inputType": "scalar", - "mappings": [ - { - "input": "FULL", - "output": "#FFFFFF" - }, - { - "input": "NOT FULL", - "output": "#D5D5D5" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - }, - "props.text": { - "binding": { - "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Pressed" - }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "NOT FULL", - "inputType": "scalar", - "mappings": [ - { - "input": true, - "output": "FULL" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "tag" - } - }, - "props.textStyle.color": { - "binding": { - "config": { - "path": "this.props.text" - }, - "transforms": [ - { - "fallback": "#000000", - "inputType": "scalar", - "mappings": [ - { - "input": "FULL", - "output": "#FF0000" - }, - { - "input": "NOT FULL", - "output": "#47FF47" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - } - }, - "props": { - "style": { - "classes": "Text-Styles/Ariel-Bold-12pt", - "paddingLeft": 10 - } - }, - "type": "ia.display.label" - } - ], - "meta": { - "name": "Property" - }, - "position": { - "basis": "35px", - "shrink": 2 - }, - "props": { - "style": { - "classes": "PopUp-Styles/InfoLabel" - } - }, - "type": "ia.container.flex" - } - ], - "meta": { - "name": "Full" - }, - "position": { - "basis": "35px" - }, - "props": { - "direction": "column" - }, - "type": "ia.container.flex" - }, - { - "children": [ - { - "children": [ - { - "meta": { - "name": "Name" - }, - "position": { - "basis": "50%", - "grow": 1 - }, - "props": { - "style": { - "paddingLeft": 20 - }, - "text": "EXTENDO FAULTED" - }, - "type": "ia.display.label" - }, - { - "meta": { - "name": "Extendo Faulted" - }, - "position": { - "basis": "50%", - "grow": 1 - }, - "propConfig": { - "props.style.backgroundColor": { - "binding": { - "config": { - "path": "this.props.text" - }, - "transforms": [ - { - "fallback": "#000000", - "inputType": "scalar", - "mappings": [ - { - "input": "TRUE", - "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - }, - "props.text": { - "binding": { - "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Extendo_Faulted" - }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "FALSE", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "TRUE" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "tag" - } - }, - "props.textStyle.color": { - "binding": { - "config": { - "path": "this.props.text" - }, - "transforms": [ - { - "fallback": "#000000", - "inputType": "scalar", - "mappings": [ - { - "input": "TRUE", - "output": "#FF0000" - }, - { - "input": "FALSE", - "output": "#47FF47" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - } - }, - "props": { - "style": { - "classes": "Text-Styles/Ariel-Bold-12pt", - "paddingLeft": 10 - } - }, - "type": "ia.display.label" - } - ], - "meta": { - "name": "Property" - }, - "position": { - "basis": "35px", - "shrink": 2 - }, - "props": { - "style": { - "classes": "PopUp-Styles/InfoLabel" - } - }, - "type": "ia.container.flex" - } - ], - "meta": { - "name": "Extendo Faulted" - }, - "position": { - "basis": "35px" - }, - "props": { - "direction": "column" - }, - "type": "ia.container.flex" - }, { "children": [ { @@ -731,15 +433,15 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ACTIVE", "output": "#FFFFFF" }, { - "input": "FALSE", + "input": "NOT ACTIVE", "output": "#D5D5D5" } ], @@ -763,16 +465,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ACTIVE" + }, + { + "input": 0, + "output": "NOT ACTIVE" } ], "outputType": "scalar", @@ -793,12 +499,12 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", - "output": "#FF0000" + "input": "ACTIVE", + "output": "#47FF47" }, { - "input": "FALSE", - "output": "#47FF47" + "input": "NOT ACTIVE", + "output": "#FF0000" } ], "outputType": "color", @@ -880,7 +586,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -912,16 +618,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "TRUE" + }, + { + "input": 0, + "output": "FALSE" } ], "outputType": "scalar", @@ -943,11 +653,11 @@ "mappings": [ { "input": "TRUE", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -1029,7 +739,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -1061,16 +771,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "TRUE" + }, + { + "input": 0, + "output": "FALSE" } ], "outputType": "scalar", @@ -1092,11 +806,11 @@ "mappings": [ { "input": "TRUE", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -1178,7 +892,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -1210,16 +924,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ON" + }, + { + "input": 0, + "output": "OFF" } ], "outputType": "scalar", @@ -1241,11 +959,11 @@ "mappings": [ { "input": "TRUE", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -1327,7 +1045,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -1359,16 +1077,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ON" + }, + { + "input": 0, + "output": "OFF" } ], "outputType": "scalar", @@ -1390,11 +1112,11 @@ "mappings": [ { "input": "TRUE", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -1476,7 +1198,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -1504,20 +1226,24 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Saving_Mode" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Unloading_Mode" }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ON" + }, + { + "input": 0, + "output": "OFF" } ], "outputType": "scalar", @@ -1539,11 +1265,11 @@ "mappings": [ { "input": "TRUE", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -1641,33 +1367,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/PEC_Override_PB" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#9661A3\",\r\n if(\r\n {this.props.text} \u003d \"PEC OVERRIDE: ON\",\r\n \"#E888FF\",\r\n if(\r\n {this.props.text} \u003d \"PEC OVERRIDE: OFF\",\r\n \"#CC00FF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FF0000", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF9191" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -1687,12 +1389,12 @@ "type": "expression" }, { - "fallback": "PEC OVERRIDE", + "fallback": "PEC OVERRIDE: OFF", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "PEC OVERRIDE PRESSED" + "output": "PEC OVERRIDE: ON" } ], "outputType": "scalar", @@ -1704,7 +1406,6 @@ } }, "props": { - "image": {}, "style": { "classes": "Background-Styles/Controller" } @@ -1759,33 +1460,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Extendo_Faults_Reset_PB" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"EXTENDO FAULTS RESET PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"EXTENDO FAULTS RESET\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FF0000", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF9191" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { From 3c897f4bde223347e65310dfdeb709bf0dd09c7e Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 11:00:35 +0400 Subject: [PATCH 2/8] Fix Device Status Docked-East --- .../view.json | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json index 3f3a88d..9a8fc74 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/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": [] @@ -441,7 +433,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -473,16 +465,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "TRUE" + }, + { + "input": 0, + "output": "FALSE" } ], "outputType": "scalar", @@ -503,12 +499,12 @@ "inputType": "scalar", "mappings": [ { - "input": "FALSE", - "output": "#FF0000" + "input": "TRUE", + "output": "#47FF47" }, { "input": "FALSE", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", From a341670602f000af4b038ac9f615b177e41c6756 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 11:22:21 +0400 Subject: [PATCH 3/8] Fix JR PB Docked-East --- .../Information-Docked-East-Extendo/view.json | 22 ++++-- .../Information-Docked-East-JR-PB/view.json | 74 +++++++++++++++---- 2 files changed, 75 insertions(+), 21 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json index 828a942..02340a8 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json @@ -1,6 +1,14 @@ { "custom": { - "PLC_list": null, + "PLC_list": [ + "MCM01", + "MCM02", + "MCM03", + "MCM04", + "MCM05", + "MCM06", + "MCM07" + ], "running_state": -1, "state": 0, "views_data": [] @@ -958,11 +966,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ON", "output": "#47FF47" }, { - "input": "FALSE", + "input": "OFF", "output": "#FF0000" } ], @@ -1111,11 +1119,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ON", "output": "#47FF47" }, { - "input": "FALSE", + "input": "OFF", "output": "#FF0000" } ], @@ -1264,11 +1272,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ON", "output": "#47FF47" }, { - "input": "FALSE", + "input": "OFF", "output": "#FF0000" } ], diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json index 2272421..9a1b10c 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json @@ -1,13 +1,21 @@ { "custom": { - "PLC_list": null, + "PLC_list": [ + "MCM01", + "MCM02", + "MCM03", + "MCM04", + "MCM05", + "MCM06", + "MCM07" + ], "running_state": -1, "state": 0, "views_data": [] }, "params": { "tagProps": [ - "/System/Station/Buttons/UL1_3_JR_PB2", + "/System/Station/JR/UL1_3_JR_PB1", "value", "value", "value", @@ -433,7 +441,7 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { @@ -465,20 +473,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "OFF", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ - { - "input": false, - "output": "OFF" - }, { "input": true, "output": "ON" + }, + { + "input": false, + "output": "OFF" } ], "outputType": "scalar", @@ -500,11 +508,11 @@ "mappings": [ { "input": "ON", - "output": "#FF0000" + "output": "#47FF47" }, { "input": "OFF", - "output": "#47FF47" + "output": "#FF0000" } ], "outputType": "color", @@ -598,6 +606,46 @@ }, "type": "expr" } + }, + "props.style.backgroundColor": { + "binding": { + "config": { + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#B17B50\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESET PRESSED\",\r\n \"#FFB988\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESET\",\r\n \"#FE9240\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" + }, + "type": "expr" + } + }, + "props.text": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "JAM RESET", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "JAM RESET PRESSED" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } } }, "props": { @@ -607,10 +655,8 @@ } }, "style": { - "backgroundColor": "#FE9240", "classes": "Background-Styles/Controller" - }, - "text": "RESET JAM" + } }, "type": "ia.input.button" } From 81e6d7be7cee29bb5aec06549920431a445043f3 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 11:55:21 +0400 Subject: [PATCH 4/8] Fix StatusNonPowered Docked-East --- .../view.json | 119 +++++++++--------- 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json index 2ce2af4..abeb034 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json @@ -6,7 +6,8 @@ "MCM03", "MCM04", "MCM05", - "MCM06" + "MCM06", + "MCM07" ], "running_state": -1, "state": 0, @@ -461,12 +462,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "FULL", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT FULL", @@ -493,16 +494,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT FULL", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "FULL" + }, + { + "input": 0, + "output": "NOT FULL" } ], "outputType": "scalar", @@ -610,15 +615,15 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { - "input": "DISABLED", - "output": "#FFFFFF" + "input": "TRUE", + "output": "#D5D5D5" }, { - "input": "ENABLED", + "input": "FALSE", "output": "#D5D5D5" } ], @@ -642,16 +647,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus}, \"UNKNOWN\")", "type": "expression" }, { - "fallback": "ENABLED", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "DISABLED" + "output": "TRUE" + }, + { + "input": 0, + "output": "FALSE" } ], "outputType": "scalar", @@ -672,12 +681,12 @@ "inputType": "scalar", "mappings": [ { - "input": "ENABLED", - "output": "#47FF47" + "input": "TRUE", + "output": "#FF0000" }, { - "input": "DISABLED", - "output": "#FF0000" + "input": "FALSE", + "output": "#47FF47" } ], "outputType": "color", @@ -797,12 +806,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "HALF FULL", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT HALF FULL", @@ -829,16 +838,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT HALF FULL", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "HALF FULL" + }, + { + "input": 0, + "output": "NOT HALF FULL" } ], "outputType": "scalar", @@ -860,7 +873,7 @@ "mappings": [ { "input": "HALF FULL", - "output": "#7F83FF" + "output": "#FFF000" }, { "input": "NOT HALF FULL", @@ -984,12 +997,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "JAMMED", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT JAMMED", @@ -1016,16 +1029,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT JAMMED", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "JAMMED" + }, + { + "input": 0, + "output": "NOT JAMMED" } ], "outputType": "scalar", @@ -1171,12 +1188,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "NO CONTAINER", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "CONTAINER PRESENT", @@ -1199,20 +1216,24 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No Container" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No_Container" }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "CONTAINER PRESENT", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "NO CONTAINER" + }, + { + "input": 0, + "output": "CONTAINER PRESENT" } ], "outputType": "scalar", @@ -1354,12 +1375,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "READY", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "ENABLED", @@ -1553,33 +1574,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"DISABLE\",\r\n \"#FF0000\",\r\n if(\r\n {this.props.text} \u003d \"ENABLE\",\r\n \"#C9FCC0\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FF0000", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#C9FCC0" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.style.color": { @@ -1627,7 +1624,7 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { @@ -1637,6 +1634,10 @@ { "input": 1, "output": "ENABLE" + }, + { + "input": 0, + "output": "DISABLE" } ], "outputType": "scalar", From 061ea0e0919957b106988dd64c1365f74bdb8288 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 13:32:44 +0400 Subject: [PATCH 5/8] Fix MCM Docked-East --- .../Information-Docked-East-MCM/view.json | 529 +++++++----------- 1 file changed, 188 insertions(+), 341 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-MCM/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-MCM/view.json index 6af3239..145adc9 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-MCM/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-MCM/view.json @@ -1,6 +1,14 @@ { "custom": { - "PLC_list": null, + "PLC_list": [ + "MCM01", + "MCM02", + "MCM03", + "MCM04", + "MCM05", + "MCM06", + "MCM07" + ], "running_state": -1, "state": 0, "views_data": [] @@ -433,16 +441,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -465,16 +469,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "MOTOR FAULTED" + }, + { + "input": 0, + "output": "MOTOR NOT FAULTED" } ], "outputType": "scalar", @@ -495,11 +503,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "MOTOR FAULTED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "MOTOR NOT FAULTED", "output": "#47FF47" } ], @@ -582,16 +590,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -614,16 +618,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "JAM FAULTED" + }, + { + "input": 0, + "output": "JAM NOT FAULTED" } ], "outputType": "scalar", @@ -644,11 +652,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", - "output": "#FF0000" + "input": "JAM FAULTED", + "output": "#FFC000" }, { - "input": "FALSE", + "input": "JAM NOT FAULTED", "output": "#47FF47" } ], @@ -731,16 +739,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -763,16 +767,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "DE ENERGIZED" + }, + { + "input": 0, + "output": "NOT DE ENERGIZED" } ], "outputType": "scalar", @@ -793,11 +801,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "DE ENERGIZED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "NOT DE ENERGIZED", "output": "#47FF47" } ], @@ -880,16 +888,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -912,16 +916,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ESTOPPED" + }, + { + "input": 0, + "output": "NOT ESTOPPED" } ], "outputType": "scalar", @@ -942,11 +950,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ESTOPPED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "NOT ESTOPPED", "output": "#47FF47" } ], @@ -1029,16 +1037,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1061,16 +1065,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ESTOPPED" + }, + { + "input": 0, + "output": "NOT ESTOPPED" } ], "outputType": "scalar", @@ -1091,11 +1099,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ESTOPPED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "NOT ESTOPPED", "output": "#47FF47" } ], @@ -1178,16 +1186,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1210,16 +1214,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "STOPPED" + }, + { + "input": 0, + "output": "NOT STOPPED" } ], "outputType": "scalar", @@ -1240,11 +1248,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "STOPPED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "NOT STOPPED", "output": "#47FF47" } ], @@ -1327,16 +1335,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1359,16 +1363,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "SWITCH FAULTED" + }, + { + "input": 0, + "output": "SWITCH NOT FAULTED" } ], "outputType": "scalar", @@ -1389,11 +1397,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "SWITCH FAULTED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "SWITCH NOT FAULTED", "output": "#47FF47" } ], @@ -1476,16 +1484,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1508,16 +1512,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ON UPS BATTERY" + }, + { + "input": 0, + "output": "NOT ON UPS BATTERY" } ], "outputType": "scalar", @@ -1538,11 +1546,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "NOT ON UPS BATTERY", "output": "#FF0000" }, { - "input": "FALSE", + "input": "NOT ON UPS BATTERY", "output": "#47FF47" } ], @@ -1625,16 +1633,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1657,16 +1661,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "BATTERY FAULTED" + }, + { + "input": 0, + "output": "BATTERY NOT FAULTED" } ], "outputType": "scalar", @@ -1687,11 +1695,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "BATTERY FAULTED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "BATTERY NOT FAULTED", "output": "#47FF47" } ], @@ -1774,16 +1782,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1806,16 +1810,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "BATTERY LOW" + }, + { + "input": 0, + "output": "BATTERY NOT LOW" } ], "outputType": "scalar", @@ -1836,11 +1844,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "BATTERY LOW", "output": "#FF0000" }, { - "input": "FALSE", + "input": "BATTERY NOT LOW", "output": "#47FF47" } ], @@ -1923,16 +1931,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1955,16 +1959,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "ON" + }, + { + "input": 0, + "output": "OFF" } ], "outputType": "scalar", @@ -1985,11 +1993,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "ON", "output": "#FF0000" }, { - "input": "FALSE", + "input": "OFF", "output": "#47FF47" } ], @@ -2072,16 +2080,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -2104,16 +2108,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "FALSE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "TRUE" + "output": "UPS FAULTED" + }, + { + "input": 0, + "output": "UPS NOT FAULTED" } ], "outputType": "scalar", @@ -2134,11 +2142,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UPS FAULTED", "output": "#FF0000" }, { - "input": "FALSE", + "input": "UPS NOT FAULTED", "output": "#47FF47" } ], @@ -2237,37 +2245,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB_STATE" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7DB17D\",\r\n if(\r\n {this.props.text} \u003d \"STARTED\",\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" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#00D900", - "inputType": "scalar", - "mappings": [ - { - "input": 2, - "output": "#009400" - }, - { - "input": 4, - "output": "#009400" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2367,33 +2347,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Stop_PB" + "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" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FF0000", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF8787" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2489,37 +2445,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Motor_Fault_Reset_PB_STATE" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {this.props.text} \u003d \"MOTOR FAULT RESET PRESSED\",\r\n \"#FCFF86\",\r\n if(\r\n {this.props.text} \u003d \"MOTOR FAULT RESET\",\r\n \"#DCDC03\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#DCDC03", - "inputType": "scalar", - "mappings": [ - { - "input": 2, - "output": "#FCFF86" - }, - { - "input": 4, - "output": "#FCFF86" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2541,7 +2469,16 @@ { "fallback": "MOTOR FAULT RESET", "inputType": "scalar", - "mappings": [], + "mappings": [ + { + "input": 2, + "output": "MOTOR FAULT RESET PRESSED" + }, + { + "input": 4, + "output": "MOTOR FAULT RESET PRESSED" + } + ], "outputType": "scalar", "type": "map" } @@ -2614,37 +2551,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Branch_Fault_Reset_PB_STATE" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {this.props.text} \u003d \"POWER BRANCH FAULT RESET PRESSED\",\r\n \"#FCFF86\",\r\n if(\r\n {this.props.text} \u003d \"POWER BRANCH FAULT RESET\",\r\n \"#DCDC03\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#DCDC03", - "inputType": "scalar", - "mappings": [ - { - "input": 2, - "output": "#FCFF86" - }, - { - "input": 4, - "output": "#FCFF86" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2666,7 +2575,16 @@ { "fallback": "POWER BRANCH FAULT RESET", "inputType": "scalar", - "mappings": [], + "mappings": [ + { + "input": 2, + "output": "POWER BRANCH FAULT RESET PRESSED" + }, + { + "input": 4, + "output": "POWER BRANCH FAULT RESET PRESSED" + } + ], "outputType": "scalar", "type": "map" } @@ -2739,37 +2657,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Low_Air_Pressure_Reset_PB_STATE" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#9090C2\",\r\n if(\r\n {this.props.text} \u003d \"LOW AIR PRESSURE RESET PRESSED\",\r\n \"#5D5DFF\",\r\n if(\r\n {this.props.text} \u003d \"LOW AIR PRESSURE RESET\",\r\n \"#0A0AA4\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#0A0AA4", - "inputType": "scalar", - "mappings": [ - { - "input": 2, - "output": "#5D5DFF" - }, - { - "input": 4, - "output": "#5D5DFF" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2793,8 +2683,12 @@ "inputType": "scalar", "mappings": [ { - "input": 1, - "output": "POWER BRANCH FAULT RESET PRESSED" + "input": 2, + "output": "LOW AIR PRESSURE RESET PRESSED" + }, + { + "input": 4, + "output": "LOW AIR PRESSURE RESET PRESSED" } ], "outputType": "scalar", @@ -2865,37 +2759,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Jam_Restart_PB_STATE" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESTART PRESSED\",\r\n \"#DADADA\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESTART\",\r\n \"#FFFFFF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FFFFFF", - "inputType": "scalar", - "mappings": [ - { - "input": 2, - "output": "#D0D0D0" - }, - { - "input": 4, - "output": "#D0D0D0" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { @@ -2917,7 +2783,12 @@ { "fallback": "JAM RESTART", "inputType": "scalar", - "mappings": [], + "mappings": [ + { + "input": 1, + "output": "JAM RESTART PRESSED" + } + ], "outputType": "scalar", "type": "map" } @@ -2990,33 +2861,9 @@ "props.style.backgroundColor": { "binding": { "config": { - "fallbackDelay": 2.5, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Setup_Motor_Speeds" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {this.props.text} \u003d \"SETUP MOTOR SPEEDS PRESSED\",\r\n \"#DADADA\",\r\n if(\r\n {this.props.text} \u003d \"SETUP MOTOR SPEEDS\",\r\n \"#FFFFFF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": "#FFFFFF", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#D0D0D0" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "tag" + "type": "expr" } }, "props.text": { From ba62855d1f899e896b174f74ebf62fb9de496b67 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 16:31:11 +0400 Subject: [PATCH 6/8] Fix MCM color --- .../Equipment-Views/MCM/view.json | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/MCM/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/MCM/view.json index 77653fc..e49ceca 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/MCM/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/MCM/view.json @@ -1,6 +1,6 @@ { "custom": { - "disconnected": false, + "disconnected": true, "plc": "MCM", "priority": 0, "priority_string": "No Active Alarms", @@ -202,7 +202,7 @@ "props.elements[0].fill.paint": { "binding": { "config": { - "expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \r\n \"#B3B3B3\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#FF8C00\",\r\n \"#FF8C00\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#00FF00\",\r\n \"#FFFF00\"\r\n )\r\n)\r\n" + "expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \r\n \"#B3B3B3\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#FF8C00\",\r\n \"#FF8C00\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#00FF00\",\r\n \"#FFFF00\"\r\n )\r\n)\r\n" }, "type": "expr" }, @@ -210,6 +210,28 @@ "enabled": false, "script": "" } + }, + "props.elements[1].style.fill": { + "binding": { + "config": { + "path": "view.custom.disconnected" + }, + "transforms": [ + { + "fallback": "#000000", + "inputType": "scalar", + "mappings": [ + { + "input": true, + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } } }, "props": { From 73da24663202dc1f0bccf87e99d54d505c3c8048 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 16:39:20 +0400 Subject: [PATCH 7/8] Fix All Docked-Easts --- .../view.json | 27 +++++---- .../Information-Docked-East-Extendo/view.json | 57 +++++++------------ .../Information-Docked-East-JR-PB/view.json | 8 +-- 3 files changed, 37 insertions(+), 55 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json index 9a8fc74..59f61c4 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Device-Status/view.json @@ -1,6 +1,14 @@ { "custom": { - "PLC_list": null, + "PLC_list": [ + "MCM01", + "MCM02", + "MCM03", + "MCM04", + "MCM05", + "MCM06", + "MCM07" + ], "running_state": -1, "state": 0, "views_data": [] @@ -433,16 +441,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -474,11 +478,11 @@ "mappings": [ { "input": 1, - "output": "TRUE" + "output": "FAULTED" }, { "input": 0, - "output": "FALSE" + "output": "NOT FAULTED" } ], "outputType": "scalar", @@ -499,11 +503,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "NOT FAULTED", "output": "#47FF47" }, { - "input": "FALSE", + "input": "FAULTED", "output": "#FF0000" } ], @@ -573,6 +577,7 @@ "grow": 1 }, "props": { + "currentTabIndex": 1, "menuType": "modern", "tabSize": { "width": 1000 diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json index 02340a8..38d4772 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Extendo/view.json @@ -441,16 +441,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "ACTIVE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "NOT ACTIVE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -594,16 +590,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -635,11 +627,11 @@ "mappings": [ { "input": 1, - "output": "TRUE" + "output": "EXTENDED" }, { "input": 0, - "output": "FALSE" + "output": "NOT EXTENDED" } ], "outputType": "scalar", @@ -660,11 +652,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "EXTENDED", "output": "#47FF47" }, { - "input": "FALSE", + "input": "NOT EXTENDED", "output": "#FF0000" } ], @@ -747,16 +739,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -788,11 +776,11 @@ "mappings": [ { "input": 1, - "output": "TRUE" + "output": "RETRACTED" }, { "input": 0, - "output": "FALSE" + "output": "NOT RETRACTED" } ], "outputType": "scalar", @@ -813,11 +801,11 @@ "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "RETRACTED", "output": "#47FF47" }, { - "input": "FALSE", + "input": "NOT RETRACTED", "output": "#FF0000" } ], @@ -900,16 +888,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1053,16 +1037,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "TRUE", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "FALSE", - "output": "#D5D5D5" } ], "outputType": "color", @@ -1571,6 +1551,7 @@ "grow": 1 }, "props": { + "currentTabIndex": 1, "menuType": "modern", "tabSize": { "width": 1000 diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json index 9a1b10c..9d7bab3 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB/view.json @@ -441,16 +441,12 @@ }, "transforms": [ { - "fallback": "#FFFFFF", + "fallback": "#D5D5D5", "inputType": "scalar", "mappings": [ { - "input": "ON", + "input": "UNKNOWN", "output": "#FFFFFF" - }, - { - "input": "OFF", - "output": "#D5D5D5" } ], "outputType": "color", From 9f460e173bfe25bbaa893f0e20fec7b6336a4715 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 18:43:42 +0400 Subject: [PATCH 8/8] Fix VFD Docked-East --- .../Information-Docked-East-VFD/view.json | 446 +++++++++++++++--- 1 file changed, 383 insertions(+), 63 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 f36d3ec..cd23af6 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,13 +1,21 @@ { "custom": { - "PLC_list": null, + "PLC_list": [ + "MCM01", + "MCM02", + "MCM03", + "MCM04", + "MCM05", + "MCM06", + "MCM07" + ], "running_state": -1, - "state": 0, + "state": null, "views_data": [] }, "params": { "tagProps": [ - "System/MCM01/Conveyor/UL1_3_VFD1", + "System/Conveyor/APF/FL1038_2_VFD1", "value", "value", "value", @@ -378,9 +386,9 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 }, - "text": "Name" + "text": "NAME" }, "type": "ia.display.label" }, @@ -458,9 +466,9 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 }, - "text": "State" + "text": "STATE" }, "type": "ia.display.label" }, @@ -473,10 +481,32 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "FULL", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { - "expression": "case({..../State.custom.state},\r\n0, \"Off(Inactive)\",\r\n1, \"Enabled, Not Running\",\r\n2, \"Running\",\r\n3, \"Energy Management\",\r\n4, \"Jammed\",\r\n5, \"Full\",\r\n6, \"Maintenance Mode / Conveyor Stopped In Maintenance Mode\",\r\n7, \"Communication Fault\",\r\n8, \"VFD Fault\",\r\n9, \"E-Stop\",\r\n13,\"Encoder_Fault\",\r\n14,\"Stopped\",\r\n61,\"Conveyor Running in Maintenance Mode\",\r\n\"Unknown\")" + "expression": "case({..../State.custom.state},\r\n0, \"Off(Inactive)\",\r\n1, \"Enabled, Not Running\",\r\n2, \"Running\",\r\n3, \"Energy Management\",\r\n4, \"Jammed\",\r\n5, \"Full\",\r\n6, \"Maintenance Mode / Conveyor Stopped In Maintenance Mode\",\r\n7, \"Communication Fault\",\r\n8, \"VFD Fault\",\r\n9, \"E-Stop\",\r\n13,\"Encoder_Fault\",\r\n14,\"Stopped\",\r\n61,\"Conveyor Running in Maintenance Mode\",\r\n\"UNKNOWN\")" }, "type": "expr" } @@ -492,7 +522,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -562,7 +591,7 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 }, "text": "FPM" }, @@ -577,6 +606,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -590,7 +641,7 @@ }, "transforms": [ { - "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" FPM\")", + "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" FPM\")", "type": "expression" } ], @@ -600,7 +651,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -660,20 +710,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown (Freq/Velocity\u0027)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN (FREQ/VELOCITY)\u0027)", "type": "expression" }, { - "fallback": "Unknown (Freq/Velocity", + "fallback": "UNKNOWN (FREQ/VELOCITY)", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "Velocity" + "output": "VELOCITY" }, { "input": 0, - "output": "Frequency" + "output": "FREQUENCY" } ], "outputType": "scalar", @@ -686,7 +736,7 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 } }, "type": "ia.display.label" @@ -700,6 +750,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -713,7 +785,7 @@ }, "transforms": [ { - "code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n unit \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Velocity\"\n unit \u003d \" Rev/s\"\n else:\n child \u003d \"Frequency\"\n unit \u003d \" Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n if result is None or str(result) \u003d\u003d \"None\":\n return \"Unknown\"\n else:\n return str(result) + unit", + "code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n unit \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Velocity\"\n unit \u003d \" Rev/s\"\n else:\n child \u003d \"Frequency\"\n unit \u003d \" Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n if result is None or str(result) \u003d\u003d \"None\":\n return \"UNKNOWN\"\n else:\n return str(result) + unit", "type": "script" } ], @@ -723,7 +795,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -771,9 +842,9 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 }, - "text": "Amperage" + "text": "AMPERAGE" }, "type": "ia.display.label" }, @@ -786,6 +857,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -799,7 +892,7 @@ }, "transforms": [ { - "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" A\")", + "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" A\")", "type": "expression" } ], @@ -809,7 +902,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -857,9 +949,9 @@ }, "props": { "style": { - "paddingLeft": 100 + "paddingLeft": 20 }, - "text": "Voltage" + "text": "VOLTAGE" }, "type": "ia.display.label" }, @@ -872,6 +964,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -885,7 +999,7 @@ }, "transforms": [ { - "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" V\")", + "expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" V\")", "type": "expression" } ], @@ -895,7 +1009,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -943,9 +1056,9 @@ }, "props": { "style": { - "paddingLeft": 35 + "paddingLeft": 20 }, - "text": "Communication Fault Code" + "text": "COMMUNICATION FAULT CODE" }, "type": "ia.display.label" }, @@ -958,6 +1071,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -971,7 +1106,7 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)", "type": "expression" } ], @@ -981,7 +1116,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -1029,9 +1163,9 @@ }, "props": { "style": { - "paddingLeft": 80 + "paddingLeft": 20 }, - "text": "VFD Fault Code" + "text": "VFD FAULT CODE" }, "type": "ia.display.label" }, @@ -1044,6 +1178,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -1057,7 +1213,7 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)", "type": "expression" } ], @@ -1067,7 +1223,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -1115,9 +1270,9 @@ }, "props": { "style": { - "paddingLeft": 70 + "paddingLeft": 20 }, - "text": "Last VFD Fault Code" + "text": "LAST VFD FAULT CODE" }, "type": "ia.display.label" }, @@ -1130,6 +1285,28 @@ "grow": 1 }, "propConfig": { + "props.style.backgroundColor": { + "binding": { + "config": { + "path": "this.props.text" + }, + "transforms": [ + { + "fallback": "#D5D5D5", + "inputType": "scalar", + "mappings": [ + { + "input": "UNKNOWN", + "output": "#FFFFFF" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "property" + } + }, "props.text": { "binding": { "config": { @@ -1143,7 +1320,7 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)", "type": "expression" } ], @@ -1153,7 +1330,6 @@ }, "props": { "style": { - "backgroundColor": "#FFFFFF", "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 } @@ -1247,11 +1423,11 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown (60hz/30rev\u0027)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN (60hz/30rev)\u0027)", "type": "expression" }, { - "fallback": "Unknown (60hz/30rev", + "fallback": "Unknown (60hz/30rev)", "inputType": "scalar", "mappings": [ { @@ -1323,6 +1499,10 @@ { "code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Speed_At_30rev\"\n else:\n child \u003d \"Speed_At_60Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n \n return result", "type": "script" + }, + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" } ], "type": "tag" @@ -1419,6 +1599,12 @@ }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Cycle_Time_Factor" }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + } + ], "type": "tag" } } @@ -1552,7 +1738,7 @@ "mappings": [ { "input": false, - "output": "Active Maintenance Mode" + "output": "Activate Maintenance Mode" }, { "input": true, @@ -1598,7 +1784,7 @@ "component": { "onActionPerformed": { "config": { - "script": " \tpropMaintMode \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Maintenance/Speed_FPM\"\n\tvalue \u003d self.props.value\n\tsystem.tag.writeAsync([propMaintMode], [value])" + "script": "\tpropMaintMode \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+ self.view.params.tagProps[0] + \"/Maintenance/Speed_FPM\"\n\tvalue \u003d self.props.value\n\tsystem.tag.writeAsync([propMaintMode], [value])" }, "scope": "G", "type": "script" @@ -1615,15 +1801,26 @@ "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.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Maintenance_Mode" }, - "type": "expr" + "transforms": [ + { + "expression": "if(\r\n indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || \r\n indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0,\r\n {value},\r\n false\r\n)\r\n", + "type": "expression" + } + ], + "type": "tag" } }, "props.value": { "binding": { "config": { - "bidirectional": true, "fallbackDelay": 2.5, "mode": "indirect", "references": { @@ -1632,6 +1829,12 @@ }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Speed_FPM" }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + } + ], "type": "tag" } } @@ -1699,14 +1902,52 @@ ], "type": "tag" } + }, + "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" + }, + "type": "expr" + } + }, + "props.text": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Start_PB_Pressed" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "START", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "START PRESSED" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } } }, "props": { "style": { - "backgroundColor": "#2EDF43", "marginBottom": 10 - }, - "text": "Start" + } }, "type": "ia.input.button" }, @@ -1749,14 +1990,52 @@ ], "type": "tag" } + }, + "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" + }, + "type": "expr" + } + }, + "props.text": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Stop_PB_Pressed" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "STOP", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "STOP PRESSED" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } } }, "props": { "style": { - "backgroundColor": "#E51A1A", "marginBottom": 10 - }, - "text": "Stop" + } }, "type": "ia.input.button" }, @@ -1806,14 +2085,52 @@ ], "type": "tag" } + }, + "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" + }, + "type": "expr" + } + }, + "props.text": { + "binding": { + "config": { + "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" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "JOG", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "JOG PRESSED" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } } }, "props": { "style": { - "backgroundColor": "#2ACCBA", "marginBottom": 10 - }, - "text": "Jog" + } }, "type": "ia.input.button" }, @@ -1857,6 +2174,14 @@ "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": { @@ -1874,13 +2199,9 @@ "type": "expression" }, { - "fallback": "Direction", + "fallback": "Direction Backward", "inputType": "scalar", "mappings": [ - { - "input": false, - "output": "Direction Backward" - }, { "input": true, "output": "Direction Forward" @@ -1896,7 +2217,6 @@ }, "props": { "style": { - "backgroundColor": "#0068F7", "marginBottom": 10 } }, @@ -1910,7 +2230,7 @@ "name": "FlexContainer" }, "position": { - "basis": "200px", + "basis": "500px", "grow": 1 }, "props": { @@ -1923,7 +2243,7 @@ "name": "Maintenance" }, "position": { - "basis": "200px", + "basis": "400px", "grow": 1 }, "props": {