Hi,
I have run out of retention memory because i am retaining whole struts.
Is it possible to retain individual tags in user defined datatypes?
For example I have 20 primitive tags in the struct and I only need to retain about 5 of them.
I also can’t create structs within structs to isolate the retained data because i am using MQTT to send my tags to the cloud and this code can’t handle complex data within complex data.
Are there any alternative such as increasing the retention resource by using the SD card?
Hi John,
what about writing the tags into primitive retain variables in a cyclic task and use an event task of type warm start to you initialize all your structs with the retained variables.
It’s by far not a perfect solution because you’ll need do it for every single instance of your struct variable but maybe it’s a workaround.
BR
DivisionByZero
To answer this question:
Are there any alternative such as increasing the retention resource by using the SD card?No, unfortunately this is not possible in the AXC F 2152 (for example) the retentive data is stored on an NVRAM chip, which has a fixed size.