BNA8/.resources/d7ecf241ac52e80bf44ce57bde71d2f5da18ab409538b963f617fb12dc692079

245 lines
10 KiB
Plaintext

{
"custom": {
"ColorMoreState": 10,
"TooltipMoreState": "Running"
},
"params": {
"ASdata": "CP",
"Browser": "Amazon",
"Color": 1,
"DeviceType": "CP",
"FolderPath": "Siemens/INTL_CPLA_STS/",
"Vendor": "Siemens",
"Visibility": false,
"tagPath": "INTL_CPLA_STS_0"
},
"propConfig": {
"custom.ColorMoreState": {
"binding": {
"config": {
"expression": "if (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),21), 0,\r\n\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),12) ||\r\n\t\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),30) ||\r\n\t\t!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),2) ||\r\n\t\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_10/INTL_CPLA_STS\"),17), 1,\r\n\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_10/INTL_CPLA_STS\"),25), 4,\r\n\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),3), 10,\r\n\t\t\t\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),4), 11,\r\n\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),10) \u0026\u0026 !getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),3), 12,\r\n\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),5), 13,\r\n\t\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),7), 14,\r\n\t\t\t\t\t\t\t\t101)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t)\r\n\t)"
},
"type": "expr"
},
"persistent": true
},
"custom.TooltipMoreState": {
"binding": {
"config": {
"expression": "if (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),21), \"Bad Quality\",\r\n\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),12) ||\r\n\t\t\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),30) ||\r\n\t\t\t!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),2) ||\r\n\t\t\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_10/INTL_CPLA_STS\"),17), \"Faulted\",\r\n\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_10/INTL_CPLA_STS\"),25), \"Jammed\",\r\n\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),3), \"Running\",\r\n\t\t\t\t\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),4), \"Energy Management\",\r\n\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),10) \u0026\u0026 !getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),3), \"Enabled, not Running\",\r\n\t\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),5), \"Off\",\r\n\t\t\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),7), \"Maintenance Mode\",\r\n\t\t\t\t\t\t\t\t\t101)\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t)\r\n\t)"
},
"type": "expr"
},
"persistent": true
},
"params.ASdata": {
"paramDirection": "output",
"persistent": true
},
"params.Browser": {
"paramDirection": "output",
"persistent": true
},
"params.Color": {
"binding": {
"config": {
"expression": "getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),2)"
},
"type": "expr"
},
"paramDirection": "output",
"persistent": true
},
"params.DeviceType": {
"paramDirection": "output",
"persistent": true
},
"params.FolderPath": {
"paramDirection": "output",
"persistent": true
},
"params.Vendor": {
"paramDirection": "output",
"persistent": true
},
"params.Visibility": {
"paramDirection": "output",
"persistent": true
},
"params.tagPath": {
"paramDirection": "inout",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 30,
"width": 60
}
},
"root": {
"children": [
{
"meta": {
"name": "Control cabinet"
},
"position": {
"basis": "100%"
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "{session.custom.show.MCPs} || {view.params.Visibility}"
},
"type": "expr"
}
},
"props.elements[0].elements[1].fill.paint": {
"binding": {
"config": {
"path": "view.params.Color"
},
"transforms": [
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#FF0000"
},
{
"input": 1,
"output": "#00D900"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.style.classes": {
"binding": {
"config": {
"expression": "if ({view.params.tagPath} \u003d {session.custom.Search},\r\n\"table/SearchTaghighlight\", \"table/highlight\")"
},
"type": "expr"
}
}
},
"props": {
"elements": [
{
"elements": [
{
"elements": [
{
"name": "polygon",
"points": "2.04 0.5 124.5 0.5 124.5 64.18 2.04 0.5",
"type": "polygon"
},
{
"d": "M124,1V63.35L4.09,1H124m1-1H0L125,65V0Z",
"name": "path",
"type": "path"
}
],
"fill": {
"paint": "#000000"
},
"name": "group",
"type": "group"
},
{
"elements": [
{
"name": "polygon",
"points": "0.5 64.5 0.5 0.82 122.95 64.5 0.5 64.5",
"type": "polygon"
},
{
"d": "M1,1.65,120.91,64H1V1.65M0,0V65H125L0,0Z",
"name": "path",
"type": "path"
}
],
"fill": {},
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"preserveAspectRatio": "none",
"style": {},
"viewBox": "0 0 125 65"
},
"type": "ia.shapes.svg"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"draggable": false,
"id": "information",
"modal": false,
"overlayDismiss": false,
"resizable": false,
"showCloseIcon": false,
"type": "open",
"viewParams": {
"ASdata": "{view.params.ASdata}",
"Browser": "{view.params.Browser}",
"DeviceType": "{view.params.DeviceType}",
"FolderPath": "{view.params.FolderPath}",
"Vendor": "{view.params.Vendor}",
"tagPath": "{view.params.tagPath}"
},
"viewPath": "Windows/Information/Information",
"viewportBound": false
},
"scope": "C",
"type": "popup"
}
}
},
"meta": {
"name": "root",
"tooltip": {
"enabled": true,
"style": {
"backgroundColor": "#2B2B2BBF",
"color": "#FFFFFF",
"fontSize": 12,
"textAlign": "left",
"white-space": "pre"
}
}
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "\"CP11 Singulator\"+//replace({view.params.tagPath}, \"_\", \"-\")+\r\n\"\\nStatus: \"+ \r\nif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),12) ||\r\n\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),30) ||\r\n\t!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),2) ||\r\n\tgetBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_10/INTL_CPLA_STS\"),17), \"Faulted\",\r\n\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+\"INTL_CPLA_STS_0/INTL_CPLA_STS\"),3), \"OK\",\r\n\t\t\t\"not response\")\r\n)"
},
"type": "expr"
}
}
},
"props": {
"direction": "column",
"justify": "center",
"style": {
"cursor": "pointer",
"transform": "translate3d(0,0,0)"
}
},
"type": "ia.container.flex"
}
}