290 lines
6.7 KiB
Plaintext
290 lines
6.7 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"meta": {
|
|
"name": "EPC1"
|
|
},
|
|
"props": {
|
|
"config": {
|
|
"enableHighlight": true,
|
|
"isClickable": false
|
|
},
|
|
"status": {
|
|
"color": {
|
|
"base": "#FFF",
|
|
"button": "#0F0"
|
|
},
|
|
"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": 105,
|
|
"width": 500
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "EPC"
|
|
},
|
|
"position": {
|
|
"height": 48,
|
|
"width": 48,
|
|
"x": 76,
|
|
"y": 11
|
|
},
|
|
"propConfig": {
|
|
"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.pushbutton"
|
|
},
|
|
{
|
|
"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": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"background-color": "#CFCFCF"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |