diff --git a/.resources/0e7f41d01cb9b90e38353404e6408aa5f8d372d04c2bbc9f777c0c632c490c3d b/.resources/0e7f41d01cb9b90e38353404e6408aa5f8d372d04c2bbc9f777c0c632c490c3d new file mode 100644 index 00000000..5382c7a4 Binary files /dev/null and b/.resources/0e7f41d01cb9b90e38353404e6408aa5f8d372d04c2bbc9f777c0c632c490c3d differ diff --git a/.resources/4f6dbe18ba1614ce98f4e8d40249f03d8e994f109bc64e519aee553f2ef368f2 b/.resources/4f6dbe18ba1614ce98f4e8d40249f03d8e994f109bc64e519aee553f2ef368f2 deleted file mode 100644 index 2fd82116..00000000 --- a/.resources/4f6dbe18ba1614ce98f4e8d40249f03d8e994f109bc64e519aee553f2ef368f2 +++ /dev/null @@ -1,302 +0,0 @@ -{ - "custom": { - "state": 0, - "string": "Clear" - }, - "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": "Clear", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "Clear" - }, - { - "input": 2, - "output": "Blocked" - }, - { - "input": 3, - "output": "Disabled" - }, - { - "input": 4, - "output": "Jammed" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "property" - }, - "persistent": true - }, - "params.tagProps": { - "paramDirection": "input", - "persistent": true - } - }, - "props": { - "defaultSize": { - "height": 25, - "width": 100 - } - }, - "root": { - "children": [ - { - "meta": { - "name": "arrow_icon" - }, - "position": { - "height": 1, - "width": 1 - }, - "propConfig": { - "props.elements[1].fill.paint": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "#00FF00" - }, - { - "input": 2, - "output": "#000000" - }, - { - "input": 3, - "output": "#800080" - }, - { - "input": 4, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - }, - "props.elements[3].fill.paint": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "#00FF00" - }, - { - "input": 2, - "output": "#000000" - }, - { - "input": 3, - "output": "#800080" - }, - { - "input": 4, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - } - }, - "props": { - "elements": [ - { - "id": "defs1", - "name": "defs1", - "type": "defs" - }, - { - "d": "M 21.343364,12.531563 2.1710548,22.117718 V 2.9454084 Z", - "fill": {}, - "id": "path1", - "name": "path1", - "stroke": { - "paint": "#000000", - "width": "1.91723" - }, - "type": "path" - }, - { - "id": "line1", - "name": "line1", - "stroke": { - "dasharray": "2, 2", - "paint": "#000000", - "width": "3.06818" - }, - "type": "line", - "x1": "22.528276", - "x2": "96.180107", - "y1": "12.531563", - "y2": "12.531563" - }, - { - "fill": {}, - "height": "19.17231", - "id": "rect1", - "name": "rect1", - "stroke": { - "paint": "#000000", - "width": "1.91723" - }, - "type": "rect", - "width": "5.7516928", - "x": "92.519203", - "y": "3.1996493" - } - ], - "preserveAspectRatio": "none", - "viewBox": "0 0 100 25" - }, - "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_photoeyes" - }, - "type": "property" - } - } - }, - "props": { - "mode": "percent", - "style": { - "cursor": "pointer", - "overflow": "hidden", - "userSelect": "none" - } - }, - "type": "ia.container.coord" - } -} \ No newline at end of file diff --git a/.resources/99482c1b9d28fd979c2ca9552b23ab2a712f8ebe1c320ecb7270181cebd8f741 b/.resources/99482c1b9d28fd979c2ca9552b23ab2a712f8ebe1c320ecb7270181cebd8f741 new file mode 100644 index 00000000..1d71732e --- /dev/null +++ b/.resources/99482c1b9d28fd979c2ca9552b23ab2a712f8ebe1c320ecb7270181cebd8f741 @@ -0,0 +1,554 @@ +{ + "custom": { + "color": "#C2C2C2", + "priority": "No Active Alarms", + "state": "Closed" + }, + "params": { + "tagProps": [ + "System/MCM02/Photoeyes/PE/S03_CH107_PE1", + "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": 25, + "width": 100 + } + }, + "root": { + "children": [ + { + "meta": { + "name": "arrow_icon" + }, + "position": { + "height": 1, + "width": 1 + }, + "propConfig": { + "props.elements[1].fill.paint": { + "binding": { + "config": { + "path": "view.custom.color" + }, + "type": "property" + } + }, + "props.elements[3].fill.paint": { + "binding": { + "config": { + "path": "view.custom.color" + }, + "type": "property" + } + } + }, + "props": { + "elements": [ + { + "id": "defs1", + "name": "defs1", + "type": "defs" + }, + { + "d": "M 21.343364,12.531563 2.1710548,22.117718 V 2.9454084 Z", + "fill": {}, + "id": "path1", + "name": "path1", + "stroke": { + "paint": "#000000", + "width": "1.91723" + }, + "type": "path" + }, + { + "id": "line1", + "name": "line1", + "stroke": { + "dasharray": "2, 2", + "paint": "#000000", + "width": "3.06818" + }, + "type": "line", + "x1": "22.528276", + "x2": "96.180107", + "y1": "12.531563", + "y2": "12.531563" + }, + { + "fill": {}, + "height": "19.17231", + "id": "rect1", + "name": "rect1", + "stroke": { + "paint": "#000000", + "width": "1.91723" + }, + "type": "rect", + "width": "5.7516928", + "x": "92.519203", + "y": "3.1996493" + } + ], + "preserveAspectRatio": "none", + "viewBox": "0 0 100 25" + }, + "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_photoeyes" + }, + "type": "property" + } + } + }, + "props": { + "mode": "percent", + "style": { + "cursor": "pointer", + "overflow": "hidden", + "userSelect": "none" + } + }, + "type": "ia.container.coord" + } +} \ No newline at end of file diff --git a/.resources/bef6d2511bdd94fe146a79ab730882df01e7e3b7688cb8d0dbcea329ba2d1b2a b/.resources/bef6d2511bdd94fe146a79ab730882df01e7e3b7688cb8d0dbcea329ba2d1b2a deleted file mode 100644 index bb80fecf..00000000 Binary files a/.resources/bef6d2511bdd94fe146a79ab730882df01e7e3b7688cb8d0dbcea329ba2d1b2a and /dev/null differ diff --git a/.resources/c8ba7d9cf23159b200d5ab33edb24b29806ac561bfcd09c6c1fb024989aab5a7 b/.resources/c8ba7d9cf23159b200d5ab33edb24b29806ac561bfcd09c6c1fb024989aab5a7 deleted file mode 100644 index ed00b101..00000000 Binary files a/.resources/c8ba7d9cf23159b200d5ab33edb24b29806ac561bfcd09c6c1fb024989aab5a7 and /dev/null differ diff --git a/.resources/ed5b678bd3010c8600fe1b67da6189fe9c06f288eb2271c8b7486c07f4e7fa81 b/.resources/ed5b678bd3010c8600fe1b67da6189fe9c06f288eb2271c8b7486c07f4e7fa81 new file mode 100644 index 00000000..696bbfab Binary files /dev/null and b/.resources/ed5b678bd3010c8600fe1b67da6189fe9c06f288eb2271c8b7486c07f4e7fa81 differ diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/resource.json index 84fc62e2..8083d298 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-15T11:45:23Z" + "timestamp": "2025-09-15T11:56:39Z" }, - "lastModificationSignature": "0be9548b581a833e5a244d5e32983b65384a391dd6c6573ffc025f9f62c5c58b" + "lastModificationSignature": "c1649548a986b1d40973d4c3f3d2b8aabd86b82300806ceeea54899f8c08a501" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/thumbnail.png b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/thumbnail.png index bb80fecf..5382c7a4 100644 Binary files a/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/thumbnail.png and b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/thumbnail.png differ 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 8dd72ee8..1e646005 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-15T11:46:51Z" + "timestamp": "2025-09-15T11:56:20Z" }, - "lastModificationSignature": "effb1aa2b73c651bf8a606e6b95cff4003d96142aab4f52e4172f0a080988e7f" + "lastModificationSignature": "188ee7008a302fdde7a25779773a75f1fc470d78eeb8140ebc260857183835af" } } \ 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 ed00b101..696bbfab 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/Photoeye_Chute/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/resource.json index 32124e40..03ce480c 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-15T11:43:57Z" + "timestamp": "2025-09-15T12:01:44Z" }, - "lastModificationSignature": "25484e18df1cac8447b002efb407436ea688d4c241c5fe5fff6b460cb9eec4d4" + "lastModificationSignature": "ff50ea1fb6fc1a9d6541ce8f244d2f1f5282acb3cb53ff840dc2c7d7d77f6e09" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/view.json index 2fd82116..1d71732e 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Photoeye_Chute/view.json @@ -1,11 +1,12 @@ { "custom": { - "state": 0, - "string": "Clear" + "color": "#C2C2C2", + "priority": "No Active Alarms", + "state": "Closed" }, "params": { "tagProps": [ - "value", + "System/MCM02/Photoeyes/PE/S03_CH107_PE1", "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,38 +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": [ { - "fallback": "Clear", + "expression": "coalesce({value},0)", + "type": "expression" + }, + { + "fallback": "Unknown", "inputType": "scalar", "mappings": [ + { + "input": 0, + "output": "Closed" + }, { "input": 1, - "output": "Clear" + "output": "Actuated" }, { "input": 2, - "output": "Blocked" + "output": "Communication Faulted" }, { "input": 3, - "output": "Disabled" + "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,68 +439,16 @@ "props.elements[1].fill.paint": { "binding": { "config": { - "path": "view.custom.state" + "path": "view.custom.color" }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "#00FF00" - }, - { - "input": 2, - "output": "#000000" - }, - { - "input": 3, - "output": "#800080" - }, - { - "input": 4, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], "type": "property" } }, "props.elements[3].fill.paint": { "binding": { "config": { - "path": "view.custom.state" + "path": "view.custom.color" }, - "transforms": [ - { - "fallback": "#00FF00", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "#00FF00" - }, - { - "input": 2, - "output": "#000000" - }, - { - "input": 3, - "output": "#800080" - }, - { - "input": 4, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], "type": "property" } } @@ -275,7 +527,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" }