I need to call 128 times the SFB3. I have it declared in the STAT of the FB, but how to call it? and how to generate the instance DB associated with the SFB?
Many thanks
How to integrate and call SFB into FB
-
- Posts: 103
- Joined: Fri Aug 31, 2007 8:17 pm
- Location: Europe
-
- Posts: 108
- Joined: Tue Dec 16, 2008 7:36 pm
Re: How to integrate and call SFB into FB
you call sfb3 in the same way as any other FB.
Creating a large number of timers is a perfect example where "function block nesting" can be used.
here is a sample program where 128 timers created using "nesting":
https://www.sendspace.com/file/1gngo1
it took me about 7 minutes to make it, so it's a huge time savier, but it's a bit messy:)
Its done in TIA12. i hope it helps
Creating a large number of timers is a perfect example where "function block nesting" can be used.
here is a sample program where 128 timers created using "nesting":
https://www.sendspace.com/file/1gngo1
it took me about 7 minutes to make it, so it's a huge time savier, but it's a bit messy:)
Its done in TIA12. i hope it helps
-
- Posts: 103
- Joined: Fri Aug 31, 2007 8:17 pm
- Location: Europe
Re: How to integrate and call SFB into FB
Many thanks almaz78 but unfortunately I am not using TIA portal (too many failures yet), I have a 319 CPU with normal Step7...
I wonder if you could put the example you have done under Step 7...
I wonder if you could put the example you have done under Step 7...
-
- Posts: 108
- Joined: Tue Dec 16, 2008 7:36 pm
Re: How to integrate and call SFB into FB
I dont have access to classic vesrsion right now, may be on monday...
-
- Posts: 108
- Joined: Tue Dec 16, 2008 7:36 pm
-
- Posts: 103
- Joined: Fri Aug 31, 2007 8:17 pm
- Location: Europe