290 lines
8.4 KiB
Plaintext
290 lines
8.4 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"group": "A",
|
|
"penList": [
|
|
{
|
|
"color": "#e55d19",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Bypass Amps A",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Bypass Amps A"
|
|
},
|
|
{
|
|
"color": "#e57419",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Bypass Amps B",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Bypass Amps B"
|
|
},
|
|
{
|
|
"color": "#e58a19",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Bypass Amps C",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Bypass Amps C"
|
|
},
|
|
{
|
|
"color": "#46e519",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Cellwatch Discharge Current",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Cellwatch Discharge Current"
|
|
},
|
|
{
|
|
"color": "#30e519",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Cellwatch Float Current",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Cellwatch Float Current"
|
|
},
|
|
{
|
|
"color": "#19e519",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Cellwatch JAR Current",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Cellwatch JAR Current"
|
|
},
|
|
{
|
|
"color": "#19e546",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Cellwatch Min_Max Battery Current",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Cellwatch Min_Max Battery Current"
|
|
},
|
|
{
|
|
"color": "#19e5a1",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Input Amps A",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Input Amps A"
|
|
},
|
|
{
|
|
"color": "#19e5b8",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Input Amps B",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Input Amps B"
|
|
},
|
|
{
|
|
"color": "#19e5ce",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Input Amps C",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Input Amps C"
|
|
},
|
|
{
|
|
"color": "#3019e5",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Output Amps A",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Output Amps A"
|
|
},
|
|
{
|
|
"color": "#4619e5",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Output Amps B",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Output Amps B"
|
|
},
|
|
{
|
|
"color": "#5d19e5",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Output Amps C",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Output Amps C"
|
|
},
|
|
{
|
|
"color": "#ce19e5",
|
|
"enabled": false,
|
|
"engUnit": "A",
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"name": "Output Neutral Current",
|
|
"tagPath": "[Ignition_SATB1_IO1_default]Datahall 1/Development/UPS 1/Output Neutral Current"
|
|
}
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"params.group": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.penList": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "12px",
|
|
"shrink": 0
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.group"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"color": "--neutral-100",
|
|
"fontSize": "13px",
|
|
"fontWeight": "bold",
|
|
"paddingLeft": "10px"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Pen List"
|
|
},
|
|
"position": {
|
|
"grow": 1
|
|
},
|
|
"propConfig": {
|
|
"custom.instances": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"groupName": "{parent.custom.groupName}",
|
|
"groupNum": "{parent.custom.groupNum}",
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tkW_tags \u003d system.tag.browse(value[\u0027tagPath\u0027], {\u0027name\u0027:\u0027*kW*\u0027, \u0027tagType\u0027:\u0027AtomicTag\u0027})\n\tkVA_tags \u003d system.tag.browse(value[\u0027tagPath\u0027], {\u0027name\u0027:\u0027*kVA*\u0027, \u0027tagType\u0027:\u0027AtomicTag\u0027})\n\ttags \u003d list(kW_tags) + list(kVA_tags)\n\toutput \u003d []\n\tfor i, tag in enumerate(tags):\n\t\tinstance \u003d {\n\t\t\t\"color\": utils.misc.getHexColorFromInt((value[\u0027groupNum\u0027] * 10) + i),\n\t\t\t\"enabled\": False,\n\t\t\t\"group\": value[\u0027groupName\u0027],\n\t\t\t\"instancePosition\": {},\n\t\t\t\"instanceStyle\": {\n\t\t\t\"classes\": \"\"\n\t\t\t},\n\t\t\t\"name\": tag[\u0027name\u0027],\n\t\t\t\"path\": tag[\u0027fullPath\u0027]\n\t\t}\n\t\toutput.append(instance)\n\treturn output",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
}
|
|
},
|
|
"props.instances": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.penList"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"elementPosition": {
|
|
"basis": "auto",
|
|
"grow": 0,
|
|
"shrink": 0
|
|
},
|
|
"loading": {
|
|
"order": "with-parent"
|
|
},
|
|
"path": "Library/Framework/Pen",
|
|
"style": {
|
|
"marginLeft": "10px",
|
|
"marginTop": "5px",
|
|
"overflow": "hidden"
|
|
},
|
|
"useDefaultViewHeight": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
}
|
|
],
|
|
"custom": {
|
|
"groupName": "Power",
|
|
"groupNum": 1
|
|
},
|
|
"meta": {
|
|
"name": "Pens Group 1"
|
|
},
|
|
"position": {
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"paddingBottom": "8px",
|
|
"paddingTop": "10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |