removed ip adress from the vfd and added correct colors with the blinking

This commit is contained in:
Salijoghli 2025-09-18 22:25:45 +04:00
parent b771bae2bb
commit badfd428b7
15 changed files with 400 additions and 1394 deletions

View File

@ -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"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -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"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

View File

@ -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"
}
}

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-16T14:38:31Z"
"timestamp": "2025-09-18T18:22:53Z"
},
"lastModificationSignature": "484b5046a2b1dcfc7de33116d529ca0ee31621ab89cca4e09f32388560731f02"
"lastModificationSignature": "c895811c5004312f6d0289113564a47dab0b6572962dc2f70a97933104184fce"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-15T09:06:23Z"
"timestamp": "2025-09-18T18:24:30Z"
},
"lastModificationSignature": "5a1f3df5bc15b2f003ab5f4c4f0210f1b3c2b5b6508e29988e8fd27d67486185"
"lastModificationSignature": "36e145c8e3b5c8722bf88e5879547812996686b02e0bdabb954140bc60ebcf19"
}
}

View File

@ -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"
},

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-16T13:36:16Z"
"timestamp": "2025-09-18T18:24:30Z"
},
"lastModificationSignature": "ad55bfeb22a9b1a71b115fb954fd0c29c4d0eab148c5ad3a758cb54dc337d071"
"lastModificationSignature": "9c8f3e366cc45b4237dad8a476350ed3e17a0a6cbf4d050f92e47db4342cab76"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -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"
}

View File

@ -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