Updates for JR PB button

This commit is contained in:
b.makharadze 2025-06-06 14:29:34 +04:00
parent 911e613623
commit ca777e9ba1
7 changed files with 217 additions and 207 deletions

View File

@ -14,60 +14,29 @@
"name": "Image" "name": "Image"
}, },
"position": { "position": {
"height": 1080, "height": 1,
"width": 1920, "width": 1
"x": -2.0088348388671875,
"y": 0.0000629425048828125
}, },
"props": { "props": {
"source": "http://127.0.0.1:5500/Station_EPC.svg" "fit": {
"mode": "fill"
},
"source": "http://localhost:5500/VFD.svg"
}, },
"type": "ia.display.image" "type": "ia.display.image"
}, },
{
"meta": {
"name": "UL1_3_VFD1"
},
"position": {
"height": 292,
"width": 290,
"x": 813,
"y": 376.979
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"/System/Conveyor/UL1_3_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
},
{ {
"meta": { "meta": {
"name": "UL1_3_EPC1_Line" "name": "UL1_3_EPC1_Line"
}, },
"position": { "position": {
"height": 30, "height": 0.0278,
"rotate": { "rotate": {
"angle": 0 "angle": 0
}, },
"width": 1376, "width": 0.7167,
"x": 303.83, "x": 0.1582,
"y": 720.21 "y": 0.6669
}, },
"props": { "props": {
"params": { "params": {
@ -94,13 +63,13 @@
"name": "UL1_3_EPC2_Line" "name": "UL1_3_EPC2_Line"
}, },
"position": { "position": {
"height": 30, "height": 0.0278,
"rotate": { "rotate": {
"angle": 0 "angle": 0
}, },
"width": 1360, "width": 0.7156,
"x": 312.93, "x": 0.1557,
"y": 294.02 "y": 0.2722
}, },
"props": { "props": {
"params": { "params": {
@ -127,13 +96,13 @@
"name": "UL1_3_EPC2" "name": "UL1_3_EPC2"
}, },
"position": { "position": {
"height": 178, "height": 0.1648,
"rotate": { "rotate": {
"angle": 90 "angle": 90
}, },
"width": 185, "width": 0.0964,
"x": 134, "x": 0.0698,
"y": 220 "y": 0.2037
}, },
"props": { "props": {
"params": { "params": {
@ -160,13 +129,13 @@
"name": "UL1_3_EPC1" "name": "UL1_3_EPC1"
}, },
"position": { "position": {
"height": 178, "height": 0.1648,
"rotate": { "rotate": {
"angle": "90deg" "angle": "90deg"
}, },
"width": 185, "width": 0.0964,
"x": 134, "x": 0.0698,
"y": 645 "y": 0.5972
}, },
"props": { "props": {
"params": { "params": {
@ -193,13 +162,13 @@
"name": "UL1_3_EPC1_END" "name": "UL1_3_EPC1_END"
}, },
"position": { "position": {
"height": 150, "height": 0.1389,
"rotate": { "rotate": {
"angle": 90 "angle": 90
}, },
"width": 80, "width": 0.0417,
"x": 1687.89, "x": 0.8791,
"y": 660.19 "y": 0.6113
}, },
"props": { "props": {
"params": { "params": {
@ -226,13 +195,13 @@
"name": "UL1_3_EPC2_END" "name": "UL1_3_EPC2_END"
}, },
"position": { "position": {
"height": 150, "height": 0.1389,
"rotate": { "rotate": {
"angle": 90 "angle": 90
}, },
"width": 80, "width": 0.0417,
"x": 1682.89, "x": 0.8765,
"y": 235.19 "y": 0.2178
}, },
"props": { "props": {
"params": { "params": {
@ -253,11 +222,46 @@
"path": "Symbol-Views/Equipment-Views/PullChord_End" "path": "Symbol-Views/Equipment-Views/PullChord_End"
}, },
"type": "ia.display.view" "type": "ia.display.view"
},
{
"meta": {
"name": "UL1_3_VFD1"
},
"position": {
"height": 0.2083,
"width": 0.1255,
"x": 0.4296,
"y": 0.3797
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"/System/Conveyor/UL1_3_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
} }
], ],
"meta": { "meta": {
"name": "root" "name": "root"
}, },
"props": {
"mode": "percent"
},
"type": "ia.container.coord" "type": "ia.container.coord"
} }
} }

View File

@ -14,11 +14,23 @@
"name": "Image" "name": "Image"
}, },
"position": { "position": {
"height": 1080, "height": 1,
"width": 1920 "width": 1
},
"propConfig": {
"props.source": {
"binding": {
"config": {
"expression": "\"http://127.0.0.1:5500/VFD.svg?var\" + toMillis(now(1000))"
},
"type": "expr"
}
}
}, },
"props": { "props": {
"source": "http://localhost:5500/Station_JR_PB.svg" "fit": {
"mode": "fill"
}
}, },
"type": "ia.display.image" "type": "ia.display.image"
}, },
@ -27,16 +39,16 @@
"name": "UL1_3_JR_PB1" "name": "UL1_3_JR_PB1"
}, },
"position": { "position": {
"height": 178, "height": 0.1648,
"width": 185, "width": 0.0964,
"x": 554, "x": 0.0719,
"y": 189 "y": 0.1736
}, },
"props": { "props": {
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"tagProps": [ "tagProps": [
"/System/Buttons/UL1_3_JR_PB1", "/System/Station/Buttons/UL1_3_JR_PB1",
"value", "value",
"value", "value",
"value", "value",
@ -57,16 +69,16 @@
"name": "UL1_3_JR_PB2" "name": "UL1_3_JR_PB2"
}, },
"position": { "position": {
"height": 178, "height": 0.1648,
"width": 185, "width": 0.0964,
"x": 553.984, "x": 0.0719,
"y": 677 "y": 0.6255
}, },
"props": { "props": {
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"tagProps": [ "tagProps": [
"/System/Buttons/UL1_3_JR_PB2", "/System/Station/Buttons/UL1_3_JR_PB2",
"value", "value",
"value", "value",
"value", "value",
@ -87,10 +99,10 @@
"name": "UL1_3_VFD1" "name": "UL1_3_VFD1"
}, },
"position": { "position": {
"height": 292, "height": 0.2333,
"width": 290, "width": 0.1224,
"x": 813, "x": 0.427,
"y": 376.979 "y": 0.367
}, },
"props": { "props": {
"params": { "params": {
@ -118,6 +130,12 @@
"meta": { "meta": {
"name": "root" "name": "root"
}, },
"props": {
"mode": "percent",
"style": {
"backgroundColor": "#FFFFFF"
}
},
"type": "ia.container.coord" "type": "ia.container.coord"
} }
} }

View File

@ -1,18 +1,12 @@
{ {
"custom": { "custom": {
"alarm_message": null, "alarm_message": null,
"covert_mode": true,
"disconnected": false, "disconnected": false,
"display_icon": true,
"error": false,
"isMatch": 0,
"plc": "value", "plc": "value",
"priority": 0, "priority": 0,
"priority_string": "No active alarms", "priority_string": "No active alarms",
"searchId": "PLC01", "searchId": "PLC01",
"state": 5, "state": 0
"status": 3,
"visible_status": false
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
@ -30,24 +24,6 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.alarm_message": {
"persistent": true
},
"custom.covert_mode": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"expression": "case(\t{value},\r\n\t\t0, {session.custom.alarm_filter.show_running},\r\n\t\t1, True,\r\n\t\t2, True,\r\n\t\t3, {session.custom.alarm_filter.show_low_alarm} || {session.custom.alarm_filter.show_running},\r\n\t\t4, {session.custom.alarm_filter.show_diagnostic} || {session.custom.alarm_filter.show_running},\r\n\t\t5, {session.custom.alarm_filter.show_running},\r\n\t\tFalse)",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.disconnected": { "custom.disconnected": {
"binding": { "binding": {
"config": { "config": {
@ -69,39 +45,6 @@
}, },
"persistent": true "persistent": true
}, },
"custom.display_icon": {
"binding": {
"config": {
"expression": "{this.custom.covert_mode}||{this.custom.isMatch}\u003e0"
},
"type": "expr"
},
"persistent": true
},
"custom.error": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"expression": "0 \u003c {value} \u0026\u0026 {value} \u003c 5",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.isMatch": {
"binding": {
"config": {
"expression": "if({view.params.tagProps[0]}\u003d\"value\",0,\nif({this.custom.searchId}\u003d{view.params.tagProps[0]},100,0))"
},
"type": "expr"
},
"persistent": true
},
"custom.plc": { "custom.plc": {
"binding": { "binding": {
"config": { "config": {
@ -129,7 +72,7 @@
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": 4 "output": 1
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -143,9 +86,27 @@
"custom.priority_string": { "custom.priority_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n4, \"Diagnostic\",\r\n5, \"No active alarms\",\r\n\"Unknown\")" "path": "view.custom.state"
}, },
"type": "expr" "transforms": [
{
"fallback": "Unknown",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "High"
},
{
"input": 0,
"output": "No active alarms"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -167,7 +128,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/ALARMST" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "transforms": [
{ {
@ -180,11 +141,19 @@
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": 4 "output": 1
}, },
{ {
"input": 0, "input": 0,
"output": 5 "output": 0
},
{
"input": 2,
"output": 2
},
{
"input": 3,
"output": 3
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -195,36 +164,6 @@
}, },
"persistent": true "persistent": true
}, },
"custom.status": {
"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},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
},
"persistent": true
},
"custom.visible_status": {
"binding": {
"config": {
"expression": "{view.custom.state} !\u003d 5"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -256,19 +195,13 @@
"config": { "config": {
"expression": "\u0027#585858\u0027" "expression": "\u0027#585858\u0027"
}, },
"transforms": [
{
"expression": "if({view.custom.display_icon}\u0026\u0026 {view.custom.isMatch}\u003d0,{value},{value}+\u002700\u0027)",
"type": "expression"
}
],
"type": "expr" "type": "expr"
} }
}, },
"props.elements[1].fill.paint": { "props.elements[1].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.status" "path": "view.custom.state"
}, },
"transforms": [ "transforms": [
{ {
@ -302,7 +235,7 @@
"props.style.classes": { "props.style.classes": {
"binding": { "binding": {
"config": { "config": {
"expression": "if({session.custom.colours.colour_impaired} \u003d True \u0026\u0026 {view.custom.isMatch} \u003e 0,\r\n{view.custom.state} + 100 + {view.custom.isMatch},\r\n{view.custom.state} + {view.custom.isMatch})" "expression": "if({session.custom.colours.colour_impaired} \u003d True,\r\n{view.custom.state} + 100,\r\n{view.custom.state})"
}, },
"transforms": [ "transforms": [
{ {
@ -431,7 +364,7 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "case({value},\r\n0,{session.custom.colours.state0},\r\n1,{session.custom.colours.state1},\r\n2,{session.custom.colours.state2},\r\n3,{session.custom.colours.state3},\r\n4,{session.custom.colours.state4},\r\n5,{session.custom.colours.state5},\r\n6,{session.custom.colours.state6},\r\n{session.custom.colours.fallback}\r\n)", "expression": "case({value},\r\n0,{session.custom.colours.state5},\r\n1,{session.custom.colours.state1},\r\n2,{session.custom.colours.state2},\r\n3,{session.custom.colours.state3},\r\n{session.custom.colours.fallback}\r\n)",
"type": "expression" "type": "expression"
} }
], ],
@ -479,7 +412,7 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "if({session.custom.colours.colour_impaired},\r\n\t\u0027#000000\u0027,\r\n\tcase(\t{value},\r\n\t\t\t1,\u0027#FFFFFF\u0027,\r\n\t\t\t2,\u0027#000000\u0027,\r\n\t\t\t3,\u0027#000000\u0027,\r\n\t\t\t4,\u0027#FFFFFF\u0027,\r\n\t\t\t5,\u0027#FFFFFF\u0027,\r\n\t\t\t\u0027#000000\u0027)\r\n\t)", "expression": "if({session.custom.colours.colour_impaired},\r\n\t\u0027#000000\u0027,\r\n\tcase(\t{value},\r\n\t\t\t1,\u0027#FFFFFF\u0027,\r\n\t\t\t2,\u0027#000000\u0027,\r\n\t\t\t3,\u0027#000000\u0027,\r\n\t\t\t\u0027#FFFFFF\u0027)\r\n\t)",
"type": "expression" "type": "expression"
} }
], ],
@ -497,7 +430,7 @@
"meta.visible": { "meta.visible": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.display_icon" "path": "session.custom.alarm_filter.show_running"
}, },
"type": "property" "type": "property"
} }

View File

@ -1,5 +1,6 @@
{ {
"custom": { "custom": {
"alarm_message": null,
"disconnected": false, "disconnected": false,
"plc": "value", "plc": "value",
"priority": 0, "priority": 0,
@ -129,7 +130,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Estopped" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "transforms": [
{ {
@ -137,15 +138,15 @@
"type": "expression" "type": "expression"
}, },
{ {
"fallback": 0, "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": true, "input": 1,
"output": 1 "output": 1
}, },
{ {
"input": false, "input": 0,
"output": 0 "output": 0
} }
], ],

View File

@ -3,7 +3,7 @@
"disconnected": false, "disconnected": false,
"plc": "value", "plc": "value",
"priority": 0, "priority": 0,
"priority_string": "Low", "priority_string": "No active alarms",
"searchId": "PLC01", "searchId": "PLC01",
"state": 0, "state": 0,
"state_string": "Normal" "state_string": "Normal"
@ -87,9 +87,27 @@
"custom.priority_string": { "custom.priority_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n0, \"Low\",\r\n\"Unknown\")" "path": "view.custom.state"
}, },
"type": "expr" "transforms": [
{
"fallback": "Unknown",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "High"
},
{
"input": 0,
"output": "No active alarms"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -111,7 +129,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Estopped" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "transforms": [
{ {
@ -119,15 +137,15 @@
"type": "expression" "type": "expression"
}, },
{ {
"fallback": 0, "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": true, "input": 1,
"output": 1 "output": 1
}, },
{ {
"input": false, "input": 0,
"output": 0 "output": 0
} }
], ],

View File

@ -88,9 +88,27 @@
"custom.priority_string": { "custom.priority_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n0, \"No active alarms\",\r\n\"Unknown\")" "path": "view.custom.state"
}, },
"type": "expr" "transforms": [
{
"fallback": "Unknown",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "High"
},
{
"input": 0,
"output": "No active alarms"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -112,7 +130,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Estopped" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "transforms": [
{ {
@ -120,15 +138,15 @@
"type": "expression" "type": "expression"
}, },
{ {
"fallback": 0, "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": true, "input": 1,
"output": 1 "output": 1
}, },
{ {
"input": false, "input": 0,
"output": 0 "output": 0
} }
], ],

View File

@ -3,7 +3,7 @@
"disconnected": false, "disconnected": false,
"plc": "value", "plc": "value",
"priority": 0, "priority": 0,
"priority_string": "Unknown", "priority_string": "No active alarms",
"searchId": "PLC01", "searchId": "PLC01",
"state": 0, "state": 0,
"state_string": "Normal" "state_string": "Normal"
@ -87,9 +87,27 @@
"custom.priority_string": { "custom.priority_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n2, \"Medium\",\r\n3, \"Low\",\r\n4, \"Diagnostic\",\r\n5, \"No active alarms\",\r\n\"Unknown\")" "path": "view.custom.state"
}, },
"type": "expr" "transforms": [
{
"fallback": "Unknown",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "High"
},
{
"input": 0,
"output": "No active alarms"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -111,7 +129,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Estopped" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "transforms": [
{ {
@ -119,15 +137,15 @@
"type": "expression" "type": "expression"
}, },
{ {
"fallback": 0, "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": true, "input": 1,
"output": 1 "output": 1
}, },
{ {
"input": false, "input": 0,
"output": 0 "output": 0
} }
], ],