286 lines
7.3 KiB
Plaintext
286 lines
7.3 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"meta": {
|
|
"name": "S1-CH1"
|
|
},
|
|
"props": {
|
|
"config": {
|
|
"alwaysShowAll": true,
|
|
"isClickable": false,
|
|
"mirror": false
|
|
},
|
|
"status": {
|
|
"tagPath": "[default]MCP04/PS03/PS03_36CH"
|
|
}
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"params.meta": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.meta.name": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.props": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.props.config.alwaysShowAll": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.props.config.mirror": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 349,
|
|
"width": 500
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttagPath \u003d self.view.params.props.status.tagPath\n\ttags \u003d [tagPath + \"/Conv/SetEnable\"]\n\tvalues \u003d [1]\n\tsystem.tag.writeAsync(tags, values)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Enable"
|
|
},
|
|
"position": {
|
|
"height": 40,
|
|
"width": 120,
|
|
"x": 120,
|
|
"y": 20.3
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/SetEnable"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "isGood({value})",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.classes": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/SetEnable"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "Buttons/Grey",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "Buttons/Green"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
},
|
|
{
|
|
"expression": "if(isGood({value}),\r\n\t{value},\r\n\t\"Buttons/Grey\"\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {},
|
|
"text": "Enable"
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttagPath \u003d self.view.params.props.status.tagPath\n\ttags \u003d [tagPath + \"/Conv/SetEnable\"]\n\tvalues \u003d [0]\n\tsystem.tag.writeAsync(tags, values)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Disable"
|
|
},
|
|
"position": {
|
|
"height": 40,
|
|
"width": 120,
|
|
"x": 260,
|
|
"y": 20.3
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/SetEnable"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "isGood({value})",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.classes": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/SetEnable"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "Buttons/Grey",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": false,
|
|
"output": "Buttons/Red"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
},
|
|
{
|
|
"expression": "if(isGood({value}),\r\n\t{value},\r\n\t\"Buttons/Grey\"\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {},
|
|
"text": "Disable"
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "SpiralChute"
|
|
},
|
|
"position": {
|
|
"height": 115,
|
|
"width": 90,
|
|
"x": 205,
|
|
"y": 165
|
|
},
|
|
"propConfig": {
|
|
"props.params": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"alwaysShowAll": true,
|
|
"isClickable": false,
|
|
"mirror": "{view.params.props.config.mirror}",
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"type": "expr-struct"
|
|
},
|
|
"persistent": false
|
|
}
|
|
},
|
|
"props": {
|
|
"path": "Templates/Areas/DivChute",
|
|
"style": {
|
|
"transform": "scale(2)"
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "ChuteLabel"
|
|
},
|
|
"position": {
|
|
"height": 35,
|
|
"width": 260,
|
|
"x": 120,
|
|
"y": 63
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/StatusText"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontSize": "20px",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"background-color": "#CFCFCF"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |