165 lines
3.8 KiB
Plaintext
165 lines
3.8 KiB
Plaintext
{
|
|
"custom": {
|
|
"Temp": 72,
|
|
"gradient": "40",
|
|
"inMax": 10,
|
|
"inMin": -10,
|
|
"outMax": 255,
|
|
"outMin": 0,
|
|
"sensor_tagPath": "[Ignition_Common_IO_Gtwy]DH2/SATB1_DH2_PNL22_H1_TT01"
|
|
},
|
|
"params": {
|
|
"Aisle": "H1",
|
|
"SP": 77,
|
|
"TT": "TT01",
|
|
"embedded": true,
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]DH2/SATB1_DH2_PNL22_"
|
|
},
|
|
"propConfig": {
|
|
"custom.Temp": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "direct",
|
|
"tagPath": "[default]simulator/DH/Temp4"
|
|
},
|
|
"enabled": false,
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.gradient": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{view.custom.Temp}-{view.params.SP}"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value\u003eself.custom.inMax: value \u003d 10\n\tif value\u003cself.custom.inMin: value \u003d -10\n\tnormalized \u003d (float(value) - self.custom.inMin)/(self.custom.inMax - self.custom.inMin)\n\tresult \u003d (normalized*(self.custom.outMax - self.custom.outMin))+ self.custom.outMin\n\treturn result",
|
|
"type": "script"
|
|
},
|
|
{
|
|
"expression": "toHex({value})",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "expr"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.inMax": {
|
|
"persistent": true
|
|
},
|
|
"custom.inMin": {
|
|
"persistent": true
|
|
},
|
|
"custom.outMax": {
|
|
"persistent": true
|
|
},
|
|
"custom.outMin": {
|
|
"persistent": true
|
|
},
|
|
"custom.sensor_tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "concat({view.params.tagPath},{view.params.Aisle},\"_\",{view.params.TT})"
|
|
},
|
|
"type": "expr"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.Aisle": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.SP": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.TT": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.embedded": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 350,
|
|
"width": 50
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "uppterTT"
|
|
},
|
|
"position": {
|
|
"basis": "20px"
|
|
},
|
|
"propConfig": {
|
|
"props.params.embedded": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.embedded"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "concat({view.params.tagPath},{view.params.Aisle},\"_\",{view.params.TT})"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"EU": "°F",
|
|
"objectName": "AnalogInRS485"
|
|
},
|
|
"path": "Library/Symbols/Sys_DH_Xmtr",
|
|
"style": {
|
|
"classes": "containers/HoverOver",
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "concat(\"#D24E00\", {view.custom.gradient})"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"overflow": "visible",
|
|
"paddingBottom": "2px",
|
|
"paddingLeft": "10px",
|
|
"paddingRight": "10px",
|
|
"paddingTop": "2px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |