264 lines
6.6 KiB
Plaintext
264 lines
6.6 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"dataType": "Int4",
|
|
"enabled": true,
|
|
"format": "##.##",
|
|
"isArray": false,
|
|
"max": null,
|
|
"min": null,
|
|
"name": "",
|
|
"options": [],
|
|
"substitute": null,
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]ChillerFltCodes/CP08[0]"
|
|
},
|
|
"propConfig": {
|
|
"params.dataType": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.enabled": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.format": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.isArray": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.max": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.min": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.name": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.options": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.substitute": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 40
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Name",
|
|
"tooltip": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "40%"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}.OpcItemPath"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.name"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Input",
|
|
"tooltip": {}
|
|
},
|
|
"position": {
|
|
"basis": "200px",
|
|
"shrink": 0
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}.OpcItemPath"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"position.display": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.name"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value \u003d\u003d \u0027\u0027:\n\t\treturn False\n\treturn True",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.enabled"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.format": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.format"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.isArray": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.isArray"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.max": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.max"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.min": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.min"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.options": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.options"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.tagPath"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.path": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "case({view.params.dataType},\r\n\u0027Boolean\u0027, \u0027Library/Templates/Framework/Input/Boolean\u0027,\r\n\u0027Int4\u0027, \u0027Library/Templates/Framework/Input/Int\u0027,\r\n\u0027Int8\u0027, \u0027Library/Templates/Framework/Input/Int\u0027,\r\n\u0027Float4\u0027, \u0027Library/Templates/Framework/Input/Int\u0027,\r\n\u0027Float8\u0027, \u0027Library/Templates/Framework/Input/Int\u0027,\r\n\u0027String\u0027, \u0027Library/Templates/Framework/Input/String\u0027,\r\n\u0027\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"minWidth": "100px"
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Units"
|
|
},
|
|
"position": {
|
|
"basis": "50px"
|
|
},
|
|
"propConfig": {
|
|
"position.display": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.name"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value \u003d\u003d \u0027\u0027:\n\t\treturn False\n\treturn True",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"1": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{1}.engUnit"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"textStyle": {
|
|
"color": "var(--units-color)"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"gap": "5px",
|
|
"overflow": "visible",
|
|
"padding": "0 10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |