327 lines
8.3 KiB
Plaintext
327 lines
8.3 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"meta": {
|
|
"name": "S1-CH1"
|
|
},
|
|
"props": {
|
|
"config": {
|
|
"alwaysShowAll": true,
|
|
"isClickable": false,
|
|
"isRightOfSorter": false,
|
|
"mirror": false
|
|
},
|
|
"status": {
|
|
"tagPath": "[default]MCP03/S01/S01_CH01"
|
|
}
|
|
}
|
|
},
|
|
"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.props.status.tagPath"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\treturn utils.prettyName(value.split(\"/\")[-1])",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontSize": "20px",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Chute"
|
|
},
|
|
"position": {
|
|
"height": 20,
|
|
"width": 60,
|
|
"x": 220,
|
|
"y": 195
|
|
},
|
|
"propConfig": {
|
|
"props.params": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"alwaysShowAll": true,
|
|
"isClickable": false,
|
|
"isRightOfSorter": "{view.params.props.config.isRightOfSorter}",
|
|
"mirror": "{view.params.props.config.mirror}",
|
|
"tagPath": "{view.params.props.status.tagPath}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"type": "expr-struct"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"path": "Templates/Areas/FlexChute",
|
|
"style": {
|
|
"transform": "scale(3) rotate(90deg)"
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttagPath \u003d self.view.params.props.status.tagPath\n\ttags \u003d [tagPath + \"/CH/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 + \"/CH/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}/CH/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"
|
|
}
|
|
} |