BNA8/.resources/e8921304652a96c7d641c88922739b5e8139c6e07b8ec0a0e23aa30a249c6d29

319 lines
8.0 KiB
Plaintext

{
"custom": {},
"params": {
"meta": {
"name": "FL01_01CH"
},
"props": {
"config": {
"alwaysShowAll": true,
"isClickable": false,
"isRightOfSorter": false,
"mirror": false
},
"status": {
"tagPath": "[default]MCP03/FL01/FL01_01CH/Conv"
}
}
},
"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.isRightOfSorter": {
"paramDirection": "input",
"persistent": true
},
"params.props.config.mirror": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 349,
"width": 500
}
},
"root": {
"children": [
{
"meta": {
"name": "ChuteLabel"
},
"position": {
"height": 30,
"width": 100,
"x": 198,
"y": 298.8
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.meta.name"
},
"transforms": [
{
"code": "\treturn utils.prettyName(value)",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"fontSize": "20px",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttagPath \u003d self.view.params.props.status.tagPath\n\ttags \u003d [tagPath + \"/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}/CH/SetEnable"
},
"enabled": false,
"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}/CH/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 + \"/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}/CH/SetEnable"
},
"enabled": false,
"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}/CH/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": "ChuteLabel_0"
},
"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}/StatusText"
},
"type": "tag"
}
}
},
"props": {
"style": {
"fontSize": "20px",
"fontWeight": "bold",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Conveyor"
},
"position": {
"height": 59,
"width": 224,
"x": 136,
"y": 167
},
"propConfig": {
"props.status": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.props.status.tagPath}"
},
"tagPath": "{tagPath}/Graphics"
},
"type": "tag"
}
}
},
"type": "dex.display.conveyor"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"background-color": "#CFCFCF"
}
},
"type": "ia.container.coord"
}
}