601 lines
17 KiB
Plaintext
601 lines
17 KiB
Plaintext
{
|
|
"custom": {
|
|
"AlarmSeverity": 0,
|
|
"Faulted": 0,
|
|
"Status": 1,
|
|
"StatusRunning": 1,
|
|
"colorHandler": {
|
|
"text": "var(--text-muted)"
|
|
}
|
|
},
|
|
"params": {
|
|
"embedded": false,
|
|
"objectName": "Motor",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]ER1229/SATB1_ER1229_EF4_VFD"
|
|
},
|
|
"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
|
|
},
|
|
"custom.Faulted": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.AlarmSeverity"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value\u003e0:\n\t\treturn 1\n\telse:\n\t\treturn 0",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.Status": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"faulted": "{view.custom.Faulted}",
|
|
"running": "{view.custom.StatusRunning}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\toutput \u003d 0\n\tif value[\"faulted\"]:\n\t\toutput \u003d 2\n\telse:\n\t\tif value[\"running\"]:\n\t\t\toutput \u003d 1\n\t\telse:\n\t\t\toutput \u003d 0\n\treturn output",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.StatusRunning": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Motor/Status Running"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.colorHandler": {
|
|
"persistent": true
|
|
},
|
|
"params.embedded": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.objectName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 200,
|
|
"width": 200
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "EX Fan"
|
|
},
|
|
"position": {
|
|
"height": 180,
|
|
"width": 180,
|
|
"x": 10,
|
|
"y": 10
|
|
},
|
|
"propConfig": {
|
|
"props.elements[0].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.Status"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "purple",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "var(--state-standby)"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "var(--state-running)"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "var(--state-faulted)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[1].elements[1].elements[1].fill": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.colorHandler.text"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[1].elements[1].elements[3].fill": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.colorHandler.text"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[2].elements[0].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.colorHandler.text"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[2].elements[1].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.colorHandler.text"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[2].elements[2].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.colorHandler.text"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"d": "M275.352,356.545c0,63.241 -51.343,114.584 -114.583,114.584c-63.24,-0 -114.583,-51.343 -114.583,-114.584c-0,-63.24 51.343,-114.583 114.583,-114.583l174.266,0l-0,114.583l-59.683,0Z",
|
|
"fill": {},
|
|
"id": "Fan",
|
|
"name": "Fan",
|
|
"stroke": {
|
|
"paint": "#000",
|
|
"width": "4.17px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"name": "group",
|
|
"transform": "matrix(50,0,0,50,208.277,342.19)",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"name": "text",
|
|
"style": {
|
|
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
|
|
"fontSize": "50px"
|
|
},
|
|
"text": "Fan",
|
|
"type": "text",
|
|
"x": "122.12px",
|
|
"y": "342.19px"
|
|
},
|
|
{
|
|
"name": "group",
|
|
"transform": "matrix(50,0,0,50,213.514,396.17)",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"name": "text",
|
|
"style": {
|
|
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
|
|
"fontSize": "50px"
|
|
},
|
|
"text": "(EF)",
|
|
"type": "text",
|
|
"x": "116.322px",
|
|
"y": "396.17px"
|
|
}
|
|
],
|
|
"name": "group",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"name": "group",
|
|
"transform": "matrix(50,0,0,50,562.866,35.791)",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"name": "text",
|
|
"style": {
|
|
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
|
|
"fontSize": "50px"
|
|
},
|
|
"text": "Exhaust",
|
|
"type": "text",
|
|
"x": "382.202px",
|
|
"y": "35.791px"
|
|
},
|
|
{
|
|
"name": "group",
|
|
"transform": "matrix(50,0,0,50,504.578,86.6217)",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"name": "text",
|
|
"style": {
|
|
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
|
|
"fontSize": "50px"
|
|
},
|
|
"text": "Air",
|
|
"type": "text",
|
|
"x": "443.469px",
|
|
"y": "86.622px"
|
|
}
|
|
],
|
|
"name": "group",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"id": "Text-Items",
|
|
"name": "Text-Items",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "M335.035,294.949l139.294,-0l-0,-198.085",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "4.17px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M474.329,96.864l32.842,21.162",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "4.17px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M474.329,96.864l-32.842,21.162",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "4.17px"
|
|
},
|
|
"type": "path"
|
|
}
|
|
],
|
|
"id": "Arrow",
|
|
"name": "Arrow",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"fill": {
|
|
"rule": "evenodd"
|
|
},
|
|
"stroke": {
|
|
"linecap": "round",
|
|
"linejoin": "round",
|
|
"miterlimit": "1.5"
|
|
},
|
|
"style": {
|
|
"clipRule": "evenodd"
|
|
},
|
|
"viewBox": "0 0 563 496"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
},
|
|
{
|
|
"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": "Label"
|
|
},
|
|
"position": {
|
|
"height": 92,
|
|
"width": 117,
|
|
"x": 10.000001907348633,
|
|
"y": 87
|
|
},
|
|
"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": {
|
|
"path": "view.custom.AlarmSeverity"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "none",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": -1,
|
|
"output": "none"
|
|
},
|
|
{
|
|
"input": 0,
|
|
"output": "none"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "solid"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "solid"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "solid"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "solid"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "containers/HoverOver"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "AlarmIcons"
|
|
},
|
|
"position": {
|
|
"height": 45,
|
|
"width": 38,
|
|
"x": 108.997,
|
|
"y": 62.4973
|
|
},
|
|
"propConfig": {
|
|
"props.params.AlarmSeverity": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.AlarmSeverity"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"path": "Library/Alarms/Icons"
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Label_0"
|
|
},
|
|
"position": {
|
|
"height": 32,
|
|
"width": 80,
|
|
"x": 58.98,
|
|
"y": 69
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Meta/EqName"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"text": "EF"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Label_1"
|
|
},
|
|
"position": {
|
|
"height": 32,
|
|
"width": 115,
|
|
"x": 5,
|
|
"y": 5
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Meta/Room"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"text": "Room"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "EmbeddedView"
|
|
},
|
|
"position": {
|
|
"height": 35,
|
|
"width": 81,
|
|
"x": 87,
|
|
"y": 138.98
|
|
},
|
|
"propConfig": {
|
|
"props.params.Value": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Motor/Speed Feedback"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"EU": "%",
|
|
"EU_Pos": 0,
|
|
"Size": 14,
|
|
"Value": 45,
|
|
"color": "var(--tagvalue-color)"
|
|
},
|
|
"path": "Library/Widgets/Wgt_Variable"
|
|
},
|
|
"type": "ia.display.view"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"backgroundColor": "var(--container)",
|
|
"borderBottomLeftRadius": 2,
|
|
"borderBottomRightRadius": 2,
|
|
"borderTopLeftRadius": 2,
|
|
"borderTopRightRadius": 2,
|
|
"boxShadow": "var(--boxShadow2)",
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |