431 lines
11 KiB
Plaintext
431 lines
11 KiB
Plaintext
{
|
|
"custom": {
|
|
"AlarmSeverity": 0,
|
|
"Faulted": false,
|
|
"Running": 1,
|
|
"Status": 1
|
|
},
|
|
"params": {
|
|
"TagPosition": true,
|
|
"objectName": "HUM",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]GAL1262/SATB1_GAL1262_HUM_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.Faulted": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}"
|
|
},
|
|
"enabled": false,
|
|
"transforms": [
|
|
{
|
|
"expression": "{value}[\u0027Alarms\u0027][\u0027Alarm Critical\u0027] ||\r\n{value}[\u0027Alarms\u0027][\u0027Danger\u0027] ||\r\n{value}[\u0027Alarms\u0027][\u0027Low\u0027] ||\r\n{value}[\u0027Alarms\u0027][\u0027Warning\u0027]",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.Running": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Unit Status"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.Status": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"fault": "{view.custom.Faulted}",
|
|
"run": "{view.custom.Running}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\toutput \u003d 0\n\tif value[\"fault\"]:\n\t\toutput \u003d 2\n\telse:\n\t\tif value[\"run\"]:\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
|
|
},
|
|
"params.TagPosition": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.objectName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 70,
|
|
"width": 120
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"height": 74,
|
|
"width": 110,
|
|
"x": 10
|
|
},
|
|
"propConfig": {
|
|
"props.alignVertical": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.TagPosition"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "top",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": false,
|
|
"output": "bottom"
|
|
},
|
|
{
|
|
"input": true,
|
|
"output": "top"
|
|
}
|
|
],
|
|
"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": {
|
|
"text": "HUM 01",
|
|
"textStyle": {
|
|
"color": "var(--olGray)",
|
|
"fontFamily": "inherit",
|
|
"fontSize": 12,
|
|
"paddingLeft": 8,
|
|
"textAlign": "start"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Container"
|
|
},
|
|
"position": {
|
|
"height": 41,
|
|
"width": 92,
|
|
"x": 10,
|
|
"y": 17
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Var01"
|
|
},
|
|
"position": {
|
|
"height": 23,
|
|
"width": 44,
|
|
"x": 17,
|
|
"y": 25
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Config/Relative Humidity Setpoint"
|
|
},
|
|
"enabled": false,
|
|
"transforms": [
|
|
{
|
|
"formatType": "numeric",
|
|
"formatValue": "#.##",
|
|
"type": "format"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"text": 20.4,
|
|
"textStyle": {
|
|
"color": "var(--tagvalue-color)",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "EU 01"
|
|
},
|
|
"position": {
|
|
"height": 23,
|
|
"width": 33,
|
|
"x": 68,
|
|
"y": 25
|
|
},
|
|
"props": {
|
|
"text": "%",
|
|
"textStyle": {
|
|
"fontSize": 12
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Box"
|
|
},
|
|
"position": {
|
|
"height": 50,
|
|
"width": 102,
|
|
"x": 5,
|
|
"y": 9.5
|
|
},
|
|
"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",
|
|
"outlineWidth": 3
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "AlarmIcons"
|
|
},
|
|
"position": {
|
|
"height": 21,
|
|
"width": 21,
|
|
"x": 97.99,
|
|
"y": -1.01
|
|
},
|
|
"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": {
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |