Files
Stream_PHX_A7/Gateways/FE/projects/.resources/6df924b2967efe3052d33eece66258ed7a2e97af5ba6782a90df58927d081990

414 lines
12 KiB
Plaintext

{
"custom": {
"AlarmSeverity": 0
},
"params": {
"embedded": false,
"objectName": "PID_Loop",
"tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/CHWBPV_PID_1",
"title": "value"
},
"propConfig": {
"custom.AlarmSeverity": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
},
"enabled": false,
"transforms": [
{
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"params.embedded": {
"paramDirection": "input",
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
},
"params.title": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 144,
"width": 201
}
},
"root": {
"children": [
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"basis": "0.1px"
},
"propConfig": {
"props.params.AlarmSeverity": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"type": "property"
}
}
},
"props": {
"path": "Library/Alarms/Icons",
"style": {
"marginLeft": 135,
"marginTop": -20,
"overflow": "visible",
"z-index": 2
},
"useDefaultViewHeight": true,
"useDefaultViewWidth": true
},
"type": "ia.display.view"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.title"
},
"type": "property"
}
}
},
"type": "ia.display.label"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "50px"
},
"props": {
"text": "SP:",
"textStyle": {
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_0"
},
"position": {
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Control/PSet_SP"
},
"enabled": false,
"transforms": [
{
"formatType": "numeric",
"formatValue": "#,###.###",
"type": "format"
}
],
"type": "tag"
}
}
},
"props": {
"text": 0.05,
"textStyle": {
"color": "var(--tagvalue-color)"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "48px"
},
"props": {
"style": {
"gap": "5px"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "50px"
},
"props": {
"text": "PV:",
"textStyle": {
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_0"
},
"position": {
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Input PV"
},
"enabled": false,
"transforms": [
{
"formatType": "numeric",
"formatValue": "###.###",
"type": "format"
}
],
"type": "tag"
}
}
},
"props": {
"text": 0.051,
"textStyle": {
"color": "var(--tagvalue-color)"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "48px"
},
"props": {
"style": {
"gap": "5px"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "50px"
},
"props": {
"text": "CV:",
"textStyle": {
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_0"
},
"position": {
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Out CV"
},
"enabled": false,
"transforms": [
{
"formatType": "numeric",
"formatValue": "#,###.###",
"type": "format"
}
],
"type": "tag"
}
}
},
"props": {
"text": 41.945,
"textStyle": {
"color": "var(--tagvalue-color)"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "48px"
},
"props": {
"style": {
"gap": "5px"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_2"
},
"position": {
"basis": "200px"
},
"props": {
"direction": "column",
"style": {
"paddingTop": 20
}
},
"type": "ia.container.flex"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tif(self.view.params.embedded \u003d\u003d True):\n\t\tpageId \u003d self.page.props.pageId\n\t\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\t\ttagPath \u003d self.view.params.tagPath\n\t\tobjectName \u003d self.view.params.objectName\n\t\tutils.nav.openEQPopup(objectName, tagPath)\n\telse:\n\t\ttagPath \u003d self.view.params.tagPath\n\t\tobjectName \u003d self.view.params.objectName\n\t\tpayload\u003d{\n\t\t\t\u0027objectName\u0027: objectName,\n\t\t\t\u0027tagPath\u0027: tagPath,\n\t\t\t\u0027modal\u0027: False,\n\t\t\t\u0027resizable\u0027: True,\n\t\t\t\u0027draggable\u0027: True,\n\t\t\t\u0027position\u0027: {\n\t#\t\t\t\u0027left\u0027:\u00270\u0027,\n\t#\t\t\t\u0027top\u0027:\u00270\u0027,\n\t\t\t\u0027width\u0027: \u00271000px\u0027,\n\t\t\t\u0027height\u0027: \u0027800px\u0027\n\t\t\t}\n\t\t}\n\t\tutils.nav.eqPopupMsg(self, payload)\n\t\n\t"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "root"
},
"propConfig": {
"props.style.outlineColor": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"fallback": "none",
"inputType": "scalar",
"mappings": [
{
"input": -1,
"output": "white"
},
{
"input": 0,
"output": "white"
},
{
"input": 1,
"output": "var(--coolpurple)"
},
{
"input": 2,
"output": "var(--goldenyellow)"
},
{
"input": 3,
"output": "var(--sunsetorange)"
},
{
"input": 4,
"output": "var(--alarmred)"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.style.outlineStyle": {
"binding": {
"config": {
"expression": "if({view.custom.AlarmSeverity}\u003e0, \"Solid\",\"None\")"
},
"type": "expr"
}
}
},
"props": {
"direction": "column",
"style": {
"backgroundColor": "--containerNested",
"borderBottomLeftRadius": 4,
"borderBottomRightRadius": 4,
"borderTopLeftRadius": 4,
"borderTopRightRadius": 4,
"boxShadow": "var(--boxShadow2)",
"gap": "5px",
"overflow": "visible",
"padding": "5px"
}
},
"type": "ia.container.flex"
}
}