8/18/2009 5:52 AM | |
Joined: 10/7/2005 Last visit: 5/29/2023 Posts: 2965 Rating:
|
Hello Palestine If you want to call yourFC(or FB)multiple times and use S5 Timers inside of it, then you must pass on the S5 Timer number to it as an Input paramter(and use a different S5 Timer number for every call, see also attached example pic). If you prefer to use SFB4 instead, you'll need to use anFB (instead of FC) and "embedd" the SFB4 Instance DB in the DB of yourFB (so called Multi Instance call). Have a look at THIS THREAD too, which has more on thesubject of Timers. I hope this helps P.S: If you have a valid "PT" (e.g. T#5s in your example) on your SFB4 call and a 0-->1 transition of the "IN" (I 0.0 of your example),the output (Q 0.0 of your example) will come on5 sec. after the I 0.0went ON (assuming I 0.0 stays ON), so I'm not too sure why you say it does not work in your case. |
Last edited by: fritz at: 8/19/2009 2:06 AMAdded example picture Cheers |
|
8/24/2009 8:42 AM | |
Joined: 10/7/2005 Last visit: 5/29/2023 Posts: 2965 Rating:
|
Hello again Palestine, allow me to quote my earlier self and see above entry for the solution as well as this FAQ for more on the so called Multi Instance usage. How do you create and update multiple instances? I hope thishelps |
Cheers |
|
8/25/2009 8:55 AM | |
Posts: 74 Rating:
|
Thank you |
8/25/2009 10:11 AM | |
Joined: 10/7/2005 Last visit: 5/29/2023 Posts: 2965 Rating:
|
Hello again palestine without going into the + and - of Siemens PLC's versus others (which wouldn't be a fair fight anyhow in my humble opinion and one thatSiemens would win hands down I trust you checked out the FAQ link I gave you erlier and am not too sure how to say it any clearer than it is described in that link. Nonetheless, attached is a pic which hopefully helps a little bit tooon how to do SFB4 multi instance calls. By the way, there is nothing wrong with using the S5 Timers (no need for multi instance for these) instead of the IEC compliant SFB4. I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on