7/3/2018 4:01 PM | |
Joined: 6/28/2017 Last visit: 12/20/2022 Posts: 661 Rating:
|
Hello everyone, just have faced with such stuff like:
Perhaps someone faced already with such stuff... Msorich |
Last edited by: Msorich at: 7/3/2018 4:02:58 PM |
|
7/3/2018 4:39 PM | |
Joined: 7/7/2010 Last visit: 9/23/2025 Posts: 16136 Rating:
|
FYI, putting a timer in an FC feels strange (back when I first started with S7-1200's, I did it all the time....) because you can call an FC more than once in your project. Having the same timer called multiple times in your project is a problem. Is that what happened? If you have timers, put them in FBs and use instance DBs for the timers. If you have timers in FBs using global DBs, that can be a problem very much like it's a problem with FCs. FBs are typically single purpose reusable pieces of logic. If you need retentive options, set up a separate DB for all the tags used by an OB (you can have multiple cyclic OBs if you like grouping your normal scan logic to a single sub-system). With the optimized DB of tags, you can selectively set the retentive nature. However, if you are not allowed that luxury and have to hide the optimization in an instance DB ("Set in iDB"), that's all good too. Just be aware you have to call the FBs and FCs from an OB for them to run. Have I guessed anywhere close?
|
science guy |
|
This contribution was helpful to
2 thankful Users |
7/3/2018 5:45 PM | |
Joined: 6/28/2017 Last visit: 12/20/2022 Posts: 661 Rating:
|
huggy_d1
What a visionary? Msorich
|
7/4/2018 5:27 PM | |
Joined: 6/28/2017 Last visit: 12/20/2022 Posts: 661 Rating:
|
Hello OpisOm, I heard about that limitation and it might be one more drawback of programming in TIA. However, I didn't like that and had tried to use, as it shown at the pic attached. It's working flawlessly so far. An issue was at another place. So. if you will, look at this thread. Anyway thanks for your inputting. Msorich |
7/5/2018 8:49 AM | |
Joined: 9/23/2005 Last visit: 9/24/2025 Posts: 5121 Rating:
|
Yes and no, i.e. as long as you really know what you are doing. This discussion shoud shed some light on the topic. |
Last edited by: jacek d at: 7/5/2018 10:21:26 AM@#dP: Tnx for pointing this out Regards, |
|
This contribution was helpful to
4 thankful Users |
Follow us on