diff --git a/.resources/14e92f6eb816c121edf5ef38d4def0a889a81c2fae5b6355a30e183e0842bdec b/.resources/14e92f6eb816c121edf5ef38d4def0a889a81c2fae5b6355a30e183e0842bdec deleted file mode 100644 index c3dac6a7..00000000 Binary files a/.resources/14e92f6eb816c121edf5ef38d4def0a889a81c2fae5b6355a30e183e0842bdec and /dev/null differ diff --git a/.resources/440cb71c7112fcab55c416a156ad09e0ef43b6a8adf2f633d5be3d16a714d14b b/.resources/440cb71c7112fcab55c416a156ad09e0ef43b6a8adf2f633d5be3d16a714d14b deleted file mode 100644 index 83162644..00000000 Binary files a/.resources/440cb71c7112fcab55c416a156ad09e0ef43b6a8adf2f633d5be3d16a714d14b and /dev/null differ diff --git a/.resources/ded7ae1d4374a5e15be878d7463a3dc516627b33de0d4d982d69db71978a2f29 b/.resources/4f526776cf305a083af984da01e9d398b4fdf4bc99251f0f5d893e0ecc45f87a similarity index 90% rename from .resources/ded7ae1d4374a5e15be878d7463a3dc516627b33de0d4d982d69db71978a2f29 rename to .resources/4f526776cf305a083af984da01e9d398b4fdf4bc99251f0f5d893e0ecc45f87a index c6da5b76..7e5c25ca 100644 --- a/.resources/ded7ae1d4374a5e15be878d7463a3dc516627b33de0d4d982d69db71978a2f29 +++ b/.resources/4f526776cf305a083af984da01e9d398b4fdf4bc99251f0f5d893e0ecc45f87a @@ -6,7 +6,7 @@ }, "params": { "tagProps": [ - "value", + "System/MCM01/DPM/PS3_1_DPM1", "value", "value", "value", @@ -477,22 +477,7 @@ "dom": { "onClick": { "config": { - "script": "\tsystem.perspective.openDock(\u0027Docked-East-DS\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" - }, - "scope": "G", - "type": "script" - }, - "onDoubleClick": { - "config": { - "script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})\n\t" - }, - "enabled": false, - "scope": "G", - "type": "script" - }, - "onMouseEnter": { - "config": { - "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" + "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})" }, "scope": "G", "type": "script" @@ -549,6 +534,14 @@ }, "type": "expr" } + }, + "meta.visible": { + "binding": { + "config": { + "path": "session.custom.alarm_filter.show_dpm_mcm" + }, + "type": "property" + } } }, "props": { diff --git a/.resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef b/.resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef new file mode 100644 index 00000000..17e35489 --- /dev/null +++ b/.resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef @@ -0,0 +1,540 @@ +{ + "custom": { + "color": "#C2C2C2", + "priority": "No Active Alarms", + "state": "Closed" + }, + "params": { + "tagProps": [ + "System/MCM01/EPC/UL14_1_EPC1", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value" + ] + }, + "propConfig": { + "custom.color": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color" + }, + "transforms": [ + { + "expression": "coalesce({value},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.priority": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority" + }, + "transforms": [ + { + "expression": "coalesce({value},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 + }, + "custom.state": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" + }, + "transforms": [ + { + "expression": "coalesce({value},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" + }, + { + "input": 49, + "output": "Tipper Faulted" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + }, + "persistent": true + }, + "params.tagProps": { + "paramDirection": "input", + "persistent": true + } + }, + "props": { + "defaultSize": { + "height": 30, + "width": 30 + } + }, + "root": { + "children": [ + { + "meta": { + "name": "EPC" + }, + "position": { + "height": 1, + "width": 1 + }, + "propConfig": { + "meta.visible": { + "binding": { + "config": { + "path": "session.custom.alarm_filter.show_epc" + }, + "type": "property" + } + }, + "props.elements[2].fill.paint": { + "binding": { + "config": { + "path": "view.custom.color" + }, + "type": "property" + } + } + }, + "props": { + "elements": [ + { + "fill": { + "paint": "#FFFF00" + }, + "height": "20", + "name": "rect", + "type": "rect", + "width": "20", + "x": "0", + "y": "0" + }, + { + "d": "M 0,0 H 20 V 20 H 0 Z", + "fill": { + "paint": "transparent" + }, + "name": "path", + "stroke": { + "paint": "#000000", + "width": "1.5" + }, + "type": "path" + }, + { + "d": "m 17,10.5 a 7,7 0 0 1 -7,7 7,7 0 0 1 -7,-7 7,7 0 0 1 7,-7 7,7 0 0 1 7,7 z", + "fill": {}, + "name": "path", + "stroke": { + "paint": "#000000", + "width": "1" + }, + "type": "path" + } + ], + "viewBox": "0 0 20 20" + }, + "type": "ia.shapes.svg" + } + ], + "events": { + "dom": { + "onClick": { + "config": { + "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})" + }, + "scope": "G", + "type": "script" + } + } + }, + "meta": { + "name": "root", + "tooltip": { + "enabled": true + } + }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "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" + } + }, + "meta.visible": { + "binding": { + "config": { + "path": "session.custom.alarm_filter.show_epc" + }, + "type": "property" + } + } + }, + "props": { + "mode": "percent", + "style": { + "cursor": "pointer" + } + }, + "type": "ia.container.coord" + } +} \ No newline at end of file diff --git a/.resources/8ee05e53b434f4e92119c1734a0395c102ff6f8b09bb5962bf056e1c13eb4ce1 b/.resources/8ee05e53b434f4e92119c1734a0395c102ff6f8b09bb5962bf056e1c13eb4ce1 new file mode 100644 index 00000000..c40a764c Binary files /dev/null and b/.resources/8ee05e53b434f4e92119c1734a0395c102ff6f8b09bb5962bf056e1c13eb4ce1 differ diff --git a/.resources/a09aaef60ba4138b31f991035c7fbf0727dabb41d040bd98f404235800a78236 b/.resources/a09aaef60ba4138b31f991035c7fbf0727dabb41d040bd98f404235800a78236 new file mode 100644 index 00000000..583520a8 Binary files /dev/null and b/.resources/a09aaef60ba4138b31f991035c7fbf0727dabb41d040bd98f404235800a78236 differ diff --git a/.resources/ab76162f6796a6365c20f2c12806c8b2508c95a175a33ad2bfd2d980313cfd68 b/.resources/ab76162f6796a6365c20f2c12806c8b2508c95a175a33ad2bfd2d980313cfd68 deleted file mode 100644 index 472f7aa5..00000000 --- a/.resources/ab76162f6796a6365c20f2c12806c8b2508c95a175a33ad2bfd2d980313cfd68 +++ /dev/null @@ -1,242 +0,0 @@ -{ - "custom": { - "state": 0, - "string": "Idle" - }, - "params": { - "tagProps": [ - "value", - "value", - "value", - "value", - "value", - "value", - "value", - "value", - "value", - "value" - ] - }, - "propConfig": { - "custom.state": { - "binding": { - "config": { - "fallbackDelay": 1, - "mode": "indirect", - "references": { - "0": "{view.params.tagProps[0]}", - "fc": "{session.custom.fc}" - }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" - }, - "transforms": [ - { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", - "type": "expression" - }, - { - "fallback": 0, - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": 1 - }, - { - "input": 2, - "output": 2 - }, - { - "input": 3, - "output": 3 - }, - { - "input": 4, - "output": 4 - }, - { - "input": 5, - "output": 5 - }, - { - "input": 6, - "output": 6 - }, - { - "input": 7, - "output": 7 - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "tag" - }, - "persistent": true - }, - "custom.string": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "Unknown", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "Idle" - }, - { - "input": 1, - "output": "Actuated" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "property" - }, - "persistent": true - }, - "params.tagProps": { - "paramDirection": "input", - "persistent": true - } - }, - "props": { - "defaultSize": { - "height": 30, - "width": 30 - } - }, - "root": { - "children": [ - { - "meta": { - "name": "EPC" - }, - "position": { - "height": 1, - "width": 1 - }, - "propConfig": { - "meta.visible": { - "binding": { - "config": { - "path": "session.custom.alarm_filter.show_epc" - }, - "type": "property" - } - }, - "props.elements[2].fill.paint": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - } - }, - "props": { - "elements": [ - { - "fill": { - "paint": "#FFFF00" - }, - "height": "20", - "name": "rect", - "type": "rect", - "width": "20", - "x": "0", - "y": "0" - }, - { - "d": "M 0,0 H 20 V 20 H 0 Z", - "fill": { - "paint": "transparent" - }, - "name": "path", - "stroke": { - "paint": "#000000", - "width": "1.5" - }, - "type": "path" - }, - { - "d": "m 17,10.5 a 7,7 0 0 1 -7,7 7,7 0 0 1 -7,-7 7,7 0 0 1 7,-7 7,7 0 0 1 7,7 z", - "fill": {}, - "name": "path", - "stroke": { - "paint": "#000000", - "width": "1" - }, - "type": "path" - } - ], - "viewBox": "0 0 20 20" - }, - "type": "ia.shapes.svg" - } - ], - "events": { - "dom": { - "onClick": { - "config": { - "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})" - }, - "scope": "G", - "type": "script" - } - } - }, - "meta": { - "name": "root", - "tooltip": { - "enabled": true - } - }, - "propConfig": { - "meta.tooltip.text": { - "binding": { - "config": { - "expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}\n" - }, - "type": "expr" - } - }, - "meta.visible": { - "binding": { - "config": { - "path": "session.custom.alarm_filter.show_epc" - }, - "type": "property" - } - } - }, - "props": { - "mode": "percent", - "style": { - "cursor": "pointer" - } - }, - "type": "ia.container.coord" - } -} \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/resource.json index dd1a08d1..56c20456 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-15T07:54:34Z" + "timestamp": "2025-09-15T08:00:17Z" }, - "lastModificationSignature": "b5bf685317bebdc10e48d04375c62079f4fe8d621cca7b2fef36cfdf4eaa5a7a" + "lastModificationSignature": "e35e0947736bcf5001e6d731f59c24101bf6e73da3dc7da34b37b5d73233d8b8" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/thumbnail.png b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/thumbnail.png index 83162644..583520a8 100644 Binary files a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/thumbnail.png and b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM02-NC SORTER/thumbnail.png differ diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/resource.json index b50ffab5..f188fee7 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-15T07:59:28Z" + "timestamp": "2025-09-15T08:05:24Z" }, - "lastModificationSignature": "861ed0c68a6f7beb8dccacc0c2bae2985c76bc417ed791f2a27af18fd7ad10cb" + "lastModificationSignature": "ed942aa91809b3b0f3d9b21f190c3306a01fefa440b84a331a276da45a991496" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/view.json index c6da5b76..7e5c25ca 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/DPM/view.json @@ -6,7 +6,7 @@ }, "params": { "tagProps": [ - "value", + "System/MCM01/DPM/PS3_1_DPM1", "value", "value", "value", @@ -477,22 +477,7 @@ "dom": { "onClick": { "config": { - "script": "\tsystem.perspective.openDock(\u0027Docked-East-DS\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" - }, - "scope": "G", - "type": "script" - }, - "onDoubleClick": { - "config": { - "script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})\n\t" - }, - "enabled": false, - "scope": "G", - "type": "script" - }, - "onMouseEnter": { - "config": { - "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" + "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})" }, "scope": "G", "type": "script" @@ -549,6 +534,14 @@ }, "type": "expr" } + }, + "meta.visible": { + "binding": { + "config": { + "path": "session.custom.alarm_filter.show_dpm_mcm" + }, + "type": "property" + } } }, "props": { diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/resource.json index 9fad6108..00814d54 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-12T08:04:49Z" + "timestamp": "2025-09-15T08:06:01Z" }, - "lastModificationSignature": "a406cd355a0a8695252790325d0e7d2cb522ac88b78e71b3ee3b62b599262b70" + "lastModificationSignature": "2f038434d88b0231ba0d353884d036de5c4206e1d2b7184d37405106460c42f8" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/thumbnail.png b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/thumbnail.png index c3dac6a7..c40a764c 100644 Binary files a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/thumbnail.png and b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/thumbnail.png differ diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json index 472f7aa5..17e35489 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json @@ -1,11 +1,12 @@ { "custom": { - "state": 0, - "string": "Idle" + "color": "#C2C2C2", + "priority": "No Active Alarms", + "state": "Closed" }, "params": { "tagProps": [ - "value", + "System/MCM01/EPC/UL14_1_EPC1", "value", "value", "value", @@ -18,53 +19,162 @@ ] }, "propConfig": { - "custom.state": { + "custom.color": { "binding": { "config": { - "fallbackDelay": 1, + "fallbackDelay": 2.5, "mode": "indirect", "references": { "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": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},0)", "type": "expression" }, { - "fallback": 0, + "fallback": "#000000", "inputType": "scalar", "mappings": [ + { + "input": 0, + "output": "#C2C2C2" + }, { "input": 1, - "output": 1 + "output": "#FF0000" }, { "input": 2, - "output": 2 + "output": "#FFA500" }, { "input": 3, - "output": 3 + "output": "#0008FF" }, { "input": 4, - "output": 4 + "output": "#00FF00" }, { "input": 5, - "output": 5 + "output": "#FFF700" }, { "input": 6, - "output": 6 + "output": "#87CEEB" }, { "input": 7, - "output": 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.priority": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority" + }, + "transforms": [ + { + "expression": "coalesce({value},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", @@ -75,30 +185,232 @@ }, "persistent": true }, - "custom.string": { + "custom.state": { "binding": { "config": { - "path": "view.custom.state" + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" }, "transforms": [ + { + "expression": "coalesce({value},0)", + "type": "expression" + }, { "fallback": "Unknown", "inputType": "scalar", "mappings": [ { "input": 0, - "output": "Idle" + "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" + }, + { + "input": 49, + "output": "Tipper Faulted" } ], "outputType": "scalar", "type": "map" } ], - "type": "property" + "type": "tag" }, "persistent": true }, @@ -135,22 +447,8 @@ "props.elements[2].fill.paint": { "binding": { "config": { - "path": "view.custom.state" + "path": "view.custom.color" }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], "type": "property" } } @@ -217,7 +515,7 @@ "meta.tooltip.text": { "binding": { "config": { - "expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}\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" }