346 lines
11 KiB
Plaintext
346 lines
11 KiB
Plaintext
{
|
|
"custom": {
|
|
"Color": 6
|
|
},
|
|
"params": {
|
|
"ASdata": "Conv",
|
|
"Browser": "Amazon",
|
|
"DeviceType": "Conv",
|
|
"FolderPath": "Siemens/INTL_CPLA_STS/",
|
|
"TName": "value",
|
|
"Vendor": "Siemens",
|
|
"Vis_border": true,
|
|
"tagPath": "INTL_CPLA_STS_58"
|
|
},
|
|
"propConfig": {
|
|
"params.ASdata": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.Browser": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.Color": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"Browser": "{view.params.Browser}",
|
|
"FolderPath": "{view.params.FolderPath}",
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "[{Browser}]{FolderPath}{tagPath}/INTL_CPLA_STS"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "if (!getBit({value},3), 2,\r\n\tif (!getBit({value},4), 4,\r\n\t\tif (getBit({value},2), 12,\r\n\t\t\tif (!getBit({value},1), 13,\r\n\t\t\t\tif (getBit({value},1), 10,\r\n\t\t\t\t\tif (getBit({value},0), 14,\r\n100\r\n))))))",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"paramDirection": "output"
|
|
},
|
|
"params.DeviceType": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.FolderPath": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.TName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Vendor": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.Vis_border": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 75,
|
|
"width": 200
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"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": "Conveyor horizontal_0"
|
|
},
|
|
"position": {
|
|
"basis": "100%"
|
|
},
|
|
"propConfig": {
|
|
"props.elements[0].elements[0].elements[0].style.visibility": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.Vis_border"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "visible"
|
|
},
|
|
{
|
|
"input": false,
|
|
"output": "hidden"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[0].elements[1].style.visibility": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.Vis_border"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "visible"
|
|
},
|
|
{
|
|
"input": false,
|
|
"output": "hidden"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.elements[0].elements[1].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "#000000",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "#808080"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "#FF0000"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "#FF0000"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "#FF0000"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#FF8C00"
|
|
},
|
|
{
|
|
"input": 5,
|
|
"output": "#D900D9"
|
|
},
|
|
{
|
|
"input": 6,
|
|
"output": "#0000FF"
|
|
},
|
|
{
|
|
"input": 7,
|
|
"output": "#FFFF00"
|
|
},
|
|
{
|
|
"input": 8,
|
|
"output": "#FFFF00"
|
|
},
|
|
{
|
|
"input": 9,
|
|
"output": "#FFFF00"
|
|
},
|
|
{
|
|
"input": 10,
|
|
"output": "#00D900"
|
|
},
|
|
{
|
|
"input": 11,
|
|
"output": "#87CEFA"
|
|
},
|
|
{
|
|
"input": 12,
|
|
"output": "#CCFFCC"
|
|
},
|
|
{
|
|
"input": 13,
|
|
"output": "#D3D3D3"
|
|
},
|
|
{
|
|
"input": 14,
|
|
"output": "#AC5F00"
|
|
},
|
|
{
|
|
"input": 100,
|
|
"output": "#FFFFFF"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.style.classes": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({view.params.tagPath} \u003d {session.custom.Search},\r\n\"table/SearchTaghighlight\", \"\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"fill": {
|
|
"paint": "#DCDCDC"
|
|
},
|
|
"height": "47",
|
|
"name": "rect",
|
|
"style": {},
|
|
"type": "rect",
|
|
"width": "107",
|
|
"x": "0.5",
|
|
"y": "0.5"
|
|
},
|
|
{
|
|
"d": "M107,1V47H1V1H107m1-1H0V48H108V0Z",
|
|
"fill": {
|
|
"paint": "#808080"
|
|
},
|
|
"name": "path",
|
|
"style": {},
|
|
"type": "path"
|
|
}
|
|
],
|
|
"name": "group",
|
|
"type": "group"
|
|
},
|
|
{
|
|
"fill": {},
|
|
"height": "108",
|
|
"name": "rect",
|
|
"transform": "translate(78 -30) rotate(90)",
|
|
"type": "rect",
|
|
"width": "40",
|
|
"x": "34",
|
|
"y": "-30"
|
|
}
|
|
],
|
|
"name": "group",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"preserveAspectRatio": "none",
|
|
"style": {
|
|
"cursor": "pointer"
|
|
},
|
|
"viewBox": "0 0 108 48"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
}
|
|
],
|
|
"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": "replace({view.params.TName}, \"_\", \"-\")+//replace({view.params.tagPath}, \"_\", \"-\")+\r\n\"\\nStatus: \"+ \r\nif ({view.params.DeviceType} \u003d \"Conv\",\r\n\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),5), \"Invalid, Unavailable, Bad Quality\",\r\n\t\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),3), \"Unit Faulted\",\r\n\t\t\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),4), \"Jammed\",\r\n\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),2), \"Enabled, not running\",\r\n\t\t\t\t\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),1), \"OFF / Inactive\",\r\n\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),1), \"Running or ON\",\r\n\t\t\t\t\t\t\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),0), \"Manual/Maintenance Mode\",\r\n\t\"Gravity / not motorized MHE\"\r\n\t))))))),\r\nif ({view.params.DeviceType} \u003d \"PE\",\r\n\tif (!getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),4), \"Jammed\",\r\n\t\t\"Running or ON\"),\r\nif ({view.params.DeviceType} \u003d \"VFD\",\r\n\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),19), \"Fault\", \r\n\t\t\"OK\"),\r\nif ({view.params.DeviceType} \u003d \"EStopPB\",\r\n\tif (getBit(tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/INTL_CPLA_STS\"),12), \"Idle\", \r\n\t\t\"E-Stop Actuated\"),\r\n\"not response\"))))"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"alignContent": "center",
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"overflow": "visible",
|
|
"transform": "translate3d(0,0,0)"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |