From 0959d3a42e62e30607d1830e4b36b0028bab46bc Mon Sep 17 00:00:00 2001 From: "b.makharadze" <81828475+bmidf@users.noreply.github.com> Date: Mon, 25 Aug 2025 13:19:18 +0400 Subject: [PATCH] Update Chutes --- .../Information-Docked-East-Button/view.json | 127 ++--- .../view.json | 208 +++++---- .../StatusNonPowered/view.json | 434 ++++++++++++++---- 3 files changed, 510 insertions(+), 259 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Button/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Button/view.json index ba74248..a1256cc 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Button/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-Button/view.json @@ -9,14 +9,14 @@ "MCM06", "MCM07" ], - "color": "#C2C2C2", + "color": "#FFFFFF", "running_state": -1, - "type": "JR", + "type": "PR", "views_data": [] }, "params": { "tagProps": [ - "System/MCM01/Station/JR/UL1_9_JR2", + "System/MCM04/Chute/PalletBuild/S013002", "value", "value", "value", @@ -298,7 +298,7 @@ "dom": { "onClick": { "config": { - "script": "\tsystem.perspective.closeDock(\u0027Docked-East-JR\u0027)\n\tself.getSibling(\"tabs\").props.currentTabIndex \u003d 0" + "script": "\tsystem.perspective.closeDock(\u0027Docked-East-BTN\u0027)\n\tself.getSibling(\"tabs\").props.currentTabIndex \u003d 0" }, "scope": "G", "type": "script" @@ -544,7 +544,7 @@ "style": { "paddingLeft": 20 }, - "text": "LIGHT" + "text": "BUTTON LIGHT" }, "type": "ia.display.label" }, @@ -560,92 +560,8 @@ "props.style.backgroundColor": { "binding": { "config": { - "path": "this.props.text" + "path": "view.custom.color" }, - "transforms": [ - { - "fallback": "#D5D5D5", - "inputType": "scalar", - "mappings": [ - { - "input": "UNKNOWN", - "output": "#FFFFFF" - } - ], - "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},\"UNKNOWN\")", - "type": "expression" - }, - { - "fallback": "UNKNOWN", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "ON" - }, - { - "input": 0, - "output": "OFF" - }, - { - "input": true, - "output": "ON" - }, - { - "input": false, - "output": "OFF" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "tag" - } - }, - "props.textStyle.color": { - "binding": { - "config": { - "path": "this.props.text" - }, - "transforms": [ - { - "fallback": "#000000", - "inputType": "scalar", - "mappings": [ - { - "input": "ON", - "output": "#47FF47" - }, - { - "input": "OFF", - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], "type": "property" } } @@ -654,6 +570,9 @@ "style": { "classes": "Text-Styles/Ariel-Bold-12pt", "paddingLeft": 10 + }, + "textStyle": { + "color": "#C2C2C2" } }, "type": "ia.display.label" @@ -711,7 +630,7 @@ "component": { "onActionPerformed": { "config": { - "script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Start_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])\n\ttag_path2 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/JR_PB\"\n\tsystem.tag.writeBlocking([tag_path2],[True])" + "script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Start_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])\n\ttag_path2 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/JR_PB\"\n\tsystem.tag.writeBlocking([tag_path2],[True])\n\ttag_path3 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/GS_PB\"\n\tsystem.tag.writeBlocking([tag_path3],[True])\n\ttag_path4 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Enable_Chute_PB\"\n\tsystem.tag.writeBlocking([tag_path4],[True])" }, "scope": "G", "type": "script" @@ -814,7 +733,7 @@ "mappings": [ { "input": "PR", - "output": "PACKAGE RELEASE" + "output": "ENABLE" }, { "input": "Start", @@ -930,7 +849,24 @@ "position": { "grow": 1 }, + "propConfig": { + "props.tabs": { + "binding": { + "config": { + "path": "view.custom.type" + }, + "transforms": [ + { + "code": "\t# This script runs whenever view.custom.type changes\n\tif value \u003d\u003d \"PR\":\n\t\treturn [\"Alarms\", \"Info\"]\n\telse:\n\t\treturn [\"Alarms\", \"Info\", \"Commands\"]", + "type": "script" + } + ], + "type": "property" + } + } + }, "props": { + "currentTabIndex": 1, "menuType": "modern", "tabSize": { "width": 1000 @@ -952,12 +888,7 @@ "fontWeight": "bold", "paddingLeft": 10 } - }, - "tabs": [ - "Alarms", - "Info", - "Commands" - ] + } }, "type": "ia.container.tab" } 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 276cce5..a3f0f9c 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 @@ -9,14 +9,13 @@ "MCM06", "MCM07" ], - "running_state": -1, - "state": 2, - "type": 3, - "views_data": [] + "button_type": "GS", + "type": 1 }, "params": { + "forceFaultStatus": null, "tagProps": [ - "System/MCM04/Chute/FL_CHUTE/FL1038_1CH", + "System/MCM04/Chute/D2C/S013005", "value", "value", "value", @@ -49,22 +48,7 @@ }, "persistent": true }, - "custom.running_state": { - "binding": { - "config": { - "expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n" - }, - "transforms": [ - { - "expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})", - "type": "expression" - } - ], - "type": "expr" - }, - "persistent": true - }, - "custom.state": { + "custom.button_type": { "binding": { "config": { "fallbackDelay": 2.5, @@ -73,36 +57,36 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Button_Type" }, "transforms": [ { - "expression": "if(isNull({value}), 0, {value})", + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", "type": "expression" }, { - "fallback": null, + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { - "input": 3, - "output": 3 - }, - { - "input": 2, - "output": 2 - }, - { - "input": 1, - "output": 1 - }, - { - "input": 0, - "output": 0 + "input": 5, + "output": "Chute_JR" }, { "input": 4, - "output": 4 + "output": "GS" + }, + { + "input": 3, + "output": "PR" + }, + { + "input": 2, + "output": "Start" + }, + { + "input": 1, + "output": "JR" } ], "outputType": "scalar", @@ -134,22 +118,8 @@ }, "persistent": true }, - "custom.views_data": { - "binding": { - "config": { - "struct": { - "equipment_id": "{view.params.tagProps[0]}" - }, - "waitOnAll": true - }, - "transforms": [ - { - "code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data", - "type": "script" - } - ], - "type": "expr-struct" - }, + "params.forceFaultStatus": { + "paramDirection": "input", "persistent": true }, "params.tagProps": { @@ -1576,23 +1546,16 @@ } }, "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 \"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" - }, - "type": "expr" - } - }, - "props.style.color": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" + "fc": "{session.custom.fc}", + "type": "{view.custom.button_type}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{type}/Color" }, "transforms": [ { @@ -1600,12 +1563,96 @@ "type": "expression" }, { - "fallback": "#FFFFFF", + "fallback": "#000000", "inputType": "scalar", "mappings": [ + { + "input": 0, + "output": "#C2C2C2" + }, { "input": 1, + "output": "#FF0000" + }, + { + "input": 2, + "output": "#FFA500" + }, + { + "input": 3, + "output": "#0008FF" + }, + { + "input": 4, + "output": "#00FF00" + }, + { + "input": 5, + "output": "#FFF700" + }, + { + "input": 6, + "output": "#87CEEB" + }, + { + "input": 7, + "output": "#90EE90" + }, + { + "input": 8, + "output": "#964B00" + }, + { + "input": 9, + "output": "#FFFFFF" + }, + { + "input": 10, "output": "#000000" + }, + { + "input": 11, + "output": "#8B0000" + }, + { + "input": 12, + "output": "#808080" + }, + { + "input": 13, + "output": "#8B8000" + }, + { + "input": 14, + "output": "#006400" + }, + { + "input": 15, + "output": "#FFFFC5" + }, + { + "input": 16, + "output": "#00008B" + }, + { + "input": 17, + "output": "#FF7276" + }, + { + "input": 18, + "output": "#556B2F" + }, + { + "input": 19, + "output": "#B43434" + }, + { + "input": 20, + "output": "#4682B4" + }, + { + "input": 21, + "output": "#FFD700" } ], "outputType": "color", @@ -1618,48 +1665,41 @@ "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/Disabled" + "path": "view.custom.type" }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", - "type": "expression" - }, - { - "fallback": "DISABLE", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { - "input": 1, + "input": 2, "output": "ENABLE" }, { - "input": 0, - "output": "DISABLE" + "input": 1, + "output": "GAYLORD START" } ], "outputType": "scalar", "type": "map" } ], - "type": "tag" + "type": "property" } } }, "props": { "image": { "icon": { - "path": "material/cached" + "color": "#0B0B0B" } }, "style": { "classes": "Background-Styles/Controller" + }, + "textStyle": { + "color": "#000000" } }, "type": "ia.input.button" @@ -1776,7 +1816,7 @@ } }, "props": { - "currentTabIndex": 1, + "currentTabIndex": 2, "menuType": "modern", "tabSize": { "width": 1000 diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/StatusNonPowered/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/StatusNonPowered/view.json index c75c7c1..6d260de 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/StatusNonPowered/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/StatusNonPowered/view.json @@ -1,20 +1,14 @@ { "custom": { - "disconnected": true, - "plc": "System", - "priority": 0, - "priority_string": "Medium", - "searchId": "PLC01", - "state": 0, - "state_string": "Disabled", - "type": 0 + "color": "#90EE90", + "priority": "No Active Alarms", + "state": "Normal", + "type": 3 }, "params": { "directionLeft": false, - "forceFaultStatus": null, - "forceRunningStatus": null, "tagProps": [ - "System/D2C/D2C_Chute_1", + "System/MCM04/Chute/FL_CHUTE/FL3012_1CH", "value", "value", "value", @@ -27,7 +21,7 @@ ] }, "propConfig": { - "custom.disconnected": { + "custom.color": { "binding": { "config": { "fallbackDelay": 2.5, @@ -36,61 +30,160 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color" }, "transforms": [ { - "expression": "!isGood({value})", + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", "type": "expression" + }, + { + "fallback": "#000000", + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "#C2C2C2" + }, + { + "input": 1, + "output": "#FF0000" + }, + { + "input": 2, + "output": "#FFA500" + }, + { + "input": 3, + "output": "#0008FF" + }, + { + "input": 4, + "output": "#00FF00" + }, + { + "input": 5, + "output": "#FFF700" + }, + { + "input": 6, + "output": "#87CEEB" + }, + { + "input": 7, + "output": "#90EE90" + }, + { + "input": 8, + "output": "#964B00" + }, + { + "input": 9, + "output": "#FFFFFF" + }, + { + "input": 10, + "output": "#000000" + }, + { + "input": 11, + "output": "#8B0000" + }, + { + "input": 12, + "output": "#808080" + }, + { + "input": 13, + "output": "#8B8000" + }, + { + "input": 14, + "output": "#006400" + }, + { + "input": 15, + "output": "#FFFFC5" + }, + { + "input": 16, + "output": "#00008B" + }, + { + "input": 17, + "output": "#FF7276" + }, + { + "input": 18, + "output": "#556B2F" + }, + { + "input": 19, + "output": "#B43434" + }, + { + "input": 20, + "output": "#4682B4" + }, + { + "input": 21, + "output": "#FFD700" + } + ], + "outputType": "color", + "type": "map" } ], "type": "tag" }, "persistent": true }, - "custom.plc": { - "binding": { - "config": { - "path": "view.params.tagProps[0]" - }, - "transforms": [ - { - "expression": "split({value}, \"/\")[0]", - "type": "expression" - } - ], - "type": "property" - }, - "persistent": true - }, "custom.priority": { "binding": { "config": { - "expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n if(\r\n {view.custom.state} \u003d 0 || {view.custom.state} \u003d 3,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 3, 3,\r\n 0\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n if(\r\n {view.custom.state} \u003e\u003d 1 \u0026\u0026 {view.custom.state} \u003c\u003d 6,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 1, 2,\r\n 2, 3,\r\n 3, 3,\r\n 4, 1,\r\n 5, 3,\r\n 6, 3,\r\n 0\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n if(\r\n {view.custom.state} \u003e\u003d 1 \u0026\u0026 {view.custom.state} \u003c\u003d 4,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 1, 2,\r\n 2, 3,\r\n 3, 3,\r\n 4, 1,\r\n 0\r\n ),\r\n 0\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}/Priority" }, - "type": "expr" - }, - "persistent": true - }, - "custom.priority_string": { - "binding": { - "config": { - "expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 3, \u0027Low\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 1, \u0027Low\u0027,\r\n 2, \u0027Low\u0027,\r\n 3, \u0027No Active Alarms\u0027,\r\n 4, \u0027Low\u0027,\r\n 5, \u0027Low\u0027,\r\n 6, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 1, \u0027No Active Alarms\u0027,\r\n 2, \u0027Low\u0027,\r\n 3, \u0027Low\u0027,\r\n 4, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027No Active Alarms\u0027,\r\n 1, \u0027Low\u0027,\r\n 2, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n \u0027Unknown\u0027\r\n )\r\n )\r\n )\r\n)\r\n" - }, - "type": "expr" - }, - "onChange": { - "enabled": null, - "script": "\tif self.custom.priority not in [1, 2, 3, 4, 5, 6, 0]:\n\t self.custom.priority_string \u003d \"Unknown\"" - }, - "persistent": true - }, - "custom.searchId": { - "binding": { - "config": { - "path": "session.custom.searchId" - }, - "type": "property" + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": null, + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "No Active Alarms" + }, + { + "input": 1, + "output": "High" + }, + { + "input": 2, + "output": "Medium" + }, + { + "input": 3, + "output": "Low" + }, + { + "input": 4, + "output": "Diagnostic" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" }, "persistent": true }, @@ -103,27 +196,222 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" }, "transforms": [ { "expression": "coalesce({value},{view.params.forceFaultStatus},0)", "type": "expression" + }, + { + "fallback": "Unknown", + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "Closed" + }, + { + "input": 1, + "output": "Actuated" + }, + { + "input": 2, + "output": "Communication Faulted" + }, + { + "input": 3, + "output": "Conveyor Running In Maintenance Mode" + }, + { + "input": 4, + "output": "Disabled" + }, + { + "input": 5, + "output": "Disconnected" + }, + { + "input": 6, + "output": "Stopped" + }, + { + "input": 7, + "output": "Enabled Not Running" + }, + { + "input": 8, + "output": "Encoder Fault" + }, + { + "input": 9, + "output": "Energy Management" + }, + { + "input": 10, + "output": "ESTOP Was Actuated" + }, + { + "input": 11, + "output": "EStopped" + }, + { + "input": 12, + "output": "EStopped Locally" + }, + { + "input": 13, + "output": "Extended Faulted" + }, + { + "input": 14, + "output": "Full" + }, + { + "input": 15, + "output": "Gaylord Start Pressed" + }, + { + "input": 16, + "output": "Jam Fault" + }, + { + "input": 17, + "output": "Jammed" + }, + { + "input": 18, + "output": "Loading Allowed" + }, + { + "input": 19, + "output": "Loading Not Allowed" + }, + { + "input": 20, + "output": "Low Air Pressure Fault Was Present" + }, + { + "input": 21, + "output": "Maintenance Mode" + }, + { + "input": 22, + "output": "Conveyor Stopped In Maintenance Mode" + }, + { + "input": 23, + "output": "Motor Faulted" + }, + { + "input": 24, + "output": "Motor Was Faulted" + }, + { + "input": 25, + "output": "Normal" + }, + { + "input": 26, + "output": "Off Inactive" + }, + { + "input": 27, + "output": "Open" + }, + { + "input": 28, + "output": "PLC Ready To Run" + }, + { + "input": 29, + "output": "Package Release Pressed" + }, + { + "input": 30, + "output": "Power Branch Was Faulted" + }, + { + "input": 31, + "output": "Pressed" + }, + { + "input": 32, + "output": "Ready To Receive" + }, + { + "input": 33, + "output": "Running" + }, + { + "input": 34, + "output": "Started" + }, + { + "input": 35, + "output": "Stopped" + }, + { + "input": 36, + "output": "System Started" + }, + { + "input": 37, + "output": "Unknown" + }, + { + "input": 38, + "output": "VFD Fault" + }, + { + "input": 39, + "output": "Conveyor Running In Power Saving Mode" + }, + { + "input": 40, + "output": "Conveyor Jogging In Maintenance Mode" + }, + { + "input": 41, + "output": "VFD Reset Required" + }, + { + "input": 42, + "output": "Jam Reset Push Button Pressed" + }, + { + "input": 43, + "output": "Start Push Button Pressed" + }, + { + "input": 44, + "output": "Stop Push Button Pressed" + }, + { + "input": 45, + "output": "No Container" + }, + { + "input": 46, + "output": "Ready To Be Enabled" + }, + { + "input": 47, + "output": "Half Full" + }, + { + "input": 48, + "output": "Enabled" + } + ], + "outputType": "scalar", + "type": "map" } ], "type": "tag" }, "persistent": true }, - "custom.state_string": { - "binding": { - "config": { - "expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 3, \u0027Full\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 1, \u0027No Container\u0027,\r\n 2, \u0027Ready To Be Enabled\u0027,\r\n 3, \u0027Enabled\u0027,\r\n 4, \u0027Half Full\u0027,\r\n 5, \u0027Full\u0027,\r\n 6, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 1, \u0027Enabled\u0027,\r\n 2, \u0027Half Full\u0027,\r\n 3, \u0027Full\u0027,\r\n 4, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Enabled\u0027,\r\n 1, \u0027Full\u0027,\r\n 2, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n \u0027Unknown\u0027\r\n )\r\n )\r\n )\r\n)\r\n" - }, - "type": "expr" - }, - "persistent": true - }, "custom.type": { "binding": { "config": { @@ -149,14 +437,6 @@ "paramDirection": "input", "persistent": true }, - "params.forceFaultStatus": { - "paramDirection": "input", - "persistent": true - }, - "params.forceRunningStatus": { - "paramDirection": "input", - "persistent": true - }, "params.tagProps": { "paramDirection": "inout", "persistent": true @@ -195,7 +475,7 @@ "props.elements[0].fill.paint": { "binding": { "config": { - "expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if( \r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 1, \u0027#FF4487\u0027,\r\n 2, \u0027#92FF00\u0027,\r\n 3, \u0027#CCFFCC\u0027,\r\n 4, \u0027#FFFF00\u0027,\r\n 5, \u0027#0000FF\u0027,\r\n 6, \u0027#FF8C00\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#CCFFCC\u0027,\r\n 2, \u0027#FFFF00\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3, \r\n case(\r\n {view.custom.state},\r\n 0, \u0027#CCFFCC\u0027,\r\n 1, \u0027#0000FF\u0027,\r\n 2, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n )\r\n )\r\n)\r\n" + "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#FFFFFF\",\r\n {view.custom.color}\r\n)\r\n" }, "type": "expr" } @@ -260,19 +540,19 @@ "inputType": "scalar", "mappings": [ { - "input": 1, + "input": "High", "output": "Alarms-Styles/High" }, { - "input": 2, + "input": "Medium", "output": "Alarms-Styles/Medium" }, { - "input": 3, + "input": "Low", "output": "Alarms-Styles/Low" }, { - "input": 4, + "input": "Diagnostic", "output": "Alarms-Styles/Diagnostic" } ], @@ -286,7 +566,7 @@ "meta.tooltip.text": { "binding": { "config": { - "expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" + "expression": "if(\n {view.custom.state} !\u003d \"Closed\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" }