binding on the overview

This commit is contained in:
Salijoghli 2025-10-03 13:12:53 +04:00
parent ae37840084
commit 65c72a5a13
13 changed files with 6636 additions and 1474 deletions

View File

@ -1,560 +0,0 @@
{
"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"
}
},
"params.tagProps": {
"paramDirection": "input",
"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.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"
}
}

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-02T14:59:43Z"
"timestamp": "2025-10-02T15:03:36Z"
},
"lastModificationSignature": "89515eb80201ecd38364a97c274e1461d8376f3789226f94ca0c6c7c3b81242a"
"lastModificationSignature": "754ee83fb6b25927301a88314a8b9faf07ff712c94b7b4bf1139e4319383d4aa"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -4895,7 +4895,7 @@
"style": {
"classes": "Alarms-Styles/High"
},
"value": "01:28:21"
"value": "01:32:13"
},
"EndTimestamp": {
"style": {

View File

@ -8,9 +8,9 @@
],
"attributes": {
"lastModification": {
"actor": "external",
"timestamp": "2025-09-26T13:13:23Z"
"actor": "admin",
"timestamp": "2025-10-02T15:16:36Z"
},
"lastModificationSignature": "1f1ecbabcff5c99a02e2868aa45671156e43024eae8e5c51fe907d1e6fd828a5"
"lastModificationSignature": "5022afc11c2974e6f097f74b1db9945c3c495a2c028b1e60fbaaf21c944da549"
}
}

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-01T16:00:10Z"
"timestamp": "2025-10-02T15:03:49Z"
},
"lastModificationSignature": "72802a81d75aa19e7ff17a5229b0518c2a2ef1230db4907970a68e48126887ea"
"lastModificationSignature": "b871afa2e3757b6fa76aa8d5532aafb96b25702adaf7b1f221ff0e8dc76abcfa"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -9,8 +9,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-01T16:00:53Z"
"timestamp": "2025-10-03T09:12:08Z"
},
"lastModificationSignature": "b48c02e0f9fc1161f984574bdd3185b2c2c347712cd736dcea50985633d778f6"
"lastModificationSignature": "a7b541648bf149b9bdd5e0c3a99d3483683e74115176e07460d66d1c418e6b28"
}
}

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-02T14:58:08Z"
"timestamp": "2025-10-02T15:03:36Z"
},
"lastModificationSignature": "09daeec78e6d20ec77f66d139bcc4a4c0abd43d1f601297f3c78bc8aca0c80a1"
"lastModificationSignature": "df3fbd332e1cf3a786d993664b548032177900ab8c2a257ccfd47fa86b731eb7"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1920"
height="1080"
viewBox="0 0 508 285.75"
version="1.1"
id="svg1"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs id="defs1" />
<!-- First element -->
<path
style="display:inline;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.25;stroke-dasharray:none;stroke-opacity:1"
d="m 87.050431,140.42833 h 7.88385 v 35.33131 h -7.92557 z"
id="path25072"
inkscape:label="UL15_1"
onclick="window.system.perspective.sendMessage('svgClick', {id:'path25072'})" />
<!-- Second element -->
<path
style="display:inline;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.25;stroke-dasharray:none;stroke-opacity:1"
d="m 87.115531,139.95472 0.18518,-7.76481 c 1.51729,-4.83339 4.58056,-7.79927 8.86411,-10.34495 l 3.914529,6.93517 c -2.984989,1.33473 -4.229119,3.34824 -4.999079,6.51743 l -0.0874,4.67802 z"
id="path26615"
inkscape:label="UL15_2"
onclick="window.system.perspective.sendMessage('svgClick', {id:'path26615'})" />
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -25,33 +25,15 @@
inkscape:cy="193.42866"
inkscape:window-width="3840"
inkscape:window-height="2036"
inkscape:window-x="3829"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1"
inkscape:current-layer="layer3" />
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
id="layer1"
transform="matrix(0.59758737,0,0,0.59758737,9.667912,71.676702)">
<path
id="path25072"
d="M -4.378472,89.580386 H 3.5901454 V 125.29155 H -4.4206305 Z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path26615"
d="M -4.312672,89.101688 C -4.5876011,80.125202 -3.2439287,75.830839 4.8339266,70.797235 l 3.956609,7.009733 c -4.9103195,2.06676 -5.0563864,6.77837 -5.1411604,11.315804 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path26618"
d="m 50.898508,98.853708 h 7.968617 v 54.314522 h -8.010778 z"
@ -88,6 +70,33 @@
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path27082"
d="m 78.015155,60.866426 -13.60965,7.438354 -3.994947,-7.095504 1.445933,-0.372663 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path25072"
d="M -4.378472,89.580386 H 3.5901454 V 125.29155 H -4.4206305 Z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path26615"
d="M -4.312672,89.101688 C -4.5876011,80.125202 -3.2439287,75.830839 4.8339266,70.797235 l 3.956609,7.009733 c -4.9103195,2.06676 -5.0563864,6.77837 -5.1411604,11.315804 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path27074"
d="m 12.752552,66.262724 3.986892,6.899531 -7.6365567,4.412776 -4.0079851,-6.936038 z"
@ -115,15 +124,6 @@
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path27082"
d="m 78.015155,60.866426 -13.60965,7.438354 -3.994947,-7.095504 1.445933,-0.372663 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.252688"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path27083"
d="m 129.52339,52.800311 -0.0151,7.851928 -113.971891,-0.04791 0.01496,-7.89347 z"
@ -228,30 +228,12 @@
id="layer3"
transform="matrix(0.53694524,0,0,0.53694524,296.74386,87.188117)">
<path
id="path27083-7"
d="m -13.871557,126.91616 -0.0024,7.39581 -18.63594,-0.0449 0.0022,-7.43498 z"
id="path187863"
d="m 384.8676,126.75367 -0.004,7.65407 -25.01168,-0.0466 0.003,-7.69456 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.237623"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187860"
d="m 5.8765748,126.81736 -0.02578,7.51375 -9.0460865,-0.0462 -0.027403,-7.47242 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.199536"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187861"
d="m 339.14284,126.9 -0.0433,7.42862 -331.9387066,-0.0451 0.04327,-7.46793 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.205768"
stroke-width="0.234199"
stroke-dasharray="none"
stroke-opacity="1" />
<path
@ -264,39 +246,39 @@
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187863"
d="m 384.8676,126.75367 -0.004,7.65407 -25.01168,-0.0466 0.003,-7.69456 z"
id="path187861"
d="m 339.14284,126.9 -0.0433,7.42862 -331.9387066,-0.0451 0.04327,-7.46793 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.234199"
stroke-width="0.205768"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187864"
d="m 45.418128,123.68511 -20.0705,-0.006 0.122008,-51.384781 20.176742,0.0066 z"
id="path187860"
d="m 5.8765748,126.81736 -0.02578,7.51375 -9.0460865,-0.0462 -0.027403,-7.47242 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.140333"
stroke-width="0.199536"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187865"
d="m 67.416846,123.68511 -20.070496,-0.006 0.122009,-51.384781 20.176738,0.0066 z"
id="path187891"
d="m -4.0140662,126.81684 -0.025457,7.51491 -8.9312238,-0.0463 -0.02705,-7.47356 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.140333"
stroke-width="0.198282"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187866"
d="m 88.705924,123.77382 -20.070497,-0.006 0.122008,-51.384787 20.176737,0.0066 z"
id="path27083-7"
d="m -13.871557,126.91616 -0.0024,7.39581 -18.63594,-0.0449 0.0022,-7.43498 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.140333"
stroke-width="0.237623"
stroke-dasharray="none"
stroke-opacity="1" />
<path
@ -462,12 +444,30 @@
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187891"
d="m -4.0140662,126.81684 -0.025457,7.51491 -8.9312238,-0.0463 -0.02705,-7.47356 z"
id="path187866"
d="m 88.705924,123.77382 -20.070497,-0.006 0.122008,-51.384787 20.176737,0.0066 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.198282"
stroke-width="0.140333"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187865"
d="m 67.416846,123.68511 -20.070496,-0.006 0.122009,-51.384781 20.176738,0.0066 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.140333"
stroke-dasharray="none"
stroke-opacity="1" />
<path
id="path187864"
d="m 45.418128,123.68511 -20.0705,-0.006 0.122008,-51.384781 20.176742,0.0066 z"
fill="#ffffff"
fill-opacity="1"
stroke="#000000"
stroke-width="0.140333"
stroke-dasharray="none"
stroke-opacity="1" />
</g>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB