Hello to everyone.
My question here is whether it is possible to write/read on the NVRAM an instance of a function block.
I have a function block that relies on an internal counter to give a result. I don't want this counter to be lost upon reset of the PLC so I thought I could use FB_NovRamReadWrite to store it on the NOVRAM but it doesn't seem to work.
I have tried with basic data types and it works ok, I can write/read an integer but is not the same with the function block.
So is it a limitation on twincat or is it possible to store an instance of a FB?
Thanks
My question here is whether it is possible to write/read on the NVRAM an instance of a function block.
I have a function block that relies on an internal counter to give a result. I don't want this counter to be lost upon reset of the PLC so I thought I could use FB_NovRamReadWrite to store it on the NOVRAM but it doesn't seem to work.
I have tried with basic data types and it works ok, I can write/read an integer but is not the same with the function block.
So is it a limitation on twincat or is it possible to store an instance of a FB?
Thanks