{ "custom": { "AlarmSeverity": -1, "Faulted": false, "Layout": true, "Mode": 1, "Running": true }, "params": { "Layout": true, "Popup": true, "embedded": false, "objectName": "Motor", "tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/SATB1_HS1_ASP1" }, "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" }, "persistent": true }, "custom.Faulted": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Alarms/Alarm Summary" }, "type": "tag" }, "persistent": true }, "custom.Layout": { "binding": { "config": { "path": "view.params.Layout" }, "type": "property" }, "persistent": true }, "custom.Mode": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Control/ModeCMD" }, "transforms": [ { "fallback": 0, "inputType": "scalar", "mappings": [ { "input": false, "output": 2 }, { "input": true, "output": 1 } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.Running": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Status Running" }, "type": "tag" }, "persistent": true }, "params.Layout": { "paramDirection": "input", "persistent": true }, "params.Popup": { "paramDirection": "input", "persistent": true }, "params.embedded": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 68, "width": 75 } }, "root": { "children": [ { "meta": { "name": "Value" }, "position": { "height": "auto", "width": 60, "y": 50 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.custom.Layout" }, "type": "property" } }, "props.text": { "binding": { "config": { "expression": "if({view.custom.Faulted},\"Faulted\", if({view.custom.Running},\"Running\",\"Stand By\"))" }, "type": "expr" } } }, "props": { "textStyle": { "color": "#0600FF", "fontSize": 12, "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "Tag01" }, "position": { "height": "auto", "width": 60 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.custom.Layout" }, "type": "property" } }, "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Parameters.DeviceLabel" }, "type": "tag" } } }, "props": { "textStyle": { "fontSize": 12, "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "ModeBadge" }, "position": { "height": 17, "width": 21, "x": 48.97, "y": 12.4 }, "propConfig": { "props.params.Mode": { "binding": { "config": { "path": "view.custom.Mode" }, "type": "property" } } }, "props": { "path": "Library/CommonObjects/ModeBadgeSmall", "style": { "borderBottomLeftRadius": "var(--borderRadius)", "borderBottomRightRadius": "var(--borderRadius)", "borderTopLeftRadius": "var(--borderRadius)", "borderTopRightRadius": "var(--borderRadius)", "boxShadow": "var(--boxShadow1)", "overflow": "visible" } }, "type": "ia.display.view" }, { "events": { "dom": { "onClick": { "config": { "script": "\tif self.view.params.embedded:\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\t\u0027width\u0027: \u00271000px\u0027,\n\t\t\t\t\u0027height\u0027: \u0027800px\u0027\n\t\t\t}\n\t\t}\n\t\tutils.nav.eqPopupMsg(self, payload)\n\telse:\n\t\tpageId \u003d self.page.props.pageId\n\t\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\t\n\t\ttagPath \u003d self.view.params.tagPath\n\t\tobjectName \u003d self.view.params.objectName\n\t\tutils.nav.openEQPopup(objectName, tagPath)\t" }, "scope": "G", "type": "script" } } }, "meta": { "name": "CHW Pump VFD" }, "position": { "height": 43, "rotate": { "anchor": "36% 39%" }, "width": 35, "x": 12.29, "y": 20.16 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.params.Popup" }, "enabled": false, "transforms": [ { "fallback": false, "inputType": "scalar", "mappings": [ { "input": false, "output": true }, { "input": true, "output": false } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "position.rotate.angle": { "binding": { "config": { "path": "view.custom.Layout" }, "transforms": [ { "fallback": "0deg", "inputType": "scalar", "mappings": [ { "input": false, "output": "0deg" }, { "input": true, "output": "270deg" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.elements[0].elements[0].fill.paint": { "binding": { "config": { "expression": "if({view.custom.Faulted},\"var(--state-faulted)\", if({view.custom.Running},\"var(--state-running)\",\"var(--state-standby)\"))" }, "type": "expr" } }, "props.style.outlineColor": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "white", "inputType": "scalar", "mappings": [ { "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": { "expression": "if({view.custom.AlarmSeverity} \u003e0, \"solid\", \"none\")" }, "type": "expr" } } }, "props": { "elements": [ { "elements": [ { "cx": "11.625", "cy": "11.625", "fill": {}, "name": "circle", "r": "11.25", "stroke": { "paint": "#000", "width": "0.75px" }, "type": "circle" }, { "d": "M11.625,22.875l9.75,-16.5l-19.5,0l9.75,16.5Z", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#000", "width": "0.75px" }, "type": "path" } ], "id": "Pump", "name": "Pump", "type": "group" } ], "fill": { "rule": "evenodd" }, "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "classes": "containers/HoverOver", "clipRule": "evenodd", "outlineWidth": "2" }, "viewBox": "0 0 24 24" }, "type": "ia.shapes.svg" }, { "meta": { "name": "AlarmIcons" }, "position": { "height": 20, "width": 20, "x": 45.98, "y": 3 }, "propConfig": { "props.params.AlarmSeverity": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "type": "property" } } }, "props": { "path": "Library/Alarms/Icons" }, "type": "ia.display.view" } ], "meta": { "name": "root" }, "position": { "x": 0, "y": 0 }, "props": { "style": { "overflow": "visible" } }, "type": "ia.container.coord" } }