291 lines
9.8 KiB
Plaintext
291 lines
9.8 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"ASdata": "VFD",
|
|
"Browser": "Amazon",
|
|
"Color": 10,
|
|
"DeviceType": "VFD",
|
|
"FolderPath": "Siemens/INTL_CPLA_STS/",
|
|
"TName": "value",
|
|
"Vendor": "Siemens",
|
|
"Visibility": true,
|
|
"tagPath": "INTL_CPLA_STS_50"
|
|
},
|
|
"propConfig": {
|
|
"params.ASdata": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Browser": {
|
|
"paramDirection": "inout",
|
|
"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},19), 2, 10)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.DeviceType": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.FolderPath": {
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.TName": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Vendor": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Visibility": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{session.custom.show.VFDs} || {view.params.Color} \u003d 2"
|
|
},
|
|
"type": "expr"
|
|
},
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 25,
|
|
"width": 25
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "VFD"
|
|
},
|
|
"position": {
|
|
"basis": "100%"
|
|
},
|
|
"propConfig": {
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.Visibility"
|
|
},
|
|
"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"
|
|
},
|
|
{
|
|
"expression": "if({view.params.Color} \u003d 1, // TODO: Bind fire alarm tags here\r\n if(getSecond(now()) % 2 \u003d 1,\r\n \u0027#FF0000\u0027,\r\n \u0027#00D900\u0027\r\n ),\r\nif({view.params.Color} \u003d 2, // TODO: Bind fire alarm tags here\r\n if(getSecond(now()) % 2 \u003d 1,\r\n \u0027#FF0000\u0027,\r\n \u0027#808080\u0027\r\n ),\r\n\t{value}\r\n))",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"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.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "\"rotate(\" + {session.custom.RotateText} + \"deg)\""
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "M15.14,15.14a50,50,0,0,0,0,70.72L85.86,15.14A50,50,0,0,0,15.14,15.14Z",
|
|
"name": "path",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"d": "M85.86,85.86a50,50,0,0,0,0-70.72L15.14,85.86A50,50,0,0,0,85.86,85.86Z",
|
|
"fill": {},
|
|
"name": "path",
|
|
"type": "path"
|
|
}
|
|
],
|
|
"name": "group",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"preserveAspectRatio": "none",
|
|
"style": {},
|
|
"viewBox": "0 0 101 101"
|
|
},
|
|
"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": "replace({view.params.TName}, \"_\", \"-\")+//replace({view.params.tagPath}, \"_\", \"-\")+\r\n\"\\n Status: \"+ \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": {
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"cursor": "pointer",
|
|
"transform": "translate3d(0,0,0)"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |