Files
Stream_PHX_A7/Gateways/FE/projects/.resources/379a28725c1971a3a93f34614eadeec1dd319e9489cb1a69366c377df70e4d0d

534 lines
14 KiB
Plaintext

{
"custom": {
"allTags": [
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 38,
"instanceStyle": {
"classes": ""
},
"name": "Apparent Energy Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 40,
"instanceStyle": {
"classes": ""
},
"name": "Apparent Energy Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 16,
"instanceStyle": {
"classes": ""
},
"name": "Apparent Power",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 1,
"instanceStyle": {
"classes": ""
},
"name": "Current A",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 9,
"instanceStyle": {
"classes": ""
},
"name": "Current Avg",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 3,
"instanceStyle": {
"classes": ""
},
"name": "Current B",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 5,
"instanceStyle": {
"classes": ""
},
"name": "Current C",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 7,
"instanceStyle": {
"classes": ""
},
"name": "Current N",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 25,
"instanceStyle": {
"classes": ""
},
"name": "Demand Apparent Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 27,
"instanceStyle": {
"classes": ""
},
"name": "Demand Apparent Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 26,
"instanceStyle": {
"classes": ""
},
"name": "Demand Reactive Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 28,
"instanceStyle": {
"classes": ""
},
"name": "Demand Reactive Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 33,
"instanceStyle": {
"classes": ""
},
"name": "Demand Real Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 35,
"instanceStyle": {
"classes": ""
},
"name": "Demand Real Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 19,
"instanceStyle": {
"classes": ""
},
"name": "Frequency",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 29,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Apparent Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 31,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Apparent Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 30,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Reactive Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 32,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Reactive Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 37,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Real Power Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 39,
"instanceStyle": {
"classes": ""
},
"name": "Peak Demand Real Power Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 20,
"instanceStyle": {
"classes": ""
},
"name": "Power Factor",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 34,
"instanceStyle": {
"classes": ""
},
"name": "Reactive Energy Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 36,
"instanceStyle": {
"classes": ""
},
"name": "Reactive Energy Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 18,
"instanceStyle": {
"classes": ""
},
"name": "Reactive Power",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 21,
"instanceStyle": {
"classes": ""
},
"name": "Real Energy",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 22,
"instanceStyle": {
"classes": ""
},
"name": "Real Energy Delivered",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 24,
"instanceStyle": {
"classes": ""
},
"name": "Real Energy Received",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 14,
"instanceStyle": {
"classes": ""
},
"name": "Real Power",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 13,
"instanceStyle": {
"classes": ""
},
"name": "Real Power A",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 15,
"instanceStyle": {
"classes": ""
},
"name": "Real Power B",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 17,
"instanceStyle": {
"classes": ""
},
"name": "Real Power C",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 2,
"instanceStyle": {
"classes": ""
},
"name": "Voltage AB",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 8,
"instanceStyle": {
"classes": ""
},
"name": "Voltage AN",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 11,
"instanceStyle": {
"classes": ""
},
"name": "Voltage Average",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 4,
"instanceStyle": {
"classes": ""
},
"name": "Voltage BC",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 10,
"instanceStyle": {
"classes": ""
},
"name": "Voltage BN",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 6,
"instanceStyle": {
"classes": ""
},
"name": "Voltage CA",
"options": []
},
{
"dataType": "Float4",
"displaySelection": 0,
"format": "0.0",
"instancePosition": 12,
"instanceStyle": {
"classes": ""
},
"name": "Voltage CN",
"options": []
}
]
},
"params": {
"tagPath": "[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_SES_1A/PQM_Main"
},
"propConfig": {
"custom.allTags": {
"binding": {
"config": {
"struct": {
"tagPath": "{view.params.tagPath}"
},
"waitOnAll": true
},
"enabled": false,
"transforms": [
{
"code": "\toutput \u003d []\n\t# Simulate fetching tag configurations and sorting by name\n\tnodes \u003d system.tag.getConfiguration(value[\u0027tagPath\u0027], True)\n\tfor item in nodes:\n\t if \u0027tags\u0027 in item:\n\t \tsortedTags \u003d sorted(item[\u0027tags\u0027], key\u003dlambda x: x[\u0027name\u0027])\n\t \t#sortedTags \u003d sorted(sortedTags, key\u003dlambda x: x.get(\u0027engUnit\u0027, \u0027misc\u0027) if x.get(\u0027engUnit\u0027, \u0027misc\u0027) !\u003d \"\" else \u0027misc\u0027)\n for tagConfig in sortedTags:\n if str(tagConfig[\u0027tagType\u0027]) \u003d\u003d \u0027AtomicTag\u0027:\n name \u003d tagConfig.get(\"name\", \"\")\n dataType \u003d tagConfig.get(\"dataType\", \"\")\n tagPath \u003d value[\u0027tagPath\u0027] + \u0027/\u0027 + name\n if dataType \u003d\u003d \u0027Boolean\u0027:\n \tdisplaySel \u003d 1\n else:\n \tdisplaySel \u003d 0\n instance \u003d {\n \"instanceStyle\": {\n \"classes\": \"\"\n },\n \"instancePosition\": 999,\n \"name\": name,\n \"dataType\": dataType,\n \"displaySelection\": displaySel,\n \"format\": \"0.0\",\n \"options\": []\n }\n output.append(instance)\n\t# Return or process the sorted output\n\treturn output",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {},
"root": {
"children": [
{
"meta": {
"name": "FlexRepeater"
},
"position": {
"basis": "100%"
},
"propConfig": {
"props.instances": {
"binding": {
"config": {
"struct": {
"allTags": "{view.custom.allTags}",
"tagPath": "{view.params.tagPath}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\toutput \u003d []\n\tallTags \u003d system.util.jsonDecode(system.util.jsonEncode(value[\u0027allTags\u0027]))\n\tfor tag in allTags:\n\t\ttagName \u003d tag[\"name\"]\n\t\ttag[\"tagPath\"] \u003d value[\"tagPath\"] + \"/\" +tagName\n\t\ttag[\u0027visible\u0027] \u003d True\n\t\toutput.append(tag)\n\toutput_sorted \u003d sorted(output, key\u003dlambda item: item[\"instancePosition\"])\n\treturn output_sorted",
"type": "script"
}
],
"type": "expr-struct"
}
},
"props.instances[22].visible": {
"binding": {
"config": {
"expression": "False"
},
"type": "expr"
}
}
},
"props": {
"alignContent": "flex-start",
"elementPosition": {
"basis": "50%",
"grow": 0
},
"loading": {
"order": "with-parent"
},
"path": "Library/Framework/Tag Info",
"style": {
"border": "1px solid var(--border)",
"gap": "10px 0",
"padding": "10px"
},
"useDefaultViewHeight": false,
"useDefaultViewWidth": false,
"wrap": "wrap"
},
"type": "ia.display.flex-repeater"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column",
"style": {
"classes": "containers/padded-container"
}
},
"type": "ia.container.flex"
}
}