840 lines
25 KiB
Plaintext
840 lines
25 KiB
Plaintext
{
|
|
"custom": {
|
|
"RunningSts": 1,
|
|
"alarmSeverity": 0
|
|
},
|
|
"params": {
|
|
"objectName": "Motor",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_CH37_MOTOR"
|
|
},
|
|
"propConfig": {
|
|
"custom.RunningSts": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Status Running"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"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.objectName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 150,
|
|
"width": 286
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"custom": {
|
|
"colorHandler": {}
|
|
},
|
|
"meta": {
|
|
"name": "Chiller"
|
|
},
|
|
"position": {
|
|
"height": 168,
|
|
"width": 230,
|
|
"x": 68.72,
|
|
"y": -18
|
|
},
|
|
"propConfig": {
|
|
"custom.colorHandler.lines": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.custom.alarmSeverity} \u003e 0, \"#7d1116\", \"var(--text-muted)\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"custom.colorHandler.status": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.custom.alarmSeverity} \u003e 0, \"var(--state-faulted)\",if({view.custom.RunningSts},\"var(--state-running)\",\"var(--state-standby)\"))"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.elements[0].elements[0].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.status"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[0].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[1].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.status"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[1].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[2].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.status"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[2].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[3].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.status"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[3].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[0].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[10].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[11].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[12].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[13].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[14].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[15].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[16].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[17].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[18].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[1].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[2].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[3].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[4].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[5].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[6].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[7].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[8].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[4].elements[9].stroke.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.lines"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "M0.417,15.187l78.328,-0.004l0.099,35.067l16.823,0l-0,25.323l-95.25,0l-0,-60.386Z",
|
|
"fill": {},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M55.647,14.775l0.004,-2.433l20.681,-0l0,2.433",
|
|
"fill": {},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.75px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M30.391,14.775l0.003,-2.433l20.681,-0l0,2.433",
|
|
"fill": {},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.75px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M4.748,14.775l0.004,-2.433l20.681,-0l-0,2.433",
|
|
"fill": {},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.75px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "M3.417,15.313l-0,58.004",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M3.417,73.317l92.25,0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M3.417,48.317l75.333,0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M3.417,50.234l75.333,-0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M28.122,16.632l-11.787,31.367",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M53.385,16.286l-11.821,31.714",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M78.745,15.766l-12.206,32.251",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M3.417,18.62l11.099,29.379",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.77px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M28.187,16.632l12.015,31.363",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M53.385,16.286l11.86,31.731",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M4.344,15.183l11.143,29.462",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.79px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M29.88,15.183l10.966,28.45",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.79px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M55.063,15.183l10.796,28.317",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.79px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M26.618,15.183l-11.103,29.462",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M51.6,15.183l-10.754,28.45",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.82px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M76.657,15.183l-10.798,28.321",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"width": "0.82px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M30.392,13.943l20.683,0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M4.749,13.943l20.684,0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M55.649,13.943l20.683,0",
|
|
"fill": {
|
|
"paint": "transparent"
|
|
},
|
|
"name": "path",
|
|
"stroke": {
|
|
"linecap": "butt",
|
|
"width": "0.83px"
|
|
},
|
|
"type": "path"
|
|
}
|
|
],
|
|
"id": "Internal-Lines",
|
|
"name": "Internal-Lines",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"id": "Chiller",
|
|
"name": "Chiller",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"fill": {
|
|
"rule": "evenodd"
|
|
},
|
|
"stroke": {
|
|
"linecap": "round",
|
|
"linejoin": "round",
|
|
"miterlimit": "1.5"
|
|
},
|
|
"style": {
|
|
"clipRule": "evenodd"
|
|
},
|
|
"viewBox": "0 0 108 76"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "status"
|
|
},
|
|
"position": {
|
|
"height": 45,
|
|
"width": 196,
|
|
"x": 76.77,
|
|
"y": 95
|
|
},
|
|
"propConfig": {
|
|
"props.style.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.custom.alarmSeverity}\u003e0, \"yellow\",\"var(--action-primary)\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.custom.alarmSeverity}\u003e0, \"Faulted\",if({view.custom.RunningSts},\"Running\",\"OFF\"))"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontSize": 14,
|
|
"textAlign": "center"
|
|
},
|
|
"textStyle": {
|
|
"fontWeight": "bold"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "LLS_status"
|
|
},
|
|
"position": {
|
|
"height": 22,
|
|
"width": 117.26,
|
|
"x": 111.54,
|
|
"y": 4
|
|
},
|
|
"propConfig": {
|
|
"custom.LLSAssignment": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"MotorNo": "{this.custom.motorNumber}",
|
|
"tagPath": "{[Ignition_Common_IO_Gtwy]CHWS/Chiller_LLS/Reference Devices}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tLLSasignment \u003d value[\u0027tagPath\u0027][value[\u0027MotorNo\u0027]-1]\n\treturn LLSasignment",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
}
|
|
},
|
|
"custom.motorNumber": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.tagPath"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tparts \u003d value.split(\u0027_\u0027)[5][2:]\n\treturn int(parts)",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.custom.LLSAssignment}\u003e0,True,False)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "concat(\u0027LLS: \u0027, {this.custom.LLSAssignment})"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "HoverBox",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-right"
|
|
}
|
|
},
|
|
"position": {
|
|
"height": 140,
|
|
"width": 214,
|
|
"x": 64,
|
|
"y": 7.88
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Parameters.DeviceLabel"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.outlineColor": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.alarmSeverity"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "#00000000"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "var(--alarm-low)"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "var(--alarm-medium)"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "var(--alarm-high)"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "var(--alarm-critical)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.style.outlineStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.alarmSeverity"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "if({value}\u003e0, \"solid\", \"none\")",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"borderBottomLeftRadius": "var(--borderRadius)",
|
|
"borderBottomRightRadius": "var(--borderRadius)",
|
|
"borderTopLeftRadius": "var(--borderRadius)",
|
|
"borderTopRightRadius": "var(--borderRadius)",
|
|
"classes": "containers/HoverOver",
|
|
"outlineWidth": 2
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "EmbeddedView"
|
|
},
|
|
"position": {
|
|
"height": 32,
|
|
"width": 31.46,
|
|
"x": 257.25,
|
|
"y": -6.97
|
|
},
|
|
"propConfig": {
|
|
"props.params.AlarmSeverity": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.alarmSeverity"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"ack": false
|
|
},
|
|
"path": "Library/Alarms/Icons",
|
|
"useDefaultViewHeight": true,
|
|
"useDefaultViewWidth": true
|
|
},
|
|
"type": "ia.display.view"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |