{ "custom": {}, "params": { "objectName": "UPS", "tagPath": "[Ignition_Common_IO_Gtwy]ER1165_P5-5/SATB1_ER1165_UPS-1" }, "propConfig": { "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 104, "width": 292 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "height": 10, "width": 134, "x": 130.08, "y": 21.67 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "alarmSeverity": "{parent.custom.alarmSeverity}", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:\u0027Operating On Battery\u0027})[0][\u0027value\u0027].value \u003d\u003d True:\n\t\tstate \u003d \u0027On Battery\u0027\n\telse:\n\t\tstate \u003d \u0027Charging\u0027\n\tif value[\u0027alarmSeverity\u0027] \u003e 0:\n\t\tAlarm \u003d \u0027 and alarmed\u0027\n\telse :\n\t\tAlarm \u003d \u0027\u0027\n\treturn state + Alarm\n", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_0" }, "position": { "height": 10, "width": 133, "x": 130.08, "y": 32.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "alarmSeverity": "{parent.custom.alarmSeverity}", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\ttag \u003d system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:\u0027Operation Modes\u0027})[0][\u0027value\u0027].value\n\tif tag \u003d\u003d 1: #1\u003dNormal Operation\n\t\tstate \u003d \u0027Normal Operation\u0027\n\telif tag \u003d\u003d 2: #2\u003dBattery operation\n\t\tstate \u003d \u0027Battery operation\u0027\n\telif tag \u003d\u003d 3: #3\u003dBattery Test\n\t\tstate \u003d \u0027Battery Test\u0027\n\telif tag \u003d\u003d 4: #4\u003dRequested Static Bypass\n\t\tstate \u003d \u0027Req Static Byp\u0027\n\telif tag \u003d\u003d 5: #5\u003dForced Static Bypass\n\t\tstate \u003d \u0027Forced Static Byp\u0027\n\telif tag \u003d\u003d 6: #6\u003d Maintenance Bypass\n\t\tstate \u003d \u0027Maintenance Byp\u0027\n\telif tag \u003d\u003d 7: ##7\u003dOff\n\t\tstate \u003d \u0027Off\u0027\n\telif tag \u003d\u003d 8: #8\u003d Emergency StaticBypass\n\t\tstate \u003d \u0027Emergency Byp\u0027\n\telif tag \u003d\u003d 9: #9\u003dStatic Bypass Standby\n\t\tstate \u003d \u0027RStatic Byp Stdby\u0027\n\telif tag \u003d\u003d 10: #10\u003dInverter Standby\n\t\tstate \u003d \u0027Inverter Stdby\u0027\n\telif tag \u003d\u003d 11: #11\u003dPower Saving Mode\n\t\tstate \u003d \u0027Power Saving Mode\u0027\n\telif tag \u003d\u003d 12: #12\u003dInverter SPoT Mode\n\t\tstate \u003d \u0027Inverter SPoT Mode\u0027\n\telif tag \u003d\u003d 13: #13\u003dEco Mode\n\t\tstate \u003d \u0027Eco Mode\u0027\n\telif tag \u003d\u003d 14: #14\u003dECOnversion\n\t\tstate \u003d \u0027ECOnversion\u0027\n\telse:\n\t\tstate \u003d \u0027No mode received\u0027\n\treturn \u0027Mode: \u0027+state\n\n", "type": "script" } ], "type": "expr-struct" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_1" }, "position": { "height": 10, "width": 131, "x": 130.08, "y": 43.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "displayName": "\u0027Batt Charge Pct\u0027", "engUnits": "\u0027%\u0027", "tagName": "\u0027Battery Charge Percent\u0027", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tstate \u003d str(system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:value[\u0027tagName\u0027]})[0][\u0027value\u0027].value)\n\treturn value[\u0027displayName\u0027]+\u0027: \u0027+state+ \u0027 \u0027 +value[\u0027engUnits\u0027]", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_2" }, "position": { "height": 10, "width": 183, "x": 130.08, "y": 54.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "displayName": "\u0027Battery runtime\u0027", "engUnits": "\u0027Hr\u0027", "tagName": "\u0027Battery runtime\u0027", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tstate \u003d str(system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:value[\u0027tagName\u0027]})[0][\u0027value\u0027].value)\n\treturn value[\u0027displayName\u0027]+\u0027: \u0027+state+ \u0027 \u0027 +value[\u0027engUnits\u0027]", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_3" }, "position": { "height": 10, "width": 176, "x": 130.08, "y": 65.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "displayName": "\"Battery Voltage\"", "engUnits": "\"V\"", "tagName": "\"Battery Voltage\"", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tstate \u003d str(system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:value[\u0027tagName\u0027]})[0][\u0027value\u0027].value)\n\treturn value[\u0027displayName\u0027]+\u0027: \u0027+state+ \u0027 \u0027 +value[\u0027engUnits\u0027]\n", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_4", "visible": false }, "position": { "height": 10, "width": 129.76, "x": 130.08, "y": 76.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "displayName": "\u0027Input power\u0027", "engUnits": "\u0027kW\u0027", "tagName": "\u0027Input KW\u0027", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tstate \u003d str(system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:value[\u0027tagName\u0027]})[0][\u0027value\u0027].value)\n\treturn value[\u0027displayName\u0027]+\u0027: \u0027+state+ \u0027 \u0027 +value[\u0027engUnits\u0027]", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_5" }, "position": { "height": 11, "width": 137, "x": 130.08, "y": 87.65 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "displayName": "\u0027Input Freq\u0027", "engUnits": "\u0027Hz\u0027", "tagName": "\u0027Input Frequency\u0027", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tstate \u003d str(system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:value[\u0027tagName\u0027]})[0][\u0027value\u0027].value)\n\treturn value[\u0027displayName\u0027]+\u0027: \u0027+state+ \u0027 \u0027 +value[\u0027engUnits\u0027]", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "fontSize": 10 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_6" }, "position": { "height": 8.63, "width": 88, "x": 37.75, "y": 6.37 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "tagPath": "tag({view.params.tagPath}+\u0027/Parameters.DeviceLabel\u0027)" }, "waitOnAll": true }, "transforms": [ { "code": "\treturn value[\u0027tagPath\u0027]\n", "type": "script" } ], "type": "expr-struct" } } }, "props": { "textStyle": { "backgroundColor": "transparent", "fontSize": 10, "fontWeight": 650, "textAlign": "center" } }, "type": "ia.display.label" }, { "custom": { "colorHandler": {} }, "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": "UPS SVG" }, "position": { "height": 78, "width": 124, "x": 6.348125, "y": 21.99625 }, "propConfig": { "custom.colorHandler.Background": { "binding": { "config": { "struct": { "alarmSeverity": "{parent.custom.alarmSeverity}", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\u0027alarmSeverity\u0027] \u003c 0:\n\t\tColor \u003d \u0027Red\u0027\n\telif system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:\u0027Operating On Battery\u0027})[0][\u0027value\u0027].value \u003d\u003d True:\n\t\tColor \u003d \u0027White\u0027\n\telse :\n\t\tColor \u003d \u0027Lightgray\u0027\n\treturn Color\n", "type": "script" } ], "type": "expr-struct" } }, "custom.colorHandler.Battery": { "binding": { "config": { "struct": { "alarmSeverity": "{parent.custom.alarmSeverity}", "tagPath": "{view.params.tagPath}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif system.tag.browse(value[\u0027tagPath\u0027],{\u0027name\u0027:\u0027Operating On Battery\u0027})[0][\u0027value\u0027].value \u003d\u003d True:\n\t\tColor \u003d \u0027#00FF00\u0027\n\telse:\n\t\tColor \u003d \u0027Light Gray\u0027\n\treturn Color\n", "type": "script" } ], "type": "expr-struct" } }, "props.elements[1].elements[0].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Background" }, "type": "property" } }, "props.elements[1].elements[10].elements[0].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Battery" }, "type": "property" } }, "props.elements[1].elements[10].elements[1].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Battery" }, "type": "property" } }, "props.elements[1].elements[3].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Background" }, "type": "property" } }, "props.elements[1].elements[4].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Background" }, "type": "property" } }, "props.elements[1].elements[5].fill.paint": { "binding": { "config": { "path": "this.custom.colorHandler.Background" }, "type": "property" } } }, "props": { "elements": [ { "name": "defs", "type": "defs" }, { "elements": [ { "d": "M.0,.0L1099.0,.0L1099.0,647.1L.0,647.1L.0,.0z", "fill": { "rule": "nonzero" }, "id": "shape2", "name": "shape2", "stroke": { "paint": "#000000", "width": 3 }, "transform": "translate(7.803696,0.000000)", "type": "path" }, { "d": "M11.7,.0L300.3,.0C306.8,.0,312.1,6.9,312.1,15.5L312.1,129.0C312.1,137.6,306.8,144.5,300.3,144.5L11.7,144.5C5.2,144.5,.0,137.6,.0,129.0L.0,15.5C.0,6.9,5.2,.0,11.7,.0z", "fill": { "paint": "Lightgray", "rule": "nonzero" }, "id": "shape3", "name": "shape3", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(55.686687,60.719804)", "type": "path" }, { "d": "M5.0,.0L287.8,.0C290.7,.0,293.1,2.9,293.1,6.6L293.1,116.8C293.1,120.5,290.7,123.5,287.8,123.5L5.0,123.5C2.2,123.5,.0,120.5,.0,116.8L.0,6.6C.0,2.9,2.2,.0,5.0,.0z", "fill": { "paint": "#ffffff", "rule": "nonzero" }, "id": "shape4", "name": "shape4", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(65.210483,71.159788)", "type": "path" }, { "d": "M.0,.0L671.7,.0L671.7,652.9L.0,652.9L.0,.0z", "fill": { "rule": "nonzero" }, "id": "shape5", "name": "shape5", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(435.111510,0.000000)", "type": "path" }, { "d": "M.0,.0L341.1,.0L341.1,652.9L.0,652.9L.0,.0z", "fill": { "rule": "nonzero" }, "id": "shape6", "name": "shape6", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(766.122799,0.000434)", "type": "path" }, { "d": "M.0,.0L1115.0,.0L1115.0,62.2L.0,62.2L.0,.0z", "fill": { "rule": "nonzero" }, "id": "shape7", "name": "shape7", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(-0.000000,647.052589)", "type": "path" }, { "d": "M6.6,.0L59.8,.0C63.5,.0,66.6,3.0,66.6,6.7L66.6,6.7C66.6,10.5,63.5,13.5,59.8,13.5L6.6,13.5C2.9,13.5,-0.1,10.5,-0.1,6.7L-0.1,6.7C-0.1,3.0,2.9,.0,6.6,.0z", "fill": { "paint": "lightgray", "rule": "nonzero" }, "id": "shape8", "name": "shape8", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(110.367874,231.883502)", "type": "path" }, { "d": "M6.6,.0L59.8,.0C63.5,.0,66.6,3.0,66.6,6.7L66.6,6.7C66.6,10.5,63.5,13.5,59.8,13.5L6.6,13.5C2.9,13.5,-0.1,10.5,-0.1,6.7L-0.1,6.7C-0.1,3.0,2.9,.0,6.6,.0z", "fill": { "paint": "lightgray", "rule": "nonzero" }, "id": "shape9", "name": "shape9", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(110.367874,267.554346)", "type": "path" }, { "d": "M6.6,.0L59.8,.0C63.5,.0,66.6,3.0,66.6,6.7L66.6,6.7C66.6,10.5,63.5,13.5,59.8,13.5L6.6,13.5C2.9,13.5,-0.1,10.5,-0.1,6.7L-0.1,6.7C-0.1,3.0,2.9,.0,6.6,.0z", "fill": { "paint": "lightgray", "rule": "nonzero" }, "id": "shape10", "name": "shape10", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(246.662731,231.888147)", "type": "path" }, { "d": "M6.6,.0L59.8,.0C63.5,.0,66.6,3.0,66.6,6.7L66.6,6.7C66.6,10.5,63.5,13.5,59.8,13.5L6.6,13.5C2.9,13.5,-0.1,10.5,-0.1,6.7L-0.1,6.7C-0.1,3.0,2.9,.0,6.6,.0z", "fill": { "paint": "lightgray", "rule": "nonzero" }, "id": "shape11", "name": "shape11", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(246.662731,267.558991)", "type": "path" }, { "elements": [ { "d": "M.0,.0L58.2,.0L58.2,28.2L.0,28.2L.0,.0z", "fill": {}, "id": "shape14", "name": "shape14", "stroke": { "linecap": "round", "paint": "#191919", "width": "3" }, "transform": "translate(30.862135,-0.000000)", "type": "path" }, { "d": "M.0,.0L119.9,.0L119.9,188.8L.0,188.8L.0,.0z", "fill": {}, "id": "shape15", "name": "shape15", "stroke": { "linecap": "round", "paint": "#191919", "width": "3" }, "transform": "translate(0.000000,28.533245)", "type": "path" }, { "d": "M27.7,32.8L45.9,32.8L13.8,77.0L18.2,44.2L.0,44.2L32.0,.0L27.7,32.8z", "fill": { "paint": "white" }, "id": "shape13", "name": "shape13", "stroke": { "paint": "#191919", "width": "3" }, "transform": "matrix(0.000000,-1.000000,1.000000,0.000000,21.443090,147.049433)", "type": "path" } ], "id": "group12", "name": "group12", "transform": "matrix(0.000000,1.000000,-1.000000,0.000000,335.433071,351.467354)", "type": "group" }, { "d": "M.0,.0L302.4,.0L302.4,231.5L.0,231.5L.0,.0M15.1,11.6L287.2,11.6L287.2,219.9L15.1,219.9L15.1,11.6M15.1,32.4L287.2,32.4M15.1,53.2L287.2,53.2M15.1,74.1L287.2,74.1M15.1,94.9L287.2,94.9M15.1,115.7L287.2,115.7M15.1,136.6L287.2,136.6M15.1,157.4L287.2,157.4M15.1,178.3L287.2,178.3M15.1,199.1L287.2,199.1", "fill": { "paint": "#ffffff", "rule": "nonzero" }, "id": "shape16", "name": "shape16", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(448.818898,401.962243)", "type": "path" }, { "d": "M.0,.0L302.4,.0L302.4,231.5L.0,231.5L.0,.0M15.1,11.6L287.2,11.6L287.2,219.9L15.1,219.9L15.1,11.6M15.1,32.4L287.2,32.4M15.1,53.2L287.2,53.2M15.1,74.1L287.2,74.1M15.1,94.9L287.2,94.9M15.1,115.7L287.2,115.7M15.1,136.6L287.2,136.6M15.1,157.4L287.2,157.4M15.1,178.3L287.2,178.3M15.1,199.1L287.2,199.1", "fill": { "paint": "#ffffff", "rule": "nonzero" }, "id": "shape17", "name": "shape17", "stroke": { "paint": "#000000", "width": "3" }, "transform": "translate(785.501260,401.962306)", "type": "path" } ], "id": "page1", "name": "page1", "transform": "translate(5.5,5.5)", "type": "group" } ], "viewBox": "0 0 1132 804" }, "type": "ia.shapes.svg" } ], "meta": { "name": "root" }, "position": { "x": -116, "y": -133.63750076293945 }, "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" } } }, "props": { "style": { "overflow": "visible" } }, "type": "ia.container.coord" } }