changes in the beacon view

This commit is contained in:
Salijoghli 2025-10-31 13:57:06 +04:00
parent df531dabbf
commit e533133226
5 changed files with 24 additions and 263 deletions

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-31T09:00:41Z"
"timestamp": "2025-10-31T09:56:26Z"
},
"lastModificationSignature": "4d8d1098165a0e5f2e7b985a85bf11724638717bd91fdcfdf220c4660d06a3b5"
"lastModificationSignature": "013feef13d2f50c37dfbf7ddd571497f6573398a864b9c6e2a061ec3e93b21bc"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -2101,6 +2101,18 @@
"x": 0.0037,
"y": 0.3685
},
"propConfig": {
"props.params.state": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[BNA8_SCADA_TAG_PROVIDER]System/MCM01/Station/EPC/PS3_1_EPC1/Beacon"
},
"type": "tag"
}
}
},
"props": {
"params": {
"tagProps": [
@ -2136,7 +2148,6 @@
},
"props": {
"params": {
"forceFaultStatus": null,
"tagProps": [
"System/MCM01/Beacon/UL15_1_BCN2_R",
"value",
@ -2943,8 +2954,6 @@
},
"props": {
"params": {
"forceFaultStatus": null,
"name": "red",
"tagProps": [
"System/MCM01/VFD/UL15_3_VFD1",
"value",
@ -2979,8 +2988,6 @@
},
"props": {
"params": {
"forceFaultStatus": null,
"name": "red",
"tagProps": [
"System/MCM01/VFD/UL15_4_VFD1",
"value",
@ -3015,8 +3022,6 @@
},
"props": {
"params": {
"forceFaultStatus": null,
"name": "red",
"tagProps": [
"System/MCM01/VFD/UL15_5_VFD1",
"value",

View File

@ -9,8 +9,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-21T12:03:50Z"
"timestamp": "2025-10-31T09:53:35Z"
},
"lastModificationSignature": "b32bc9894650a7177bf937cd21e008b40e26646cd58cc6af377640090e574d5f"
"lastModificationSignature": "f7ead2fca11bd1a25c2da9b654b3025f2a16597076489e2e38157f58a3dd3f92"
}
}

View File

@ -1,13 +1,11 @@
{
"custom": {
"flashing": false,
"flashingColor": "#808080",
"solidColor": "#808080",
"state": "Closed"
"flashingColor": "#FF8C00",
"solidColor": "#FF8C00"
},
"params": {
"demoColor": "asd",
"demoState": 0,
"demoColor": "",
"state": 1,
"tagProps": [
"System/MCM02/Beacon/S03_CH115_BCN1_A",
"value",
@ -22,27 +20,18 @@
]
},
"propConfig": {
"custom.flashing": {
"binding": {
"config": {
"expression": "{view.custom.state} \u003d \"Flashing\""
},
"type": "expr"
},
"persistent": true
},
"custom.flashingColor": {
"binding": {
"config": {
"expression": "now(100)"
"path": "view.params.state"
},
"transforms": [
{
"code": "\tflashing \u003d self.custom.flashing\n\tcurrentColor \u003d self.custom.solidColor\n\t\n\tif not flashing:\n\t\treturn currentColor\n\t\t\n\t\n\timport datetime\n\tsecond \u003d datetime.datetime.now().second % 2 # 0 or 1 for blinking\n\n\treturn currentColor if second \u003d\u003d 0 else \"#F6F6F6\"\t\n",
"code": "\t\n\tif value \u003d\u003d 0:\n\t return \"#808080\" # OFF \u003d gray\n\telse:\n\t return self.custom.solidColor",
"type": "script"
}
],
"type": "expr"
"type": "property"
},
"persistent": true
},
@ -93,244 +82,11 @@
},
"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": "if(\r\n {view.params.demoState} \u003e\u003d 0,\r\n {view.params.demoState},\r\n coalesce({value}, 0)\r\n)\r\n",
"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"
},
{
"input": 57,
"output": "Flashing"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
},
"params.demoColor": {
"paramDirection": "input",
"persistent": true
},
"params.demoState": {
"params.state": {
"paramDirection": "input",
"persistent": true
},