245 lines
6.1 KiB
Plaintext
245 lines
6.1 KiB
Plaintext
{
|
|
"custom": {
|
|
"Config1": null,
|
|
"Config2": null,
|
|
"DSA_Bus": null,
|
|
"DSA_W2_Closed": null,
|
|
"DSB_Bus": null,
|
|
"DSB_W2_Closed": null,
|
|
"cable": null
|
|
},
|
|
"params": {
|
|
"L_Path": "[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_DS-1A2",
|
|
"R_Path": "[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_DS-1B2",
|
|
"cable": false,
|
|
"path": "[Ignition_Common_IO_Gtwy]Cables/DS_2"
|
|
},
|
|
"propConfig": {
|
|
"custom.Config1": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"path1": "{view.params.L_Path}"
|
|
},
|
|
"tagPath": "{path1}/Data/Config"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.Config2": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"path2": "{view.params.R_Path}"
|
|
},
|
|
"tagPath": "{path2}/Data/Config"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.DSA_Bus": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"L_Path": "{view.params.L_Path}"
|
|
},
|
|
"tagPath": "{L_Path}/Data/Bus"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.DSA_W2_Closed": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"L_Path": "{view.params.L_Path}"
|
|
},
|
|
"tagPath": "{L_Path}/Breaker Closed Way 02"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.DSB_Bus": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"R_Path": "{view.params.R_Path}"
|
|
},
|
|
"tagPath": "{R_Path}/Data/Bus"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.DSB_W2_Closed": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"R_Path": "{view.params.R_Path}"
|
|
},
|
|
"tagPath": "{R_Path}/Breaker Closed Way 02"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.cable": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"path": "{view.params.path}"
|
|
},
|
|
"tagPath": "{path}"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.L_Path": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.R_Path": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.cable": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"BA": "{view.custom.DSA_Bus}",
|
|
"BB": "{view.custom.DSB_Bus}",
|
|
"CA": "{view.custom.Config1}",
|
|
"CB": "{view.custom.Config2}",
|
|
"WA": "{view.custom.DSA_W2_Closed}",
|
|
"WB": "{view.custom.DSB_W2_Closed}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value[\u0027CA\u0027]\u003d\u003d3 and value[\u0027BA\u0027] and value[\u0027WA\u0027]:\n\t\tself.custom.cable \u003d True\n\t\treturn True\n\telif value[\u0027CB\u0027]\u003d\u003d3 and value[\u0027BB\u0027] and value[\u0027WB\u0027]:\n\t\tself.custom.cable \u003d True\n\t\treturn True\n\telse:\n\t\tself.custom.cable \u003d False\n\t\treturn False",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
},
|
|
"paramDirection": "output",
|
|
"persistent": true
|
|
},
|
|
"params.path": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 43
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"custom": {
|
|
"colorHandler": {}
|
|
},
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "100%"
|
|
},
|
|
"propConfig": {
|
|
"custom.colorHandler.cable": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.cable"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "purple",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": false,
|
|
"output": "var(--olGreen)"
|
|
},
|
|
{
|
|
"input": true,
|
|
"output": "var(--olRed)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.style.borderLeftColor": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.cable"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.style.borderRightColor": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.cable"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.style.borderTopColor": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.custom.colorHandler.cable"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"borderBottomWidth": 2,
|
|
"borderLeftStyle": "solid",
|
|
"borderLeftWidth": 2,
|
|
"borderRightStyle": "solid",
|
|
"borderRightWidth": 2,
|
|
"borderTopStyle": "solid",
|
|
"borderTopWidth": 2
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |