UPDATE WHOLE PROJECT #22

Merged
ilia.gurielidze merged 3 commits from beka into main 2025-09-04 00:39:28 +00:00
11 changed files with 1204 additions and 327 deletions
Showing only changes of commit 57d51dbf46 - Show all commits

View File

@ -112,13 +112,13 @@
"content": "cover",
"handle": "hide",
"iconUrl": "",
"id": "Docked-East",
"id": "Docked-East-TPR",
"modal": false,
"resizable": false,
"show": "onDemand",
"size": 400,
"viewParams": {},
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-Tipper"
},
{
"anchor": "fixed",

View File

@ -968,7 +968,7 @@
"props": {
"params": {
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC1_1_TIPPER_VFD1"
"System/MCM01/Conveyor/TIPPER/ULC1_1_TIPPER"
]
},
"path": "Symbol-Views/Equipment-Views/Tipper"
@ -1141,7 +1141,7 @@
"props": {
"params": {
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC2_1_TIPPER_VFD1"
"System/MCM01/Conveyor/TIPPER/ULC2_1_TIPPER"
]
},
"path": "Symbol-Views/Equipment-Views/Tipper"
@ -1623,7 +1623,7 @@
"props": {
"params": {
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC3_1_TIPPER_VFD1"
"System/MCM01/Conveyor/TIPPER/ULC3_1_TIPPER"
]
},
"path": "Symbol-Views/Equipment-Views/Tipper"
@ -1766,7 +1766,7 @@
"props": {
"params": {
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC4_1_TIPPER_VFD1"
"System/MCM01/Conveyor/TIPPER/ULC4_1_TIPPER"
]
},
"path": "Symbol-Views/Equipment-Views/Tipper"
@ -5360,70 +5360,6 @@
},
"type": "ia.display.view"
},
{
"meta": {
"name": "ULC1_3_PLC (INTRALOX)"
},
"position": {
"height": 0.0185,
"width": 0.0104,
"x": 0.71,
"y": 0.6444
},
"props": {
"params": {
"forceFaultStatus": null,
"forceRunningStatus": null,
"has_state": false,
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC1_3_PLC (INTRALOX)_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/DeviceStatus"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "ULC1_4_PLC (INTRALOX)"
},
"position": {
"height": 0.0185,
"width": 0.0104,
"x": 0.7985,
"y": 0.5898
},
"props": {
"params": {
"forceFaultStatus": null,
"forceRunningStatus": null,
"has_state": false,
"tagProps": [
"System/MCM01/Conveyor/VFD/ULC1_4_PLC (INTRALOX)_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/DeviceStatus"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM05_Button_0"

View File

@ -2205,41 +2205,6 @@
},
"type": "ia.display.view"
},
{
"meta": {
"name": "UL2_1"
},
"position": {
"height": 0.0185,
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.2727,
"y": 0.9343
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL2_1_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "UL2_3"
@ -2284,9 +2249,9 @@
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3126,
"y": 0.8802
"width": 0.0146,
"x": 0.3111,
"y": 0.8847
},
"props": {
"params": {
@ -2294,7 +2259,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL3_2_VFD1",
"System/MCM02/Conveyor/EXTENDO/UL3_2_EX1",
"value",
"value",
"value",
@ -2306,7 +2271,7 @@
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
"path": "Symbol-Views/Equipment-Views/Extendo"
},
"type": "ia.display.view"
},
@ -2354,9 +2319,9 @@
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3918,
"y": 0.8819
"width": 0.0146,
"x": 0.3898,
"y": 0.8828
},
"props": {
"params": {
@ -2364,7 +2329,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL5_2_VFD1",
"System/MCM02/Conveyor/EXTENDO/UL5_2_EX1",
"value",
"value",
"value",
@ -2376,7 +2341,7 @@
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
"path": "Symbol-Views/Equipment-Views/Extendo"
},
"type": "ia.display.view"
},
@ -2424,9 +2389,9 @@
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3526,
"y": 0.8804
"width": 0.0146,
"x": 0.3511,
"y": 0.8849
},
"props": {
"params": {
@ -2434,7 +2399,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL4_2_VFD1",
"System/MCM02/Conveyor/EXTENDO/UL4_2_EX1",
"value",
"value",
"value",
@ -2446,7 +2411,7 @@
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
"path": "Symbol-Views/Equipment-Views/Extendo"
},
"type": "ia.display.view"
},
@ -5319,9 +5284,9 @@
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.2732,
"y": 0.8787
"width": 0.0146,
"x": 0.2712,
"y": 0.8832
},
"props": {
"params": {
@ -5329,7 +5294,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL2_2_VFD1",
"System/MCM02/Conveyor/EXTENDO/UL2_2_EX1",
"value",
"value",
"value",
@ -5341,112 +5306,7 @@
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "UL3_1"
},
"position": {
"height": 0.0185,
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3126,
"y": 0.9358
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL3_1_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "UL4_1"
},
"position": {
"height": 0.0185,
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3526,
"y": 0.9359
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL4_1_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "UL5_1"
},
"position": {
"height": 0.0185,
"rotate": {
"angle": -90
},
"width": 0.0104,
"x": 0.3918,
"y": 0.9375
},
"props": {
"params": {
"directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/UL5_1_VFD1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"path": "Symbol-Views/Equipment-Views/Status"
"path": "Symbol-Views/Equipment-Views/Extendo"
},
"type": "ia.display.view"
},
@ -5509,7 +5369,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/IO_BLOCK/FIO/PDP02_FIOM1",
"System/MCM02/IO_BLOCK/FIO/PDP2_FIO1",
"value",
"value",
"value",
@ -5527,7 +5387,7 @@
},
{
"meta": {
"name": "PS1_2A"
"name": "PS1_2B"
},
"position": {
"height": 0.0185,
@ -5544,7 +5404,7 @@
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [
"System/MCM02/Conveyor/VFD/PS1_2A_VFD1",
"System/MCM02/Conveyor/VFD/PS1_2B_VFD1",
"value",
"value",
"value",

View File

@ -87,13 +87,13 @@
"content": "cover",
"handle": "hide",
"iconUrl": "",
"id": "Docked-East",
"id": "Docked-Eas-TPR",
"modal": false,
"resizable": false,
"show": "onDemand",
"size": 400,
"viewParams": {},
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
"viewPath": "PopUp-Views/Controller-Equipment/Information-Tipper"
},
{
"anchor": "fixed",

View File

@ -5,9 +5,7 @@
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
"MCM05"
],
"running_state": -1,
"state": 0,
@ -465,7 +463,7 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Communication_Faulted"
},
"transforms": [
{
@ -483,6 +481,14 @@
{
"input": 0,
"output": "NOT FAULTED"
},
{
"input": true,
"output": "FAULTED"
},
{
"input": false,
"output": "NOT FAULTED"
}
],
"outputType": "scalar",
@ -577,7 +583,6 @@
"grow": 1
},
"props": {
"currentTabIndex": 1,
"menuType": "modern",
"tabSize": {
"width": 1000

View File

@ -7,7 +7,7 @@
"MCM04",
"MCM05"
],
"state": 0
"state": null
},
"params": {
"tagProps": [
@ -440,11 +440,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "MOTOR FAULTED"
},
{
"input": 0,
"input": false,
"output": "MOTOR NOT FAULTED"
}
],
@ -589,11 +589,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "JAM FAULTED"
},
{
"input": 0,
"input": false,
"output": "JAM NOT FAULTED"
}
],
@ -738,11 +738,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "DE ENERGIZED"
},
{
"input": 0,
"input": false,
"output": "NOT DE ENERGIZED"
}
],
@ -887,11 +887,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "ESTOPPED"
},
{
"input": 0,
"input": false,
"output": "NOT ESTOPPED"
}
],
@ -1036,11 +1036,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "ESTOPPED"
},
{
"input": 0,
"input": false,
"output": "NOT ESTOPPED"
}
],
@ -1185,11 +1185,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "STOPPED"
},
{
"input": 0,
"input": false,
"output": "NOT STOPPED"
}
],
@ -1334,11 +1334,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "SWITCH FAULTED"
},
{
"input": 0,
"input": false,
"output": "SWITCH NOT FAULTED"
}
],
@ -1483,11 +1483,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "ON UPS BATTERY"
},
{
"input": 0,
"input": false,
"output": "NOT ON UPS BATTERY"
}
],
@ -1632,11 +1632,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "BATTERY FAULTED"
},
{
"input": 0,
"input": false,
"output": "BATTERY NOT FAULTED"
}
],
@ -1781,11 +1781,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "BATTERY LOW"
},
{
"input": 0,
"input": false,
"output": "BATTERY NOT LOW"
}
],
@ -1930,11 +1930,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "ON"
},
{
"input": 0,
"input": false,
"output": "OFF"
}
],
@ -2079,11 +2079,11 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"input": true,
"output": "UPS FAULTED"
},
{
"input": 0,
"input": false,
"output": "UPS NOT FAULTED"
}
],

View File

@ -0,0 +1,17 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json",
"thumbnail.png"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-09-03T06:54:39Z"
},
"lastModificationSignature": "4b12fac034e3c2ca1986e202bb52bbf16115eaf037f088cc525c51999a096a82"
}
}

View File

@ -0,0 +1,787 @@
{
"custom": {
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05"
],
"running_state": -1,
"state": 0,
"views_data": []
},
"params": {
"tagProps": [
"System/MCM04/Station/Chute_JR/FL1038_2_JR1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"propConfig": {
"custom.PLC_list": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]Configuration/PLC"
},
"transforms": [
{
"code": "\tdevices \u003d system.util.jsonDecode(value)\n\tplcList \u003d []\n\tfor k in devices.keys():\n\t\tplcList.append(k)\n\t\t\n\treturn(sorted(set(plcList)))\n",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"custom.running_state": {
"binding": {
"config": {
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n"
},
"transforms": [
{
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})",
"type": "expression"
}
],
"type": "expr"
},
"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(isNull({value}), 0, {value})",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 3,
"output": 3
},
{
"input": 2,
"output": 2
},
{
"input": 1,
"output": 1
},
{
"input": 0,
"output": 0
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
},
"custom.views_data": {
"binding": {
"config": {
"struct": {
"equipment_id": "{view.params.tagProps[0]}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true
},
"params.tagProps": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"width": 400
}
},
"root": {
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "\u0027Source ID: \u0027 + {view.params.tagProps[0]}"
},
"type": "expr"
}
}
},
"props": {
"style": {
"color": "#FFFF",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
}
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tsystem.perspective.closeDock(\u0027Docked-Eas-TPR\u0027)\n\tself.getSibling(\"tabs\").props.currentTabIndex \u003d 0"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Icon",
"tooltip": {
"enabled": true,
"style": {
"cursor": "pointer"
},
"text": "Close faceplate"
}
},
"props": {
"path": "material/close",
"style": {
"cursor": "pointer",
"marginBottom": 5,
"marginLeft": 5,
"marginRight": 5,
"marginTop": 5
}
},
"type": "ia.display.icon"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "30px",
"shrink": 0
},
"props": {
"style": {
"overflow": "hidden"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "32px",
"display": false
},
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": "if({../AlarmTable.props.params.length_of_table_data} \u003d 0, True, False)"
},
"enabled": false,
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Labels/Label_1",
"marginTop": 20
},
"text": "No Active Alarms"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "AlarmStatusTable"
},
"position": {
"basis": "400px",
"grow": 1
},
"propConfig": {
"props.filters.active.text": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"code": "\treturn value[1:]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"columns": {
"active": {
"displayPath": {
"enabled": false
},
"priority": {
"enabled": false
},
"source": {
"enabled": false
},
"state": {
"enabled": false
}
}
},
"filters": {
"active": {
"priorities": {
"critical": false,
"high": false,
"low": false,
"medium": false
},
"states": {
"clearUnacked": false
}
}
},
"refreshRate": 500,
"toolbar": {
"enabled": false
}
},
"type": "ia.display.alarmstatustable"
}
],
"meta": {
"name": "Active_tab"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "NameField"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "NAME"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "DeviceName"
},
"position": {
"basis": "50%",
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"code": " return value.rsplit(\u0027/\u0027, 1)[-1]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Name"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"overflow": "hidden"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "NameField"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "TIPPER FAULTED"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "PB_Light"
},
"position": {
"basis": "50%",
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Tipper_Faulted"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "FAULTED"
},
{
"input": false,
"output": "NOT FAULTED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "NOT FAULTED",
"output": "#47FF47"
},
{
"input": "FAULTED",
"output": "#FF0000"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Name"
},
"position": {
"basis": "35px",
"shrink": 2
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Info_tab"
},
"position": {
"tabIndex": 1
},
"props": {
"direction": "column",
"style": {
"margin-left": ""
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/JR_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button"
},
"position": {
"basis": "80px",
"grow": 1
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"type": "expr"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#B17B50\",\r\n if(\r\n {this.props.text} \u003d \"ENABLED\",\r\n \"#00FF00\",\r\n if(\r\n {this.props.text} \u003d \"DISABLED\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Enable_PB"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "JAM RESET",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "JAM RESET PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
"image": {
"icon": {
"path": "material/sync_problem"
}
},
"style": {
"classes": "Background-Styles/Controller"
}
},
"type": "ia.input.button"
}
],
"meta": {
"name": "Reset Jam"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"padding": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "100px",
"grow": 1
},
"props": {
"direction": "column",
"style": {
"gap": 6,
"paddingBottom": 20,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 13
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Commands_tab"
},
"position": {
"tabIndex": 2
},
"props": {
"direction": "column",
"style": {
"paddingTop": 1
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "tabs"
},
"position": {
"grow": 1
},
"props": {
"currentTabIndex": 1,
"menuType": "modern",
"tabSize": {
"width": 1000
},
"tabStyle": {
"active": {
"classes": "",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
},
"inactive": {
"classes": "",
"color": "#B8B8B8",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
}
},
"tabs": [
"Alarms",
"Info",
"Commands"
]
},
"type": "ia.container.tab"
}
],
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "670px",
"grow": 1
},
"props": {
"style": {
"border-top": "1px solid white",
"gap": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "800px",
"grow": 1
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column",
"style": {
"classes": "Buttons/Button-Menu"
}
},
"type": "ia.container.flex"
}
}

