2/27/2022 7:43 PM | |
Joined: 8/18/2018 Last visit: 1/22/2025 Posts: 31 Rating:
|
Hello everyone... I am working on a project and I have used SCL language to create the FB. Now the problem is I have used timers in the FB. First, all was working fine. But as the complexity of the project increased and I have added more FB's and DB's to the project after a while timers in the FB's stopped working. The timer doesn't start even if the IN is true. At this movement, I am having the following problems- 1. Timers in FB are not starting after the IN is true. I tried using different instances of timers and each time after the timer is on I reset the timer by USING 'RESET_TIMER('....')'. My CPU is 1212C 6ES7 212-1AE31-0XB0 FW-3.0 using TIA V15. Could anyone give me any clue of how to resolve this problem? I have attached some pictures of my projects here. Thanks in advance. AttachmentPictures.zip (347 Downloads) |
3/11/2022 9:03 AM | |
Joined: 9/23/2005 Last visit: 9/23/2025 Posts: 5121 Rating:
|
And you are right. If you want to build an FB which is able to have multiple instances, you can't use inside of it other FBs (yes, a timer is an FB too) which have their own global instance DBs. You must embed those FBs' instances in interface of your FB. Programming guideline ch. 3.2.5 |
Regards, |
|
This contribution was helpful to
2 thankful Users |
Follow us on