BNA8/.resources/f2c31cfbf2ece2ce37a1d61db81e293bab08cf953f12db3a78a9792568facc47

291 lines
7.4 KiB
Plaintext

{
"custom": {},
"params": {
"meta": {
"name": "S1-CH1"
},
"props": {
"config": {
"alwaysShowAll": true,
"isClickable": false,
"mirror": false,
"rotate": false
},
"status": {
"tagPath": "[default]MCP06/PS04/PS04_17CH"
}
}
},
"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
},
"params.props.config.rotate": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 349,
"width": 500
}
},
"root": {
"children": [
{
"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"
},
{
"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": 92,
"width": 94,
"x": 203.775,
"y": 154.5
},
"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/RRChute",
"style": {
"transform": "scale(2)"
}
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"background-color": "#CFCFCF"
}
},
"type": "ia.container.coord"
}
}