{ "custom": { "AlarmSeverity": null, "Running": null, "Status": 0, "alarm": null, "mode": null, "tag": null }, "params": { "objectName": "VSD", "tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/SATB1_MPR1140_VFD07" }, "propConfig": { "custom.AlarmSeverity": { "binding": { "config": { "path": "view.params.tagPath" }, "transforms": [ { "code": "\treturn alarm.summary.calcMaxPriority(value)", "type": "script" } ], "type": "property" }, "persistent": true }, "custom.Running": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Status Running" }, "type": "tag" }, "persistent": true }, "custom.Status": { "binding": { "config": { "struct": { "alarm": "{view.custom.AlarmSeverity}", "mode": "{view.custom.mode}", "running": "{view.custom.Running}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\u0027alarm\u0027]\u003e0:\n\t\treturn 2\n\telif value[\u0027mode\u0027] \u003d\u003d False:\n\t\treturn 3\n\telse:\n\t\tif value[\u0027running\u0027]:\n\t\t\treturn 1\n\t\telse:\n\t\t\treturn 0", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "custom.alarm": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "expression": "if({value}\u003e0, True, False)", "type": "expression" } ], "type": "property" }, "persistent": true }, "custom.mode": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Control/ModeCMD" }, "type": "tag" }, "persistent": true }, "custom.tag": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Parameters.DeviceLabel" }, "type": "tag" }, "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 50, "width": 65 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "basis": "30px" }, "propConfig": { "props.style.backgroundColor": { "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)" }, { "input": 3, "output": "#9C6427" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.text": { "binding": { "config": { "path": "view.custom.tag" }, "type": "property" } }, "props.textStyle.color": { "binding": { "config": { "path": "view.custom.Status" }, "transforms": [ { "fallback": "Red", "inputType": "scalar", "mappings": [ { "input": 0, "output": "Black" }, { "input": 1, "output": "Black" }, { "input": 2, "output": "White" }, { "input": 3, "output": "White" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "alignVertical": "top", "style": { "borderTopLeftRadius": 5, "borderTopRightRadius": 5, "overflow": "visible", "padding": "2px" }, "textStyle": { "fontSize": 12, "textAlign": "start" } }, "type": "ia.display.label" }, { "meta": { "name": "Label_0" }, "position": { "basis": "30px" }, "propConfig": { "props.style.backgroundColor": { "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)" }, { "input": 3, "output": "#9C6427" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Speed Feedback Percent" }, "transforms": [ { "formatType": "numeric", "formatValue": "##.##", "type": "format" }, { "expression": "{value} + \" %\"", "type": "expression" } ], "type": "tag" }, "persistent": true }, "props.textStyle.color": { "binding": { "config": { "path": "view.custom.Status" }, "transforms": [ { "fallback": "Red", "inputType": "scalar", "mappings": [ { "input": 0, "output": "Black" }, { "input": 1, "output": "Black" }, { "input": 2, "output": "White" }, { "input": 3, "output": "White" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "style": { "borderBottomLeftRadius": 5, "borderBottomRightRadius": 5, "overflow": "visible", "padding": "2px" }, "text": " %", "textStyle": { "fontSize": 12, "textAlign": "end" } }, "type": "ia.display.label" } ], "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": "root" }, "props": { "direction": "column", "justify": "center", "style": { "borderBottomLeftRadius": 5, "borderBottomRightRadius": 5, "borderTopLeftRadius": 5, "borderTopRightRadius": 5, "boxShadow": "var(--boxShadow2)", "classes": "containers/HoverOver", "marginLeft": 2, "overflow": "visible" } }, "type": "ia.container.flex" } }