323 lines
8.6 KiB
Plaintext
323 lines
8.6 KiB
Plaintext
{
|
|
"custom": {
|
|
"Running": 1,
|
|
"Status": 1,
|
|
"alarm": 0,
|
|
"tag": "RTU"
|
|
},
|
|
"params": {
|
|
"objectName": "RTU",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_RTU01"
|
|
},
|
|
"propConfig": {
|
|
"custom.Running": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Control Status"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.Status": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({view.custom.alarm}, 2, if({view.custom.Running},1,0))"
|
|
},
|
|
"type": "expr"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.alarm": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Alarms/General Alarm"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.tag": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Parameters.DeviceLabel"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.objectName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 50,
|
|
"width": 90
|
|
}
|
|
},
|
|
"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)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Meta/EqName"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"alignVertical": "top",
|
|
"style": {
|
|
"borderTopLeftRadius": 5,
|
|
"borderTopRightRadius": 5,
|
|
"overflow": "visible",
|
|
"padding": "2px"
|
|
},
|
|
"text": "RTU",
|
|
"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": null,
|
|
"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.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Supply Air Temperature"
|
|
},
|
|
"enabled": false,
|
|
"transforms": [
|
|
{
|
|
"formatType": "numeric",
|
|
"formatValue": "##.##",
|
|
"type": "format"
|
|
},
|
|
{
|
|
"expression": "{value} + \" degF\"",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"borderBottomLeftRadius": 5,
|
|
"borderBottomRightRadius": 5,
|
|
"overflow": "visible",
|
|
"padding": "2px"
|
|
},
|
|
"text": "58.3 degF",
|
|
"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"
|
|
}
|
|
} |