Files
Stream_PHX_A7/Gateways/FE/projects/.resources/4e32bda14de43c4229b1818c6634202459271cd1b10a65677ea0d836241b71fd

374 lines
9.7 KiB
Plaintext

{
"custom": {
"AlarmSeverity": -1,
"Faulted": false,
"Mode": 1,
"Running": false
},
"params": {
"Layout": false,
"objectName": "Motor",
"tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/SATB1_MPR1140_VFD01"
},
"propConfig": {
"custom.AlarmSeverity": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
},
"transforms": [
{
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"custom.Faulted": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"code": "\tif value \u003e 0:\n\t\treturn True\n\telse:\n\t\treturn False",
"type": "script"
}
],
"type": "property"
},
"persistent": true
},
"custom.Mode": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Control/ModeCMD"
},
"transforms": [
{
"fallback": 0,
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": 2
},
{
"input": true,
"output": 1
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
},
"custom.Running": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Status Running"
},
"type": "tag"
},
"persistent": true
},
"params.Layout": {
"paramDirection": "input",
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 45,
"width": 61
}
},
"root": {
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"height": 50,
"width": 41.02,
"y": -5
},
"propConfig": {
"props.alignVertical": {
"binding": {
"config": {
"path": "view.params.Layout"
},
"transforms": [
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "bottom"
},
{
"input": true,
"output": "top"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Parameters.DeviceLabel"
},
"type": "tag"
}
}
},
"props": {
"textStyle": {
"fontSize": 12,
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tpayload\u003d{\n\t\t\u0027objectName\u0027: objectName,\n\t\t\u0027tagPath\u0027: tagPath,\n\t\t\u0027modal\u0027: False,\n\t\t\u0027resizable\u0027: True,\n\t\t\u0027draggable\u0027: True,\n\t\t\u0027position\u0027: {\n#\t\t\t\u0027left\u0027:\u00270\u0027,\n#\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}\n\t}\n\tutils.nav.eqPopupMsg(self, payload)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "CHW Pump VFD"
},
"position": {
"height": 34.63,
"rotate": {
"angle": "270deg"
},
"width": 24,
"x": 8.95,
"y": 2.46
},
"propConfig": {
"props.elements[0].elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if({view.custom.Faulted},\"var(--state-faulted)\", if({view.custom.Running},\"var(--state-running)\",\"var(--state-standby)\"))"
},
"type": "expr"
}
},
"props.style.outlineColor": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"transforms": [
{
"fallback": "white",
"inputType": "scalar",
"mappings": [
{
"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": {
"elements": [
{
"elements": [
{
"cx": "11.625",
"cy": "11.625",
"fill": {},
"name": "circle",
"r": "11.25",
"stroke": {
"paint": "#000",
"width": "0.75px"
},
"type": "circle"
},
{
"d": "M11.625,22.875l9.75,-16.5l-19.5,0l9.75,16.5Z",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "0.75px"
},
"type": "path"
}
],
"id": "Pump",
"name": "Pump",
"type": "group"
}
],
"fill": {
"rule": "evenodd"
},
"stroke": {
"linecap": "round",
"linejoin": "round",
"miterlimit": "1.5"
},
"style": {
"classes": "containers/HoverOver",
"clipRule": "evenodd",
"outlineWidth": "2"
},
"viewBox": "0 0 24 24"
},
"type": "ia.shapes.svg"
},
{
"meta": {
"name": "ModeBadge"
},
"position": {
"height": 16,
"width": 20,
"x": 35.96,
"y": 11.92
},
"propConfig": {
"props.params.Mode": {
"binding": {
"config": {
"path": "view.custom.Mode"
},
"type": "property"
}
}
},
"props": {
"path": "Library/CommonObjects/ModeBadgeSmall",
"style": {
"borderBottomLeftRadius": "var(--borderRadius)",
"borderBottomRightRadius": "var(--borderRadius)",
"borderTopLeftRadius": "var(--borderRadius)",
"borderTopRightRadius": "var(--borderRadius)",
"boxShadow": "var(--boxShadow1)"
}
},
"type": "ia.display.view"
},
{
"meta": {
"name": "AlarmIcons"
},
"position": {
"height": 15.87,
"width": 16.66,
"x": 32.41,
"y": -1.68
},
"propConfig": {
"props.params.AlarmSeverity": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"type": "property"
}
}
},
"props": {
"path": "Library/Alarms/Icons",
"style": {
"overflow": "visible"
},
"useDefaultViewHeight": true,
"useDefaultViewWidth": true
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"overflow": "visible"
}
},
"type": "ia.container.coord"
}
}