{ "custom": { "AlarmSeverity": 0, "Status": 1, "StatusRunning": 1, "faulted": 0 }, "params": { "embedded": false, "objectName": "Motor", "tagPath": "[Ignition_Common_IO_Gtwy]RM1141/SATB1_RM1141_PMP_01" }, "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.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}/Status Running" }, "enabled": false, "type": "tag" }, "persistent": true }, "custom.faulted": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Alarms/AlarmSummary" }, "enabled": false, "type": "tag" }, "persistent": true }, "params.embedded": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 170, "width": 200 } }, "root": { "children": [ { "meta": { "name": "Simple motor 2" }, "position": { "height": 100, "width": 140, "x": 30, "y": 56 }, "propConfig": { "props.elements[1].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": [ { "d": "M994,297 l-83,0 0,83 83,0 0,-83z", "fill": { "paint": "#e0e0e0" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M353,672 l0,-30 200,0 0,30 23,0 0,46 159,0 0,-46 15,0 64,-11 51,-26 34,-38 12,-47 0,-424 -12,-49 -34,-38 -51,-26 -64,-8 -580,0 -64,8 -53,26 -34,38 -14,49 0,424 14,47 34,38 53,26 62,11 0,46 159,0 0,-46 26,0z", "fill": {}, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M327,680 l-159,0 0,32 159,0 0,-32z", "fill": { "paint": "#e0e0e0" }, "name": "path", "type": "path" }, { "d": "M735,680 l-159,0 0,32 159,0 0,-32z", "fill": { "paint": "#e0e0e0" }, "name": "path", "type": "path" }, { "d": "M164,5 l0,664", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M754,5 l0,664", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M5,338 l159,0", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M911,338 l-157,0", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M327,680 l-159,0 0,32 159,0 0,-32", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" }, { "d": "M735,680 l-159,0 0,32 159,0 0,-32", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#4c4c4c", "width": "2" }, "type": "path" } ], "viewBox": "0 0 999 723" }, "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": 112, "width": 157, "x": 18.5, "y": 50 }, "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": "Label_0" }, "position": { "height": 28, "width": "100%", "y": 25 }, "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": "SP", "textStyle": { "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "Label_1" }, "position": { "height": 24, "width": "100%", "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": { "style": { "paddingLeft": 10 }, "text": "Room" }, "type": "ia.display.label" }, { "meta": { "name": "AlarmIcons" }, "position": { "height": 48, "width": 45, "x": 153.97, "y": 22.5 }, "propConfig": { "props.params.AlarmSeverity": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "type": "property" } } }, "props": { "path": "Library/Alarms/Icons" }, "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" } }