View File

@ -1,13 +1,9 @@
{
"custom": {
"alarm_message": null,
"disconnected": true,
"plc": "value",
"priority": 0,
"priority_string": "No active alarms",
"searchId": "value",
"state": 0,
"state_string": "Normal"
"color": "#C2C2C2",
"priority": "No Active Alarms",
"state": "Closed"
},
"params": {
"forceFaultStatus": null,
@ -27,7 +23,7 @@
]
},
"propConfig": {
"custom.disconnected": {
"custom.color": {
"binding": {
"config": {
"fallbackDelay": 2.5,
@ -36,83 +32,160 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
},
"transforms": [
{
"expression": "!isGood({value})",
"expression": "coalesce({value},{view.params.forceFaultStatus},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.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": {
"binding": {
"config": {
"path": "view.custom.state"
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
},
"transforms": [
{
"fallback": 0,
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "No Active Alarms"
},
{
"input": 1,
"output": 4
"output": "High"
},
{
"input": 2,
"output": 3
"output": "Medium"
},
{
"input": 3,
"output": 2
"output": "Low"
},
{
"input": 4,
"output": 1
"output": "Diagnostic"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n0, \"No active alarms\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
"type": "tag"
},
"persistent": true
},
@ -125,27 +198,222 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},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"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
},
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Communication Faulted\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": {
"paramDirection": "input",
"persistent": true
@ -183,7 +451,7 @@
"props.elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#808080\u0027,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \u0027#FF0000\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#00D900\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n"
"expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
},
"type": "expr"
}

View File

@ -403,6 +403,10 @@
{
"input": 48,
"output": "Enabled"
},
{
"input": 49,
"output": "Tipper Faulted"
}
],
"outputType": "scalar",
@ -517,7 +521,7 @@
"dom": {
"onClick": {
"config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-VFD\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
"script": "\tsystem.perspective.openDock(\u0027Docked-Eas-TPR\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
},
"scope": "G",
"type": "script"