235 lines
5.4 KiB
Plaintext
235 lines
5.4 KiB
Plaintext
{
|
|
"custom": {
|
|
"string": "OK"
|
|
},
|
|
"params": {
|
|
"tagProps": [
|
|
"value"
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"custom.state": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 1,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": 0,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 1,
|
|
"output": 1
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": 2
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": 3
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": 4
|
|
},
|
|
{
|
|
"input": 5,
|
|
"output": 5
|
|
},
|
|
{
|
|
"input": 6,
|
|
"output": 6
|
|
},
|
|
{
|
|
"input": 7,
|
|
"output": 7
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"custom.string": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.state"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "Unknown",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "OK"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "Fault"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 20,
|
|
"width": 20
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "EncoderIcon"
|
|
},
|
|
"position": {
|
|
"height": 1,
|
|
"width": 1
|
|
},
|
|
"propConfig": {
|
|
"props.elements[0].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.state"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "#47FF47",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 1,
|
|
"output": "#FF0000"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"cx": 12,
|
|
"cy": "12",
|
|
"fill": {},
|
|
"name": "statusCircle",
|
|
"rx": "10",
|
|
"ry": "10",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": "2"
|
|
},
|
|
"type": "ellipse"
|
|
},
|
|
{
|
|
"d": "M 4.6516854,13.685393 H 9.8292135",
|
|
"fill": {},
|
|
"name": "segLeft",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": 1
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M 9.6000004,13.469662 V 8.2112357",
|
|
"fill": {},
|
|
"name": "segUpLeft",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": 1
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M 19.829214,13.685393 H 14.651685",
|
|
"fill": {},
|
|
"name": "segRight",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": 1
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M 14.880899,13.469662 V 8.211236",
|
|
"fill": {},
|
|
"name": "segUpRight",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": 1
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "m 9.8154019,8.4404597 4.8815551,0.013462",
|
|
"fill": {},
|
|
"name": "segTop",
|
|
"stroke": {
|
|
"paint": "#000000",
|
|
"width": 1
|
|
},
|
|
"type": "path"
|
|
}
|
|
],
|
|
"viewBox": "0 0 24 24"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Encoder",
|
|
"tooltip": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}\n"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "session.custom.alarm_filter.show_encoders"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"mode": "percent"
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |