Ignition Memory Usage

Get used to batching your reads and writes:

tags_to_read = [
	"[default]BACC_VCL6/OEE/OEE_Stops_Number_UN1_current",
	"[default]BACC_VCL6/OEE/OEE_Stops_Number_UN2_current",
	"[default]BACC_VCL6/EM18/Ethanol Consumed Current",
	"[default]BACC_VCL6/EM18/LC Top Coat Consumed Current",
	"[default]BACC_VCL6/EM18/Waste Consumed Current"
]

tags_to_write = [
	"[default]BACC_VCL6/OEE/OEE_Stops_Last_UN1",
	"[default]BACC_VCL6/OEE/OEE_Stops_Last_UN2",
	"[default]BACC_VCL6/EM18/Ethanol Consumed Last",
	"[default]BACC_VCL6/EM18/LC Top Coat Consumed Last",
	"[default]BACC_VCL6/EM18/Waste Consumed Last"
]

values = [qval.value for qval in system.tag.readBlocking(tags_to_read)]
system.tag.writeBlocking(tags_to_write, values)

Not saying this is the cause of your issues, but it's a good habit to have.

5 Likes