BNA8/.resources/bfe3a012f2a58c093f25d7b5e4f99ac0aa4be37034ec1951cc19de8e19c44afe

549 lines
14 KiB
Plaintext

{
"custom": {},
"params": {
"meta": {
"name": "MCP"
},
"props": {
"config": {
"enableHighlight": true,
"isClickable": false
},
"status": {
"color": "#aaa",
"showAlways": true,
"tagPath": "",
"tooltip": ""
}
}
},
"propConfig": {
"params.meta": {
"paramDirection": "input",
"persistent": true
},
"params.meta.name": {
"paramDirection": "input",
"persistent": true
},
"params.props": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 180,
"width": 500
}
},
"root": {
"children": [
{
"meta": {
"name": "MCP"
},
"position": {
"height": 40,
"width": 100,
"x": 50,
"y": 15
},
"propConfig": {
"meta.name": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Label"
},
"transforms": [
{
"expression": "coalesce({value}, \u0027MCP\u0027)",
"type": "expression"
}
],
"type": "tag"
},
"persistent": true
},
"props.status": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Graphics"
},
"transforms": [
{
"expression": "try(\r\n\tjsonSet({value}, \"showAlways\", true),\r\n\t{view.params.props.status}\r\n)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"config": {
"enableHighlight": false,
"isClickable": false
}
},
"type": "dex.display.mcp"
},
{
"meta": {
"name": "lbStatus"
},
"position": {
"height": 25,
"width": "calc(100% - 300px)",
"x": 280,
"y": 40
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Graphics"
},
"transforms": [
{
"code": "\treturn utils.extractStatus(value)",
"type": "script"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"fontSize": "14px",
"fontWeight": "bold",
"overflow": "hidden",
"textAlign": "center",
"textOverview": "ellipsis",
"whiteSpace": "nowrap"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "lbName"
},
"position": {
"height": 25,
"width": "calc(100% - 300px)",
"x": 280,
"y": 5
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Parameters.LabelFull"
},
"transforms": [
{
"expression": "coalesce({value}, \u0027\u0027)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"fontSize": "14px",
"fontWeight": "bold",
"overflow": "hidden",
"textAlign": "center",
"textOverview": "ellipsis",
"whiteSpace": "nowrap"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_1"
},
"position": {
"height": 25,
"width": 75,
"x": 195,
"y": 5
},
"props": {
"style": {
"fontSize": "20px",
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Name: "
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_11"
},
"position": {
"height": 25,
"width": 75,
"x": 195,
"y": 40
},
"props": {
"style": {
"fontSize": "20px",
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Status:"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_12"
},
"position": {
"height": 25,
"width": 75,
"x": 195,
"y": 75
},
"props": {
"style": {
"fontSize": "20px",
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Panel:"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "lbStatus_0"
},
"position": {
"height": 25,
"width": "calc(100% - 300px)",
"x": 280,
"y": 75
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Parameters.OPC_Server"
},
"transforms": [
{
"expression": "coalesce({value}, \"Unknown\")",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"fontSize": "14px",
"fontWeight": "bold",
"overflow": "hidden",
"textAlign": "center",
"textOverview": "ellipsis",
"whiteSpace": "nowrap"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "CPU_Switch"
},
"position": {
"height": 40,
"rotate": {
"angle": "135deg"
},
"width": 40,
"x": 80,
"y": 100
},
"propConfig": {
"position.rotate.angle": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/aoCPU.jsonValues"
},
"overlayOptOut": true,
"transforms": [
{
"code": "\ttry:\n\t\tif value.Key_Run:\n\t\t\treturn \"0deg\"\n\t\telif value.Key_Rem:\n\t\t\treturn \"45deg\"\n\t\telif value.Key_Pgm:\n\t\t\treturn \"90deg\"\n\t\telse:\n\t\t\treturn \"135deg\"\n\texcept:\n\t\treturn \"135deg\"",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"props.elements[0].d": {
"binding": {
"config": {
"expression": "if({this.position.rotate.angle}\u003d\"135deg\",\r\n\t\"M40,40L0,0\",\r\n\t\"M40,40L0,0H20M0,0V20\"\r\n)"
},
"overlayOptOut": true,
"type": "expr"
},
"persistent": true
}
},
"props": {
"elements": [
{
"d": "M40,40L0,0",
"fill": {
"paint": "none"
},
"stroke": {
"linecap": "square",
"paint": "#000",
"width": 5
},
"type": "path"
}
],
"viewBox": "0 0 41 41"
},
"type": "ia.shapes.svg"
},
{
"meta": {
"name": "Label"
},
"position": {
"height": 20,
"width": 40,
"x": 40,
"y": 70
},
"propConfig": {
"props.style.borderWidth": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/aoCPU/Key_Run"
},
"overlayOptOut": true,
"transforms": [
{
"expression": "forceQuality({value}, 192)",
"type": "expression"
},
{
"fallback": 0,
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": 2
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"borderWidth": 0,
"fontSize": 11,
"fontWeight": "bold",
"textAlign": "center",
"user-select": "none"
},
"text": "RUN"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_0"
},
"position": {
"height": 20,
"width": 40,
"x": 80,
"y": 70
},
"propConfig": {
"props.style.borderWidth": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/aoCPU/Key_Rem"
},
"overlayOptOut": true,
"transforms": [
{
"expression": "forceQuality({value}, 192)",
"type": "expression"
},
{
"fallback": 0,
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": 2
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"borderWidth": 0,
"fontSize": 11,
"fontWeight": "bold",
"textAlign": "center",
"user-select": "none"
},
"text": "REM"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_2"
},
"position": {
"height": 20,
"width": 40,
"x": 120,
"y": 70
},
"propConfig": {
"props.style.borderWidth": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/aoCPU/Key_Pgm"
},
"overlayOptOut": true,
"transforms": [
{
"expression": "forceQuality({value}, 192)",
"type": "expression"
},
{
"fallback": 0,
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": 2
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
},
"persistent": true
}
},
"props": {
"style": {
"borderColor": "#000",
"borderStyle": "solid",
"borderWidth": 0,
"fontSize": 11,
"fontWeight": "bold",
"textAlign": "center",
"user-select": "none"
},
"text": "PGM"
},
"type": "ia.display.label"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"background-color": "#CFCFCF"
}
},
"type": "ia.container.coord"
}
}