{ "custom": { "Status": 0 }, "params": { "boxColor": "var(--olGray)", "inputPower": 1, "objectName": "DiscreteIn", "outputPower": 0, "tagPath": "[Ignition_SATB1_IO1_default]ER1244/SATB1_ER1244_SPD", "textColor": "var(--olGray)", "textHandler": { "SPD1": "SPD" } }, "propConfig": { "custom.Status": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Value" }, "enabled": false, "type": "tag" }, "persistent": true }, "params.boxColor": { "paramDirection": "input", "persistent": true }, "params.inputPower": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.outputPower": { "binding": { "config": { "struct": { "CB": "{/root/SPD.custom.breakerClosed}", "inputPower": "{view.params.inputPower}" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\tif value[\u0027inputPower\u0027] or value[\u0027CB\u0027] is None:\n\t\treturn 0\n\tif value[\u0027inputPower\u0027] and value[\u0027CB\u0027]:\n\t\treturn 1\n\telse: \n\t\treturn 0", "type": "script" } ], "type": "expr-struct" }, "paramDirection": "output", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true }, "params.textColor": { "paramDirection": "input", "persistent": true }, "params.textHandler": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 55, "width": 53 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "height": 20, "width": 38, "x": 6, "y": 30 }, "propConfig": { "props.text": { "binding": { "config": { "path": "view.params.textHandler.SPD1" }, "type": "property" } } }, "props": { "alignVertical": "bottom", "textStyle": { "fontFamily": "inherit", "fontSize": 8, "textAlign": "center" } }, "type": "ia.display.label" }, { "custom": { "ColorHandler": {} }, "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": "SPD" }, "position": { "height": 50, "rotate": { "anchor": "75% 25%" }, "width": 50 }, "propConfig": { "custom.ColorHandler.Box": { "binding": { "config": { "path": "view.params.boxColor" }, "type": "property" } }, "custom.ColorHandler.Text": { "binding": { "config": { "path": "view.params.textColor" }, "type": "property" } }, "custom.ColorHandler.breakerIn": { "binding": { "config": { "struct": { "in": "{view.params.inputPower}", "sts": "{view.custom.Status}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\u0027sts\u0027] and (value[\u0027in\u0027] \u003d\u003d 1):\n\t\treturn \"var(--elec-on)\"\n\telse:\n\t\treturn \"var(--elec-off)\"", "type": "script" } ], "type": "expr-struct" } }, "custom.ColorHandler.breakerOut": { "binding": { "config": { "path": "view.params.outputPower" }, "transforms": [ { "fallback": "var(--olGray)", "inputType": "scalar", "mappings": [ { "input": 1, "output": "var(--elec-on)" }, { "input": 0, "output": "var(--elec-off)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "custom.breakerClosed": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Value" }, "type": "tag" } }, "props.elements[0].fill": { "binding": { "config": { "path": "this.custom.ColorHandler.Text" }, "type": "property" } }, "props.elements[1].fill": { "binding": { "config": { "path": "this.custom.ColorHandler.Text" }, "type": "property" } }, "props.elements[2].fill": { "binding": { "config": { "path": "this.custom.ColorHandler.Text" }, "type": "property" } }, "props.elements[4].elements[1].fill.paint": { "binding": { "config": { "expression": "case(\r\n\t{/root.custom.alarmSeverity},\r\n\t1, \"var(--coolpurple)\",\r\n\t2, \"var(--goldenyellow)\",\r\n\t3, \"var(--sunsetorange)\",\r\n\t4, \"var(--alarmred)\",\r\n\t\"transparent\"\r\n)\t" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[2].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d3,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[3].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d3,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[4].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d2,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[5].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d1,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[6].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d4,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[4].elements[7].visibility": { "binding": { "config": { "expression": "\r\nif({/root.custom.alarmSeverity}!\u003d4,\u0027hidden\u0027,\u0027visible\u0027)\r\n" }, "enabled": false, "type": "expr" } }, "props.elements[5].elements[0].stroke.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.breakerOut" }, "type": "property" } }, "props.elements[5].elements[0].visibility": { "binding": { "config": { "path": "view.custom.Status" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn False\n\treturn value", "type": "script" }, { "fallback": "visible", "inputType": "scalar", "mappings": [ { "input": true, "output": "hidden" }, { "input": false, "output": "visible" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.elements[5].elements[1].stroke.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.breakerIn" }, "type": "property" } }, "props.elements[5].elements[1].visibility": { "binding": { "config": { "path": "view.custom.Status" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn False\n\treturn value", "type": "script" }, { "fallback": "visible", "inputType": "scalar", "mappings": [ { "input": false, "output": "hidden" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.elements[5].elements[2].fill.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.breakerIn" }, "type": "property" } }, "props.elements[5].elements[3].fill.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.breakerIn" }, "type": "property" } }, "props.elements[5].elements[4].stroke.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.breakerIn" }, "type": "property" } }, "props.elements[6].elements[0].fill.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.Box" }, "type": "property" } }, "props.elements[6].elements[1].fill.paint": { "binding": { "config": { "path": "this.custom.ColorHandler.Box" }, "type": "property" } } }, "props": { "elements": [ { "elements": [ { "d": "M0.315,0.009c-0.037,0 -0.071,-0.003 -0.104,-0.01c-0.032,-0.007 -0.062,-0.016 -0.089,-0.028c-0.027,-0.013 -0.051,-0.028 -0.073,-0.046l0.029,-0.066c0.023,0.017 0.046,0.031 0.069,0.043c0.024,0.011 0.05,0.02 0.077,0.026c0.028,0.005 0.058,0.008 0.091,0.008c0.06,0 0.104,-0.011 0.133,-0.033c0.029,-0.023 0.044,-0.052 0.044,-0.089c-0,-0.019 -0.005,-0.036 -0.014,-0.05c-0.009,-0.014 -0.023,-0.026 -0.044,-0.036c-0.02,-0.01 -0.046,-0.018 -0.079,-0.025l-0.104,-0.021c-0.063,-0.013 -0.11,-0.035 -0.141,-0.065c-0.031,-0.031 -0.046,-0.071 -0.046,-0.122c0,-0.042 0.011,-0.079 0.032,-0.11c0.022,-0.031 0.052,-0.056 0.091,-0.073c0.039,-0.017 0.084,-0.026 0.134,-0.026c0.032,0 0.062,0.003 0.091,0.01c0.029,0.007 0.055,0.017 0.079,0.03c0.025,0.013 0.046,0.028 0.065,0.047l-0.029,0.064c-0.03,-0.027 -0.062,-0.047 -0.095,-0.059c-0.033,-0.013 -0.071,-0.019 -0.112,-0.019c-0.035,0 -0.066,0.005 -0.092,0.016c-0.025,0.011 -0.045,0.026 -0.06,0.047c-0.014,0.02 -0.021,0.043 -0.021,0.07c-0,0.032 0.01,0.057 0.029,0.076c0.02,0.019 0.052,0.032 0.097,0.041l0.104,0.022c0.067,0.014 0.117,0.035 0.149,0.064c0.033,0.028 0.049,0.066 0.049,0.115c-0,0.039 -0.011,0.073 -0.032,0.104c-0.021,0.03 -0.051,0.053 -0.09,0.07c-0.039,0.017 -0.085,0.025 -0.138,0.025Z", "fill": { "rule": "nonzero" }, "name": "path", "type": "path" } ], "id": "Text", "name": "Text", "transform": "matrix(4.16667,0,0,4.16667,14.627,34.9155)", "type": "group", "visibility": "hidden" }, { "elements": [ { "d": "M0.087,-0l0,-0.705l0.279,0c0.051,0 0.093,0.008 0.128,0.025c0.035,0.016 0.062,0.04 0.08,0.072c0.018,0.031 0.027,0.07 0.027,0.115c-0,0.044 -0.009,0.082 -0.027,0.114c-0.018,0.032 -0.045,0.056 -0.08,0.073c-0.035,0.017 -0.077,0.025 -0.128,0.025l-0.197,-0l-0,0.281l-0.082,-0Zm0.082,-0.35l0.187,-0c0.054,-0 0.095,-0.012 0.122,-0.036c0.028,-0.025 0.042,-0.06 0.042,-0.107c0,-0.047 -0.014,-0.083 -0.042,-0.107c-0.027,-0.025 -0.068,-0.037 -0.122,-0.037l-0.187,-0l-0,0.287Z", "fill": { "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "transform": "matrix(4.16667,0,0,4.16667,17.1895,34.9155)", "type": "group", "visibility": "hidden" }, { "elements": [ { "d": "M0.087,-0l0,-0.705l0.238,0c0.077,0 0.141,0.014 0.194,0.041c0.053,0.027 0.094,0.066 0.121,0.119c0.028,0.052 0.042,0.116 0.042,0.192c0,0.076 -0.014,0.14 -0.042,0.193c-0.027,0.053 -0.068,0.093 -0.121,0.12c-0.053,0.027 -0.117,0.04 -0.194,0.04l-0.238,-0Zm0.082,-0.07l0.15,-0c0.093,-0 0.162,-0.024 0.207,-0.071c0.046,-0.047 0.069,-0.118 0.069,-0.212c0,-0.094 -0.023,-0.164 -0.069,-0.211c-0.046,-0.047 -0.115,-0.071 -0.207,-0.071l-0.15,0l0,0.565Z", "fill": { "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "transform": "matrix(4.16667,0,0,4.16667,19.827,34.9155)", "type": "group", "visibility": "hidden" }, { "fill": "red", "name": "group", "transform": "matrix(4.16667,0,0,4.16667,22.9187,34.9155)", "type": "group" }, { "elements": [ { "fill": { "opacity": "0", "paint": "red" }, "height": "30", "id": "AlarmBorder", "name": "AlarmBorder", "type": "rect", "width": "22.5", "x": "7.5", "y": "7.481" }, { "d": "M30,7.481l0,30l-22.5,0l0,-30l22.5,0Zm-0.75,0.75l-21,0l-0,28.5l21,0l0,-28.5Z", "fill": { "paint": "transparent" }, "name": "path", "type": "path" }, { "d": "M30.358,0.629l6.489,6.489c0.199,0.199 0.199,0.522 0,0.721l-6.489,6.49c-0.199,0.198 -0.522,0.198 -0.721,-0l-6.489,-6.49c-0.199,-0.199 -0.199,-0.522 -0,-0.721l6.489,-6.489c0.199,-0.199 0.522,-0.199 0.721,0Z", "fill": { "paint": "#de7c33" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path", "visibility": "hidden" }, { "elements": [ { "elements": [ { "d": "M29.663,8.941l-0.351,-4.735l1.371,0l-0.34,4.735l-0.68,0Zm-0.318,1.81l0,-1.104l1.305,-0l0,1.104l-1.305,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group", "visibility": "hidden" }, { "elements": [ { "d": "M29.355,1.831c0.134,-0.228 0.378,-0.368 0.643,-0.368c0.264,-0 0.508,0.14 0.642,0.368c1.411,2.401 4.768,8.113 6.195,10.541c0.136,0.23 0.137,0.515 0.005,0.748c-0.133,0.232 -0.38,0.375 -0.647,0.375l-12.39,-0c-0.268,-0 -0.515,-0.143 -0.647,-0.375c-0.133,-0.233 -0.131,-0.518 0.004,-0.748c1.427,-2.428 4.784,-8.14 6.195,-10.541Z", "fill": { "paint": "#f4b834" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path" }, { "elements": [ { "elements": [ { "d": "M29.626,9.923l-0.389,-4.988l1.521,0l-0.377,4.988l-0.755,0Zm-0.353,1.907l0,-1.164l1.449,0l-0,1.164l-1.449,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group", "visibility": "hidden" }, { "elements": [ { "d": "M34.807,1.163l-0,12.632c-0,0.265 -0.216,0.481 -0.481,0.481l-8.657,-0c-0.265,-0 -0.48,-0.216 -0.48,-0.481l-0,-12.632c-0,-0.266 0.215,-0.481 0.48,-0.481l8.657,-0c0.265,-0 0.481,0.215 0.481,0.481Z", "fill": { "paint": "#7166b7" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path" }, { "elements": [ { "elements": [ { "d": "M29.626,9.023l-0.389,-5.001l1.521,-0l-0.377,5.001l-0.755,0Zm-0.353,1.913l0,-1.167l1.449,-0l-0,1.167l-1.449,-0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group", "visibility": "hidden" }, { "cx": "29.998", "cy": "7.479", "fill": { "paint": "#e22028" }, "name": "circle", "r": "7.198", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "circle", "visibility": "hidden" }, { "elements": [ { "elements": [ { "d": "M28.212,9.214l-0.389,-5.618l1.521,0l-0.377,5.618l-0.755,-0Zm-0.353,2.148l0,-1.311l1.449,-0l-0,1.311l-1.449,-0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" }, { "elements": [ { "d": "M31.097,9.214l-0.389,-5.618l1.521,0l-0.377,5.618l-0.755,-0Zm-0.353,2.148l0,-1.311l1.449,-0l-0,1.311l-1.449,-0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group", "visibility": "hidden" } ], "id": "AlarmItems", "name": "AlarmItems", "type": "group", "visibility": "visible" }, { "elements": [ { "d": "M23.535,14.606c1.262,1.2 1.897,2.695 1.871,4.5c0.008,2.095 -0.592,3.616 -1.871,4.5", "fill": { "paint": "transparent" }, "id": "Open", "name": "Open", "stroke": { "width": "0.75px" }, "type": "path", "visibility": "visible" }, { "d": "M19.875,14.606c1.261,1.2 1.896,2.695 1.87,4.5c0.009,2.095 -0.591,3.616 -1.87,4.5", "fill": { "paint": "transparent" }, "id": "Closed", "name": "Closed", "stroke": { "width": "0.75px" }, "type": "path", "visibility": "hidden" }, { "cx": "18.75", "cy": "14.606", "fill": {}, "id": "T1", "name": "T1", "r": "1.125", "type": "circle" }, { "cx": "18.75", "cy": "23.606", "fill": {}, "id": "T2", "name": "T2", "r": "1.125", "type": "circle" }, { "d": "M18.75,24.731l0,5.25", "fill": { "paint": "transparent" }, "id": "Out", "name": "Out", "stroke": { "linecap": "butt", "width": "0.75px" }, "type": "path" } ], "id": "CB", "name": "CB", "type": "group" }, { "elements": [ { "d": "M37.5,-0.019l0,37.5l-37.5,0l0,-37.5l37.5,0Zm-0.675,0.675l-36.15,0l-0,36.15l36.15,0l-0,-36.15Z", "fill": {}, "id": "Upper", "name": "Upper", "type": "path" }, { "d": "M37.5,29.981l0,7.5l-37.5,0l0,-7.5l37.5,0Zm-0.675,0.675l-36.15,0l-0,6.15l36.15,0l-0,-6.15Z", "fill": {}, "id": "Lower", "name": "Lower", "type": "path" } ], "id": "Box", "name": "Box", "type": "group" } ], "fill": { "rule": "evenodd" }, "preserveAspectRatio": "none", "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "clipRule": "evenodd" }, "viewBox": "0 0 38 38" }, "type": "ia.shapes.svg" } ], "meta": { "name": "root" }, "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": { "classes": "containers/HoverOver", "overflow": "visible" } }, "type": "ia.container.coord" } }