diff --git a/.resources/0e89f8166a2aab65e993d26df86991846a0325bbedb8027623daacc01ae85845 b/.resources/0e89f8166a2aab65e993d26df86991846a0325bbedb8027623daacc01ae85845 deleted file mode 100644 index 5a152dbb..00000000 --- a/.resources/0e89f8166a2aab65e993d26df86991846a0325bbedb8027623daacc01ae85845 +++ /dev/null @@ -1,556 +0,0 @@ -{ - "custom": { - "color": "#C2C2C2", - "priority": "No Active Alarms" - }, - "params": { - "tagProps": [ - "System/MCM01/Conveyor/UL1_3_VFD1", - "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" - } - }, - "params.tagProps": { - "paramDirection": "input", - "persistent": true - } - }, - "props": { - "defaultSize": { - "height": 26, - "width": 26 - } - }, - "root": { - "children": [ - { - "meta": { - "name": "vfd_icon" - }, - "position": { - "height": 1, - "width": 1 - }, - "propConfig": { - "props.elements[2].fill.paint": { - "binding": { - "config": { - "path": "view.custom.color" - }, - "type": "property" - } - } - }, - "props": { - "elements": [ - { - "id": "defs3", - "name": "defs3", - "type": "defs" - }, - { - "d": "M 15.641997,3.2012871 C -6.406347,0.56989644 4.4216421,15.598399 4.4216421,19.03611 L 18.864497,5.1927068 Z", - "fill": { - "paint": "#c2c2c2" - }, - "id": "path1", - "name": "path1", - "stroke": { - "width": "1.03379" - }, - "type": "path" - }, - { - "d": "M 19.35605,5.5008821 C 24.701245,10.402753 20.718148,17.901458 13.662088,22.359231 L 5.1469077,19.280293 Z", - "fill": {}, - "id": "path2", - "name": "path2", - "stroke": { - "width": "1.31417" - }, - "type": "path" - }, - { - "cx": "12", - "cy": "12", - "fill": { - "paint": "transparent" - }, - "id": "circle2", - "name": "circle2", - "r": "10", - "stroke": { - "paint": "#000000", - "width": "2" - }, - "type": "circle" - }, - { - "d": "M6,18 L18,6", - "fill": { - "paint": "transparent" - }, - "id": "path3", - "name": "path3", - "stroke": { - "linecap": "round", - "paint": "#000000", - "width": "2" - }, - "type": "path" - } - ], - "style": { - "transition": "fill 2.5s ease-in-out" - }, - "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-VFD\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps, \"tags\":tags_table_dataset})" - }, - "scope": "G", - "type": "script" - } - } - }, - "meta": { - "name": "VFD", - "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_VFD" - }, - "type": "property" - } - } - }, - "props": { - "mode": "percent", - "style": { - "cursor": "pointer" - } - }, - "type": "ia.container.coord" - } -} \ No newline at end of file diff --git a/.resources/27d7cfcb3a84a67283884529c7853c323373702987c86bfde604aa0f8fce7eb4 b/.resources/27d7cfcb3a84a67283884529c7853c323373702987c86bfde604aa0f8fce7eb4 new file mode 100644 index 00000000..92db854d Binary files /dev/null and b/.resources/27d7cfcb3a84a67283884529c7853c323373702987c86bfde604aa0f8fce7eb4 differ diff --git a/.resources/776ade623ba6ff3bf9dba3d8557e265f5f4238401f353f22796f0e90eb0d6e57 b/.resources/2a55991e3ce471242252c2250965692913af85ddd343032c773ea09465d49929 similarity index 87% rename from .resources/776ade623ba6ff3bf9dba3d8557e265f5f4238401f353f22796f0e90eb0d6e57 rename to .resources/2a55991e3ce471242252c2250965692913af85ddd343032c773ea09465d49929 index 61e35525..c2f43150 100644 --- a/.resources/776ade623ba6ff3bf9dba3d8557e265f5f4238401f353f22796f0e90eb0d6e57 +++ b/.resources/2a55991e3ce471242252c2250965692913af85ddd343032c773ea09465d49929 @@ -2,9 +2,9 @@ "custom": { "PLC": "MCM01", "device": "UL15_1", - "maintance_mode": true, + "maintance_mode": false, "showTags": true, - "state": "Actuated" + "state": "UNKNOWN" }, "params": { "tagProps": [ @@ -95,7 +95,7 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Lenze" }, "transforms": [ { @@ -103,204 +103,24 @@ "type": "expression" }, { - "fallback": "Unknown", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { - "input": 0, - "output": "Closed" + "input": 50, + "output": "OK" }, { - "input": 1, - "output": "Actuated" + "input": 51, + "output": "DISCONNECTED" }, { - "input": 2, - "output": "Communication Faulted" + "input": 52, + "output": "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": 53, + "output": "FAULTED/DISCONNECTED" } ], "outputType": "scalar", @@ -894,7 +714,31 @@ "x": 37.33, "y": 22.9967 }, + "propConfig": { + "props.params.tagProps[0]": { + "binding": { + "config": { + "path": "view.params.tagProps[0]" + }, + "type": "property" + } + } + }, "props": { + "params": { + "tagProps": [ + null, + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value" + ] + }, "path": "autStand/Equipment/VFD" }, "type": "ia.display.view" @@ -1079,66 +923,6 @@ }, "type": "ia.container.flex" }, - { - "children": [ - { - "meta": { - "name": "Label" - }, - "props": { - "style": { - "classes": "Text-Styles/Ariel-Bold-12pt" - }, - "text": "IP Address : ", - "textStyle": { - "fontSize": 25 - } - }, - "type": "ia.display.label" - }, - { - "meta": { - "name": "Label_0" - }, - "position": { - "basis": "50px", - "grow": 1 - }, - "propConfig": { - "props.text": { - "binding": { - "config": { - "path": "view.custom.PLC" - }, - "type": "property" - } - } - }, - "props": { - "style": { - "borderStyle": "solid", - "classes": "Text-Styles/Ariel-Bold-12pt", - "marginLeft": 10 - }, - "textStyle": { - "fontSize": 20, - "textAlign": "center" - } - }, - "type": "ia.display.label" - } - ], - "meta": { - "name": "FlexContainer_2" - }, - "position": { - "height": 43, - "width": 444, - "x": 136, - "y": 174.49 - }, - "type": "ia.container.flex" - }, { "children": [ { @@ -1195,7 +979,7 @@ "height": 43, "width": 568, "x": 12, - "y": 226.49 + "y": 172.49 }, "type": "ia.container.flex" }, @@ -1258,7 +1042,7 @@ "height": 43, "width": 467, "x": 113, - "y": 281.49 + "y": 227.49 }, "type": "ia.container.flex" }, @@ -1318,7 +1102,7 @@ "height": 43, "width": 468, "x": 112, - "y": 336.49 + "y": 282.49 }, "type": "ia.container.flex" }, @@ -1340,8 +1124,8 @@ "position": { "height": 161, "width": 98, - "x": 95.65, - "y": 531.33 + "x": 97.65, + "y": 505.33000000000004 }, "propConfig": { "props.style.backgroundColor": { @@ -1380,8 +1164,8 @@ "position": { "height": 92, "width": 314, - "x": 203.65, - "y": 531.31 + "x": 205.65, + "y": 505.30999999999995 }, "propConfig": { "props.style.backgroundColor": { @@ -1420,8 +1204,8 @@ "position": { "height": 64, "width": 98, - "x": 203.296, - "y": 628.3 + "x": 205.296, + "y": 602.3 }, "propConfig": { "props.enabled": { @@ -1468,8 +1252,8 @@ "position": { "height": 64, "width": 98, - "x": 312.65, - "y": 628.29 + "x": 314.65, + "y": 602.29 }, "propConfig": { "props.enabled": { @@ -1516,8 +1300,8 @@ "position": { "height": 64, "width": 98, - "x": 419.296, - "y": 628.249 + "x": 421.296, + "y": 602.249 }, "propConfig": { "props.enabled": { @@ -1602,7 +1386,7 @@ "height": 43, "width": 453, "x": 127, - "y": 385.49 + "y": 331.49 }, "type": "ia.container.flex" }, @@ -1662,7 +1446,7 @@ "height": 43, "width": 496, "x": 84, - "y": 435.49 + "y": 381.49 }, "type": "ia.container.flex" } diff --git a/.resources/7b2bac8e9c1a713a6b829737942542b64a929f214156a045143ec318379719d2 b/.resources/7b2bac8e9c1a713a6b829737942542b64a929f214156a045143ec318379719d2 new file mode 100644 index 00000000..1bfd973e Binary files /dev/null and b/.resources/7b2bac8e9c1a713a6b829737942542b64a929f214156a045143ec318379719d2 differ diff --git a/.resources/9845e54753ed6c1524005ac0ee1f85c394f9a830973bc4ae86d6dc1f9d6334bd b/.resources/9845e54753ed6c1524005ac0ee1f85c394f9a830973bc4ae86d6dc1f9d6334bd deleted file mode 100644 index cf2e6252..00000000 Binary files a/.resources/9845e54753ed6c1524005ac0ee1f85c394f9a830973bc4ae86d6dc1f9d6334bd and /dev/null differ diff --git a/.resources/9bbb34bb284d43d54c8dbd1a23a4a149985c121a74d71c2f0e921715b8988d06 b/.resources/9bbb34bb284d43d54c8dbd1a23a4a149985c121a74d71c2f0e921715b8988d06 deleted file mode 100644 index 35ebbf85..00000000 Binary files a/.resources/9bbb34bb284d43d54c8dbd1a23a4a149985c121a74d71c2f0e921715b8988d06 and /dev/null differ diff --git a/.resources/ad92abce0f8c431973ac416eff5878315643fd7bd0f4d26adce6f2287f07f2a0 b/.resources/ad92abce0f8c431973ac416eff5878315643fd7bd0f4d26adce6f2287f07f2a0 new file mode 100644 index 00000000..a6187f1a --- /dev/null +++ b/.resources/ad92abce0f8c431973ac416eff5878315643fd7bd0f4d26adce6f2287f07f2a0 @@ -0,0 +1,274 @@ +{ + "custom": { + "color": "#C2C2C2", + "priority": "No Active Alarms" + }, + "params": { + "tagProps": [ + "System/MCM01/Conveyor/UL1_3_VFD1", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value" + ] + }, + "propConfig": { + "custom.color": { + "binding": { + "config": { + "expression": "now(1000)" + }, + "transforms": [ + { + "code": "\n import datetime\n state \u003d str(self.custom.state).strip().upper() # normalize input\n second \u003d datetime.datetime.now().second % 2 # 0 or 1 for blinking\n\n if state \u003d\u003d \"OK\":\n return \"#1fff1a\"\n elif state \u003d\u003d \"DISCONNECTED\":\n return \"#C2C2C2\"\n elif state \u003d\u003d \"FAULTED\":\n return \"#f9050d\" if second \u003d\u003d 0 else \"#1fff1a\"\n elif state \u003d\u003d \"FAULTED/DISCONNECTED\":\n return \"#f9050d\" if second \u003d\u003d 0 else \"#C2C2C2\"\n else:\n return \"#C2C2C2\"", + "type": "script" + } + ], + "type": "expr" + }, + "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}/Lenze" + }, + "transforms": [ + { + "expression": "coalesce({value},0)", + "type": "expression" + }, + { + "fallback": "UNKNOWN", + "inputType": "scalar", + "mappings": [ + { + "input": 0, + "output": "CLOSED" + }, + { + "input": 50, + "output": "OK" + }, + { + "input": 51, + "output": "DISCONNECTED" + }, + { + "input": 52, + "output": "FAULTED" + }, + { + "input": 53, + "output": "FAULTED/DISCONNECTED" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } + }, + "params.tagProps": { + "paramDirection": "input", + "persistent": true + } + }, + "props": { + "defaultSize": { + "height": 26, + "width": 26 + } + }, + "root": { + "children": [ + { + "meta": { + "name": "vfd_icon" + }, + "position": { + "height": 1, + "width": 1 + }, + "propConfig": { + "props.elements[2].fill.paint": { + "binding": { + "config": { + "path": "view.custom.color" + }, + "type": "property" + } + } + }, + "props": { + "elements": [ + { + "id": "defs3", + "name": "defs3", + "type": "defs" + }, + { + "d": "M 15.641997,3.2012871 C -6.406347,0.56989644 4.4216421,15.598399 4.4216421,19.03611 L 18.864497,5.1927068 Z", + "fill": { + "paint": "#c2c2c2" + }, + "id": "path1", + "name": "path1", + "stroke": { + "width": "1.03379" + }, + "type": "path" + }, + { + "d": "M 19.35605,5.5008821 C 24.701245,10.402753 20.718148,17.901458 13.662088,22.359231 L 5.1469077,19.280293 Z", + "fill": {}, + "id": "path2", + "name": "path2", + "stroke": { + "width": "1.31417" + }, + "type": "path" + }, + { + "cx": "12", + "cy": "12", + "fill": { + "paint": "transparent" + }, + "id": "circle2", + "name": "circle2", + "r": "10", + "stroke": { + "paint": "#000000", + "width": "2" + }, + "type": "circle" + }, + { + "d": "M6,18 L18,6", + "fill": { + "paint": "transparent" + }, + "id": "path3", + "name": "path3", + "stroke": { + "linecap": "round", + "paint": "#000000", + "width": "2" + }, + "type": "path" + } + ], + "style": { + "transition": "" + }, + "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-VFD\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps, \"tags\":tags_table_dataset})" + }, + "scope": "G", + "type": "script" + } + } + }, + "meta": { + "name": "VFD", + "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_VFD" + }, + "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/MCM01-FLUID INBOUND/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Detailed_Views/MCM01-FLUID INBOUND/resource.json index 82ed6bfa..d401405b 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-16T14:38:31Z" + "timestamp": "2025-09-18T18:22:53Z" }, - "lastModificationSignature": "484b5046a2b1dcfc7de33116d529ca0ee31621ab89cca4e09f32388560731f02" + "lastModificationSignature": "c895811c5004312f6d0289113564a47dab0b6572962dc2f70a97933104184fce" } } \ 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 35ebbf85..1bfd973e 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/Equipment/VFD/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/resource.json index 56dc5989..7bc107db 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-15T09:06:23Z" + "timestamp": "2025-09-18T18:24:30Z" }, - "lastModificationSignature": "5a1f3df5bc15b2f003ab5f4c4f0210f1b3c2b5b6508e29988e8fd27d67486185" + "lastModificationSignature": "36e145c8e3b5c8722bf88e5879547812996686b02e0bdabb954140bc60ebcf19" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/view.json index 5a152dbb..a6187f1a 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/Equipment/VFD/view.json @@ -21,117 +21,15 @@ "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" + "expression": "now(1000)" }, "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" + "code": "\n import datetime\n state \u003d str(self.custom.state).strip().upper() # normalize input\n second \u003d datetime.datetime.now().second % 2 # 0 or 1 for blinking\n\n if state \u003d\u003d \"OK\":\n return \"#1fff1a\"\n elif state \u003d\u003d \"DISCONNECTED\":\n return \"#C2C2C2\"\n elif state \u003d\u003d \"FAULTED\":\n return \"#f9050d\" if second \u003d\u003d 0 else \"#1fff1a\"\n elif state \u003d\u003d \"FAULTED/DISCONNECTED\":\n return \"#f9050d\" if second \u003d\u003d 0 else \"#C2C2C2\"\n else:\n return \"#C2C2C2\"", + "type": "script" } ], - "type": "tag" + "type": "expr" }, "persistent": true }, @@ -193,7 +91,7 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Lenze" }, "transforms": [ { @@ -201,208 +99,28 @@ "type": "expression" }, { - "fallback": "Unknown", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 0, - "output": "Closed" + "output": "CLOSED" }, { - "input": 1, - "output": "Actuated" + "input": 50, + "output": "OK" }, { - "input": 2, - "output": "Communication Faulted" + "input": 51, + "output": "DISCONNECTED" }, { - "input": 3, - "output": "Conveyor Running In Maintenance Mode" + "input": 52, + "output": "FAULTED" }, { - "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" + "input": 53, + "output": "FAULTED/DISCONNECTED" } ], "outputType": "scalar", @@ -503,7 +221,7 @@ } ], "style": { - "transition": "fill 2.5s ease-in-out" + "transition": "" }, "viewBox": "0 0 24 24" }, diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/resource.json b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/resource.json index fb024c9a..cbab1159 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/resource.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/resource.json @@ -10,8 +10,8 @@ "attributes": { "lastModification": { "actor": "admin", - "timestamp": "2025-09-16T13:36:16Z" + "timestamp": "2025-09-18T18:24:30Z" }, - "lastModificationSignature": "ad55bfeb22a9b1a71b115fb954fd0c29c4d0eab148c5ad3a758cb54dc337d071" + "lastModificationSignature": "9c8f3e366cc45b4237dad8a476350ed3e17a0a6cbf4d050f92e47db4342cab76" } } \ No newline at end of file diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/thumbnail.png b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/thumbnail.png index cf2e6252..92db854d 100644 Binary files a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/thumbnail.png and b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/thumbnail.png differ diff --git a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json index 61e35525..c2f43150 100644 --- a/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json +++ b/BNA8/com.inductiveautomation.perspective/views/autStand/PopUp-Views/Controller-Equipment/Information-Docked-East-VFD/view.json @@ -2,9 +2,9 @@ "custom": { "PLC": "MCM01", "device": "UL15_1", - "maintance_mode": true, + "maintance_mode": false, "showTags": true, - "state": "Actuated" + "state": "UNKNOWN" }, "params": { "tagProps": [ @@ -95,7 +95,7 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Lenze" }, "transforms": [ { @@ -103,204 +103,24 @@ "type": "expression" }, { - "fallback": "Unknown", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { - "input": 0, - "output": "Closed" + "input": 50, + "output": "OK" }, { - "input": 1, - "output": "Actuated" + "input": 51, + "output": "DISCONNECTED" }, { - "input": 2, - "output": "Communication Faulted" + "input": 52, + "output": "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": 53, + "output": "FAULTED/DISCONNECTED" } ], "outputType": "scalar", @@ -894,7 +714,31 @@ "x": 37.33, "y": 22.9967 }, + "propConfig": { + "props.params.tagProps[0]": { + "binding": { + "config": { + "path": "view.params.tagProps[0]" + }, + "type": "property" + } + } + }, "props": { + "params": { + "tagProps": [ + null, + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value", + "value" + ] + }, "path": "autStand/Equipment/VFD" }, "type": "ia.display.view" @@ -1079,66 +923,6 @@ }, "type": "ia.container.flex" }, - { - "children": [ - { - "meta": { - "name": "Label" - }, - "props": { - "style": { - "classes": "Text-Styles/Ariel-Bold-12pt" - }, - "text": "IP Address : ", - "textStyle": { - "fontSize": 25 - } - }, - "type": "ia.display.label" - }, - { - "meta": { - "name": "Label_0" - }, - "position": { - "basis": "50px", - "grow": 1 - }, - "propConfig": { - "props.text": { - "binding": { - "config": { - "path": "view.custom.PLC" - }, - "type": "property" - } - } - }, - "props": { - "style": { - "borderStyle": "solid", - "classes": "Text-Styles/Ariel-Bold-12pt", - "marginLeft": 10 - }, - "textStyle": { - "fontSize": 20, - "textAlign": "center" - } - }, - "type": "ia.display.label" - } - ], - "meta": { - "name": "FlexContainer_2" - }, - "position": { - "height": 43, - "width": 444, - "x": 136, - "y": 174.49 - }, - "type": "ia.container.flex" - }, { "children": [ { @@ -1195,7 +979,7 @@ "height": 43, "width": 568, "x": 12, - "y": 226.49 + "y": 172.49 }, "type": "ia.container.flex" }, @@ -1258,7 +1042,7 @@ "height": 43, "width": 467, "x": 113, - "y": 281.49 + "y": 227.49 }, "type": "ia.container.flex" }, @@ -1318,7 +1102,7 @@ "height": 43, "width": 468, "x": 112, - "y": 336.49 + "y": 282.49 }, "type": "ia.container.flex" }, @@ -1340,8 +1124,8 @@ "position": { "height": 161, "width": 98, - "x": 95.65, - "y": 531.33 + "x": 97.65, + "y": 505.33000000000004 }, "propConfig": { "props.style.backgroundColor": { @@ -1380,8 +1164,8 @@ "position": { "height": 92, "width": 314, - "x": 203.65, - "y": 531.31 + "x": 205.65, + "y": 505.30999999999995 }, "propConfig": { "props.style.backgroundColor": { @@ -1420,8 +1204,8 @@ "position": { "height": 64, "width": 98, - "x": 203.296, - "y": 628.3 + "x": 205.296, + "y": 602.3 }, "propConfig": { "props.enabled": { @@ -1468,8 +1252,8 @@ "position": { "height": 64, "width": 98, - "x": 312.65, - "y": 628.29 + "x": 314.65, + "y": 602.29 }, "propConfig": { "props.enabled": { @@ -1516,8 +1300,8 @@ "position": { "height": 64, "width": 98, - "x": 419.296, - "y": 628.249 + "x": 421.296, + "y": 602.249 }, "propConfig": { "props.enabled": { @@ -1602,7 +1386,7 @@ "height": 43, "width": 453, "x": 127, - "y": 385.49 + "y": 331.49 }, "type": "ia.container.flex" }, @@ -1662,7 +1446,7 @@ "height": 43, "width": 496, "x": 84, - "y": 435.49 + "y": 381.49 }, "type": "ia.container.flex" } diff --git a/conversion-report.txt b/conversion-report.txt index e8e7b4a5..6d4a3b29 100644 --- a/conversion-report.txt +++ b/conversion-report.txt @@ -30,3 +30,5 @@ Starting conversion: 20250913:14.31.52 Conversion finished. Elapsed time: 10 ms Starting conversion: 20250915:10.46.20 Conversion finished. Elapsed time: 10 ms +Starting conversion: 20250918:20.02.12 +Conversion finished. Elapsed time: 11 ms