{ "custom": { "Alarm": false, "AlarmSevery": 0, "ModeSts": 5, "RunStatus": 1, "Status": 1, "Tag": "CH01", "available": 1, "priority": 0 }, "params": { "CH": "01", "LLS_tagPath": "[Ignition_Common_IO_Gtwy]CHWS/Chiller_LLS/Reference Devices", "MTR_tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_CH27_MOTOR", "SYS_tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_CH27_SYSTEM", "objectName": "ChillerSystem" }, "propConfig": { "custom.Alarm": { "binding": { "config": { "path": "view.custom.AlarmSevery" }, "enabled": false, "transforms": [ { "expression": "if({value}\u003e0, True, False)", "type": "expression" } ], "type": "property" }, "persistent": true }, "custom.AlarmSevery": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "SYS_tagPath": "{view.params.SYS_tagPath}" }, "tagPath": "{SYS_tagPath}/AlarmSummary/ActiveAlarms" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn 4\n\treturn alarm.summary.calcMaxPriority(self.params.SYS_tagPath)", "type": "script" } ], "type": "tag" }, "persistent": true }, "custom.ModeSts": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "SYS_tagPath": "{view.params.SYS_tagPath}" }, "tagPath": "{SYS_tagPath}/Control/MODE" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn 5\n\treturn value", "type": "script" } ], "type": "tag" }, "persistent": true }, "custom.RunStatus": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "MTR_tagPath": "{view.params.MTR_tagPath}" }, "tagPath": "{MTR_tagPath}/Status Running" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn 0\n\treturn value", "type": "script" }, { "fallback": 0, "inputType": "scalar", "mappings": [ { "input": false, "output": 0 }, { "input": true, "output": 1 } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.Status": { "binding": { "config": { "struct": { "alarm": "{view.custom.Alarm}", "mode": "{view.custom.ModeSts}", "running": "{view.custom.RunStatus}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\u0027alarm\u0027]:\n\t\treturn 2\n\telif value[\u0027mode\u0027] \u003d\u003d False:\n\t\treturn 3\n\telse:\n\t\treturn value[\u0027running\u0027]", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "custom.Tag": { "binding": { "config": { "expression": "\"CH\" + {view.params.CH}" }, "type": "expr" }, "persistent": true }, "custom.available": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "SYS_tagPath": "{view.params.SYS_tagPath}" }, "tagPath": "{SYS_tagPath}/Chiller System Available" }, "enabled": false, "type": "tag" }, "persistent": true }, "custom.priority": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "LLS_tagPath": "{view.params.LLS_tagPath}", "index": "tostr(toint(right({view.custom.Tag},2))-1)" }, "tagPath": "{LLS_tagPath}[{index}]" }, "enabled": false, "transforms": [ { "code": "\tif value is None:\n\t\treturn 0\n\treturn value", "type": "script" } ], "type": "tag" }, "persistent": true }, "params.CH": { "paramDirection": "input", "persistent": true }, "params.LLS_tagPath": { "paramDirection": "input", "persistent": true }, "params.MTR_tagPath": { "paramDirection": "input", "persistent": true }, "params.SYS_tagPath": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 65, "width": 50 } }, "root": { "children": [ { "children": [ { "meta": { "name": "Label" }, "position": { "height": 65, "width": 50 }, "propConfig": { "props.style.backgroundColor": { "binding": { "config": { "expression": "{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": "expr" } }, "props.text": { "binding": { "config": { "expression": "left({view.custom.Tag},4)\r\n" }, "type": "expr" } }, "props.textStyle.color": { "binding": { "config": { "expression": "{view.custom.Status}" }, "transforms": [ { "fallback": "yellow", "inputType": "scalar", "mappings": [ { "input": 0, "output": "black" }, { "input": 1, "output": "black" }, { "input": 2, "output": "white" }, { "input": 3, "output": "white" } ], "outputType": "scalar", "type": "map" } ], "type": "expr" } } }, "props": { "alignVertical": "top", "style": { "borderBottomLeftRadius": 5, "borderBottomRightRadius": 5, "borderTopLeftRadius": 5, "borderTopRightRadius": 5, "boxShadow": "var(--boxShadow2)", "classes": "containers/HoverOver", "outlineColor": "#000000", "outlineStyle": "none", "outlineWidth": "1", "paddingLeft": 2 }, "textStyle": { "fontSize": 12, "textAlign": "Left" } }, "type": "ia.display.label" }, { "meta": { "name": "Label_0" }, "position": { "height": 28, "width": 42.98, "x": 4.07, "y": 12.72 }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "modeSts": "{view.custom.ModeSts}", "priority": "{view.custom.priority}" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\tif value[\u0027modeSts\u0027] \u003d\u003d 5:\n\t\treturn \"No Comms\"\n \tif value[\u0027modeSts\u0027]\u003d\u003d0:\n \t\ttext\u003d\u0027Manual\u0027\n \telse:\n \t\tif value[\u0027priority\u0027]\u003d\u003d0:\n \t\t\tPriority \u003d \u0027OOS\u0027\n \t\telse:\n \t\t\tPriority \u003d str(value[\u0027priority\u0027])\n \t\ttext\u003d\u0027Auto \u0027+ Priority\n \treturn text\n \t", "type": "script" } ], "type": "expr-struct" } }, "props.textStyle.color": { "binding": { "config": { "expression": "{view.custom.Status}" }, "transforms": [ { "fallback": "yellow", "inputType": "scalar", "mappings": [ { "input": 0, "output": "black" }, { "input": 1, "output": "black" }, { "input": 2, "output": "white" }, { "input": 3, "output": "white" } ], "outputType": "scalar", "type": "map" } ], "type": "expr" } } }, "props": { "text": "Auto 2", "textStyle": { "fontSize": 12, "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "EmbeddedView" }, "position": { "basis": "320px", "height": 20, "width": 20, "x": 4, "y": 42 }, "props": { "path": "Library/Framework/Frwk_Badge_XS", "style": { "overflow": "visible" }, "useDefaultViewHeight": true, "useDefaultViewWidth": true }, "type": "ia.display.view" }, { "meta": { "name": "EmbeddedView_0" }, "position": { "height": 20, "width": 20, "x": 26, "y": 42 }, "props": { "params": { "Mode": 1, "Options": [ "R", "L" ] }, "path": "Library/Framework/Frwk_Badge_XS", "style": { "overflow": "visible" }, "useDefaultViewHeight": true, "useDefaultViewWidth": true }, "type": "ia.display.view" } ], "meta": { "name": "CoordinateContainer" }, "position": { "grow": 1 }, "props": { "style": { "boxShawdow": "var(--boxShadow2)", "overflow": "visible" } }, "type": "ia.container.coord" } ], "events": { "dom": { "onClick": { "config": { "script": "\ttagPath \u003d self.view.params.SYS_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": "var(--borderRadiusInput)", "borderBottomRightRadius": "var(--borderRadiusInput)", "borderTopLeftRadius": "var(--borderRadiusInput)", "borderTopRightRadius": "var(--borderRadiusInput)", "classes": "containers/HoverOver", "overflow": "visible" } }, "type": "ia.container.flex" } }