BNA8/.resources/5f6f22e85484569589a1f88ab06cd254bffb0952f396d00884f5c4108a62f8d6

267 lines
6.2 KiB
Plaintext

{
"custom": {
"color": "d3d3d3",
"state": 10,
"string": "Off (Inactive)"
},
"params": {
"tagProps": [
"System/MCM01/Conveyors/Ul15_1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"propConfig": {
"custom.color": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": "ffffff",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "808080"
},
{
"input": 2,
"output": "f8060d"
},
{
"input": 3,
"output": "f78e12"
},
{
"input": 4,
"output": "dd00de"
},
{
"input": 5,
"output": "3a00fd"
},
{
"input": 6,
"output": "fbff1f"
},
{
"input": 7,
"output": "39cc38"
},
{
"input": 8,
"output": "8fcef9"
},
{
"input": 9,
"output": "cdffcc"
},
{
"input": 10,
"output": "d3d3d3"
},
{
"input": 11,
"output": "a66008"
},
{
"input": 12,
"output": "ffffff"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.state": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
},
"transforms": [
{
"expression": "coalesce({value},0)",
"type": "expression"
}
],
"type": "tag"
},
"persistent": true
},
"custom.string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": "Non Powered Equipment",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "Communication Fault"
},
{
"input": 2,
"output": "EStop or Faulted"
},
{
"input": 3,
"output": "Jammed"
},
{
"input": 4,
"output": "Anti-Gridlock Prevention Mode"
},
{
"input": 5,
"output": "Full"
},
{
"input": 6,
"output": "50% Full"
},
{
"input": 7,
"output": "Running"
},
{
"input": 8,
"output": "Energy Managment"
},
{
"input": 9,
"output": "Enabled, Not Running"
},
{
"input": 10,
"output": "Off (Inactive)"
},
{
"input": 11,
"output": "Manual / Maintenance Mode"
},
{
"input": 12,
"output": "Non Powered Equipment"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"params.tagProps": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 69,
"width": 49
}
},
"root": {
"children": [
{
"meta": {
"name": "Conveyor45"
},
"position": {
"height": 0.9855,
"width": 0.9796
},
"propConfig": {
"props.elements[1].elements[0].fill.paint": {
"binding": {
"config": {
"expression": "\"#\" + {view.custom.color}"
},
"type": "expr"
}
}
},
"props": {
"elements": [
{
"id": "defs1",
"name": "defs1",
"type": "defs"
},
{
"elements": [
{
"d": "m 0.61872656,19.047242 0.185181,-7.76481 C 2.3211966,6.4490419 5.3844746,3.4831579 9.6680236,0.93748089 L 13.582549,7.8726519 c -2.984985,1.33473 -4.2291194,3.3482401 -4.9990764,6.5174301 l -0.08744,4.67802 z",
"fill": {
"opacity": "1"
},
"id": "path26615",
"name": "path26615",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": 0.15
},
"type": "path"
}
],
"id": "layer1",
"name": "layer1",
"type": "group"
}
],
"viewBox": "0 0 14 19"
},
"type": "ia.shapes.svg"
}
],
"meta": {
"name": "root",
"tooltip": {
"enabled": true
}
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}"
},
"type": "expr"
}
}
},
"props": {
"mode": "percent",
"style": {
"overflow": "hidden"
}
},
"type": "ia.container.coord"
}
}