341 lines
12 KiB
Plaintext
341 lines
12 KiB
Plaintext
{
|
|
"custom": {
|
|
"Color": 6
|
|
},
|
|
"params": {
|
|
"ASdata": "value",
|
|
"Browser": "Amazon",
|
|
"DeviceType": "value",
|
|
"FolderPath": "Conveyor/",
|
|
"Vendor": "AS",
|
|
"Vis_border": true,
|
|
"tagPath": "Conv_PS1_4"
|
|
},
|
|
"propConfig": {
|
|
"params.ASdata": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Browser": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.Color": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"Browser": "{view.params.Browser}",
|
|
"FolderPath": "{view.params.FolderPath}",
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "[{Browser}]{FolderPath}{tagPath}/HMI/Color"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"paramDirection": "inout"
|
|
},
|
|
"params.DeviceType": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.FolderPath": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.Vendor": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.Vis_border": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 50,
|
|
"width": 50
|
|
}
|
|
},
|
|
"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": "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,
|
|
"markdown": {
|
|
"escapeHtml": true,
|
|
"skipHtml": false,
|
|
"sourcePos": false
|
|
},
|
|
"style": {
|
|
"backgroundColor": "#2B2B2BBF",
|
|
"color": "#FFFFFF",
|
|
"fontSize": 12,
|
|
"textAlign": "left",
|
|
"white-space": "pre"
|
|
}
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "replace({view.params.tagPath}, \"_\", \"-\") +\r\n\"\\nStatus: \" + \r\ncase (tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color\"),\r\n0 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Quality.DisplayPath\"),\r\n1 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_EStop.DisplayPath\"),\r\n2 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_UnitFaulted.DisplayPath\"), \r\n3 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Gridlocked.DisplayPath\"),\r\n4 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Jam.DisplayPath\"), \r\n5 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_AntiGridlockMode.DisplayPath\"), \r\n6 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Full100.DisplayPath\"), \r\n7 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Full75.DisplayPath\"),\r\n8 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Full50.DisplayPath\"),\r\n9 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Full25.DisplayPath\"), \r\n10 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Running.DisplayPath\"),\r\n11 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_AEM.DisplayPath\"), \r\n12 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Enabled.DisplayPath\"), \r\n13 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Stopped.DisplayPath\"), \r\n14 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Manual.DisplayPath\"),\r\n15 ,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_PBstopped.DisplayPath\"), \r\n100,tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Color/Alarms/Stat_Gravity.DisplayPath\"),\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"
|
|
}
|
|
} |