291 lines
7.4 KiB
Plaintext
291 lines
7.4 KiB
Plaintext
{
|
|
"custom": {
|
|
"OCmd": {}
|
|
},
|
|
"params": {
|
|
"auth": {
|
|
"almAck": true,
|
|
"almShelve": true,
|
|
"config": true,
|
|
"control": true
|
|
},
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_CH09_TT_RET"
|
|
},
|
|
"propConfig": {
|
|
"custom.OCmd": {
|
|
"persistent": true
|
|
},
|
|
"custom.OCmd.Reset": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Control/OCmd_Reset"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"custom.OCmd.SubEn": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Control/OCmd_SubstituteEN"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"custom.OCmd.SubVal": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Control/OCmd_SubstituteVal"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"params.auth": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.view.custom.OCmd.Reset \u003d True"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "OOSBtn"
|
|
},
|
|
"position": {
|
|
"basis": "50px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.auth.control"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"primary": false,
|
|
"text": "Reset"
|
|
},
|
|
"type": "ia.input.button"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Left Column"
|
|
},
|
|
"position": {
|
|
"basis": "50%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"gap": "10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Description",
|
|
"tooltip": {
|
|
"width": "50%"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "50%"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"marginRight": 20
|
|
},
|
|
"text": "Substitute Enable"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Val"
|
|
},
|
|
"position": {
|
|
"basis": "50%"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.auth.control"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "view.custom.OCmd.SubEn"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"text": ""
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "SubEnable"
|
|
},
|
|
"position": {
|
|
"basis": "50px"
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Description"
|
|
},
|
|
"position": {
|
|
"basis": "50%"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"marginRight": 20
|
|
},
|
|
"text": "Substitute Setpoint"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Val"
|
|
},
|
|
"position": {
|
|
"basis": "50%",
|
|
"grow": 1
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"Ocmd_En": "{view.custom.OCmd.SubEn}",
|
|
"auth": "{view.params.auth.control}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value[\u0027auth\u0027] and value[\u0027Ocmd_En\u0027]:\n\t\treturn True\n\telse:\n\t\treturn False\n\t",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
}
|
|
},
|
|
"props.style.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled}, \u0027var(--tagvalue-color)\u0027, \u0027\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.value": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "view.custom.OCmd.SubVal"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontWeight": "bold",
|
|
"min-height": "30px"
|
|
}
|
|
},
|
|
"type": "ia.input.numeric-entry-field"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "SubVal"
|
|
},
|
|
"position": {
|
|
"basis": "50px"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Right Column"
|
|
},
|
|
"position": {
|
|
"basis": "50%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"gap": "10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "containers/padded-container",
|
|
"gap": "10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |