@@PLCskilltree Thanks for the answer but inside DB you can only make whole UDT retain, i thought about make retain only "Par" or "Cfg" struct, without "Sts" and "Cmd". I usualy make diffrent UDT for retain data and control/status data, but maybe there is a better way to have it together?
@ you cannot do that unfortunately, I am as well waiting for Siemens to add this in a future version. You could make 2 structures for each module - a non-retain structure , and a retain structure, e.g. UDT_AirSupply and UDT_AirSupply_Ret. Alternatively, just make all structures retain. They are typically small in size and I have not had any problems yet in my projects.
Thank you,Hans.👍
Welcome!
Thank you Hans, well done workshop, looking for more
Cool, thanks
👏👍Thank you!
Welcome!
🙏Thank you
You’re welcome!
You're doing great Hans, keep on.
Thanks 🙏
Thank you, great job. I wonder how you make your parameters inside UDT retain, I suppouse You dont want to lose them after restart?
Retain properties are set in the DB (where you define variables using the UDT), not in the UDT itself. A UDT is just a datatype.
@@PLCskilltree Thanks for the answer but inside DB you can only make whole UDT retain, i thought about make retain only "Par" or "Cfg" struct, without "Sts" and "Cmd". I usualy make diffrent UDT for retain data and control/status data, but maybe there is a better way to have it together?
@ you cannot do that unfortunately, I am as well waiting for Siemens to add this in a future version.
You could make 2 structures for each module - a non-retain structure , and a retain structure, e.g. UDT_AirSupply and UDT_AirSupply_Ret.
Alternatively, just make all structures retain. They are typically small in size and I have not had any problems yet in my projects.