9/30/2019 10:09 PM | |
Joined: 2/24/2015 Last visit: 1/25/2023 Posts: 306 Rating: (78) |
Which PLC do you use? In S7-300 the default data blocks retain their values in the retentive memory. See this. |
9/30/2019 10:32 PM | |
Joined: 9/27/2006 Last visit: 11/11/2024 Posts: 12293 Rating: (2691)
|
Hello vorapob; Konstantin_D's answer is quite appropriate for standard, global DBs. If the original question concerned "instance DBs", a DB that is generated at the creation of a FB, then this document should be interesting to you: What is the difference between an instance data block and a global data block and how does a CALL call influence the DB register? https://support.industry.siemens.com/cs/ww/en/view/15360455 Note that the STAT variables in an instance dB (variables that are part of the FB code body) are totally retentive. Hope this helps, Daniel Chartier |
This contribution was helpful to1 thankful Users |
10/1/2019 5:22 PM | |
Joined: 1/17/2013 Last visit: 11/9/2024 Posts: 1106 Rating: (7) |
Dear Konstantin_D, I use S7-300. Is the initial value in DB is retentive value ? Best Regards, Vorapob |
Best Regards, |
|
10/1/2019 5:25 PM | |
Joined: 1/17/2013 Last visit: 11/9/2024 Posts: 1106 Rating: (7) |
Dear Daniel Chartier, Thank you very much for your information. Best Regards, Vorapob |
Best Regards, |
|
Follow us on