From d0ab14c2dbb661513edc1e73b4e4ba5ab8693f24 Mon Sep 17 00:00:00 2001 From: Salijoghli <107577102+Salijoghli@users.noreply.github.com> Date: Mon, 15 Sep 2025 12:09:53 +0400 Subject: [PATCH] modified encoder view --- ...1acf86e5c3f32a12ce0231562d83d3ae7dab2b1d4} | 8 - ...b688467e6189aff2a95ee6a1e9696db36e2be1d481 | 556 ++++++++++++++++++ ...bf2d73fb3f070336639d49d327a3d23c4885d3fffc | 259 -------- .../autStand/Equipment/EPC/resource.json | 4 +- .../views/autStand/Equipment/EPC/view.json | 8 - .../autStand/Equipment/Encoder/resource.json | 4 +- .../autStand/Equipment/Encoder/view.json | 413 +++++++++++-- 7 files changed, 915 insertions(+), 337 deletions(-) rename .resources/{6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef => 92f6fdfc986a7204d798f871acf86e5c3f32a12ce0231562d83d3ae7dab2b1d4} (98%) create mode 100644 .resources/de81e12e6a88dd362c64cdb688467e6189aff2a95ee6a1e9696db36e2be1d481 delete mode 100644 .resources/eec244e20e1bb764ca0a7cbf2d73fb3f070336639d49d327a3d23c4885d3fffc diff --git a/.resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef b/.resources/92f6fdfc986a7204d798f871acf86e5c3f32a12ce0231562d83d3ae7dab2b1d4 similarity index 98% rename from .resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef rename to .resources/92f6fdfc986a7204d798f871acf86e5c3f32a12ce0231562d83d3ae7dab2b1d4 index 17e35489..ee5ee3a9 100644 --- a/.resources/6dca6197506585e05e6ff6b9312e8c150e7797a58e0e53820ad52565471f77ef +++ b/.resources/92f6fdfc986a7204d798f871acf86e5c3f32a12ce0231562d83d3ae7dab2b1d4 @@ -436,14 +436,6 @@ "width": 1 }, "propConfig": { - "meta.visible": { - "binding": { - "config": { - "path": "session.custom.alarm_filter.show_epc" - }, - "type": "property" - } - }, "props.elements[2].fill.paint": { "binding": { "config": { diff --git a/.resources/de81e12e6a88dd362c64cdb688467e6189aff2a95ee6a1e9696db36e2be1d481 b/.resources/de81e12e6a88dd362c64cdb688467e6189aff2a95ee6a1e9696db36e2be1d481 new file mode 100644 index 00000000..26ce88f9 --- /dev/null +++ b/.resources/de81e12e6a88dd362c64cdb688467e6189aff2a95ee6a1e9696db36e2be1d481 @@ -0,0 +1,556 @@ +{ + "custom": { + "color": "#C2C2C2", + "priority": "No Active Alarms" + }, + "params": { + "tagProps": [ + "System/MCM01/Encoder/UL14_1_ENSH1", + "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" + } + } + }, + "props": { + "defaultSize": { + "height": 20, + "width": 20 + } + }, + "root": { + "children": [ + { + "meta": { + "name": "EncoderIcon" + }, + "position": { + "height": 1, + "width": 1 + }, + "propConfig": { + "props.elements[0].fill.paint": { + "binding": { + "config": { + "path": "view.custom.color" + }, + "type": "property" + } + } + }, + "props": { + "elements": [ + { + "cx": 12, + "cy": "12", + "fill": {}, + "name": "statusCircle", + "rx": "10", + "ry": "10", + "stroke": { + "paint": "#000000", + "width": "2" + }, + "type": "ellipse" + }, + { + "d": "M 4.6516854,13.685393 H 9.8292135", + "fill": {}, + "name": "segLeft", + "stroke": { + "paint": "#000000", + "width": 1 + }, + "type": "path" + }, + { + "d": "M 9.6000004,13.469662 V 8.2112357", + "fill": {}, + "name": "segUpLeft", + "stroke": { + "paint": "#000000", + "width": 1 + }, + "type": "path" + }, + { + "d": "M 19.829214,13.685393 H 14.651685", + "fill": {}, + "name": "segRight", + "stroke": { + "paint": "#000000", + "width": 1 + }, + "type": "path" + }, + { + "d": "M 14.880899,13.469662 V 8.211236", + "fill": {}, + "name": "segUpRight", + "stroke": { + "paint": "#000000", + "width": 1 + }, + "type": "path" + }, + { + "d": "m 9.8154019,8.4404597 4.8815551,0.013462", + "fill": {}, + "name": "segTop", + "stroke": { + "paint": "#000000", + "width": 1 + }, + "type": "path" + } + ], + "viewBox": "0 0 24 24" + }, + "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": "Encoder", + "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_encoders" + }, + "type": "property" + } + } + }, + "props": { + "mode": "percent", + "style": { + "cursor": "pointer" + } + }, + "type": "ia.container.coord" + } +} \ No newline at end of file diff --git a/.resources/eec244e20e1bb764ca0a7cbf2d73fb3f070336639d49d327a3d23c4885d3fffc b/.resources/eec244e20e1bb764ca0a7cbf2d73fb3f070336639d49d327a3d23c4885d3fffc deleted file mode 100644 index 06be688b..00000000 --- a/.resources/eec244e20e1bb764ca0a7cbf2d73fb3f070336639d49d327a3d23c4885d3fffc +++ /dev/null @@ -1,259 +0,0 @@ -{ - "custom": { - "string": "OK" - }, - "params": { - "tagProps": [ - "value", - "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" - } - }, - "custom.string": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "Unknown", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "OK" - }, - { - "input": 1, - "output": "Fault" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "property" - }, - "persistent": true - } - }, - "props": { - "defaultSize": { - "height": 20, - "width": 20 - } - }, - "root": { - "children": [ - { - "meta": { - "name": "EncoderIcon" - }, - "position": { - "height": 1, - "width": 1 - }, - "propConfig": { - "props.elements[0].fill.paint": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "#47FF47", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], - "type": "property" - } - } - }, - "props": { - "elements": [ - { - "cx": 12, - "cy": "12", - "fill": {}, - "name": "statusCircle", - "rx": "10", - "ry": "10", - "stroke": { - "paint": "#000000", - "width": "2" - }, - "type": "ellipse" - }, - { - "d": "M 4.6516854,13.685393 H 9.8292135", - "fill": {}, - "name": "segLeft", - "stroke": { - "paint": "#000000", - "width": 1 - }, - "type": "path" - }, - { - "d": "M 9.6000004,13.469662 V 8.2112357", - "fill": {}, - "name": "segUpLeft", - "stroke": { - "paint": "#000000", - "width": 1 - }, - "type": "path" - }, - { - "d": "M 19.829214,13.685393 H 14.651685", - "fill": {}, - "name": "segRight", - "stroke": { - "paint": "#000000", - "width": 1 - }, - "type": "path" - }, - { - "d": "M 14.880899,13.469662 V 8.211236", - "fill": {}, - "name": "segUpRight", - "stroke": { - "paint": "#000000", - "width": 1 - }, - "type": "path" - }, - { - "d": "m 9.8154019,8.4404597 4.8815551,0.013462", - "fill": {}, - "name": "segTop", - "stroke": { - "paint": "#000000", - "width": 1 - }, - "type": "path" - } - ], - "viewBox": "0 0 24 24" - }, - "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": "Encoder", - "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_encoders" - }, - "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/Equipment/EPC/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/resource.json index 00814d54..a9b2149d 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-15T08:06:01Z" + "timestamp": "2025-09-15T08:07:01Z" }, - "lastModificationSignature": "2f038434d88b0231ba0d353884d036de5c4206e1d2b7184d37405106460c42f8" + "lastModificationSignature": "43e3f626b6c20dde448d3309c5d49aa118a0bd5d98674707b96f44bd61c7761c" } } \ No newline at end of file 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 17e35489..ee5ee3a9 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/EPC/view.json @@ -436,14 +436,6 @@ "width": 1 }, "propConfig": { - "meta.visible": { - "binding": { - "config": { - "path": "session.custom.alarm_filter.show_epc" - }, - "type": "property" - } - }, "props.elements[2].fill.paint": { "binding": { "config": { diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/resource.json index 71a4c526..aabb2c5c 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/resource.json @@ -9,8 +9,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-12T08:07:01Z" + "timestamp": "2025-09-15T08:09:32Z" }, - "lastModificationSignature": "72d79f0d785d4385de0d8571aebc310f5558e6c4c57ddfc0a59066dcf8d86e62" + "lastModificationSignature": "13d61830062a76520d09d6fbf17c39df3718d122af7c6e4ddb0d0feddf0a4292" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/view.json index 06be688b..26ce88f9 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/Encoder/view.json @@ -1,11 +1,11 @@ { "custom": { - "string": "OK" + "color": "#C2C2C2", + "priority": "No Active Alarms" }, "params": { "tagProps": [ - "value", - "value", + "System/MCM01/Encoder/UL14_1_ENSH1", "value", "value", "value", @@ -18,53 +18,391 @@ ] }, "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", + "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", @@ -73,33 +411,6 @@ ], "type": "tag" } - }, - "custom.string": { - "binding": { - "config": { - "path": "view.custom.state" - }, - "transforms": [ - { - "fallback": "Unknown", - "inputType": "scalar", - "mappings": [ - { - "input": 0, - "output": "OK" - }, - { - "input": 1, - "output": "Fault" - } - ], - "outputType": "scalar", - "type": "map" - } - ], - "type": "property" - }, - "persistent": true } }, "props": { @@ -122,22 +433,8 @@ "props.elements[0].fill.paint": { "binding": { "config": { - "path": "view.custom.state" + "path": "view.custom.color" }, - "transforms": [ - { - "fallback": "#47FF47", - "inputType": "scalar", - "mappings": [ - { - "input": 1, - "output": "#FF0000" - } - ], - "outputType": "color", - "type": "map" - } - ], "type": "property" } } @@ -234,7 +531,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" }