[?]: How to use timers in a function block

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
joopiter
Posts: 40
Joined: Tue Jan 01, 2008 9:37 am
Location: Iran

[?]: How to use timers in a function block

Post by joopiter »

Dear friends
I want to use a timer in a FB and call that FB in my program,
but I dont know how to use the timer in FB,
if I use T01 for timer name in FB,
then can I call that FB many times with T01 timer? :?:
Yury
Posts: 65
Joined: Thu Nov 01, 2007 9:41 pm
Location: Belarus

Post by Yury »

Image
Image
joopiter
Posts: 40
Joined: Tue Jan 01, 2008 9:37 am
Location: Iran

Post by joopiter »

Dear Yury
thanks a lot
pkbiju
Posts: 5
Joined: Wed Nov 12, 2008 3:52 pm
Location: Europe

Post by pkbiju »

When you call FB many times, from another FB or OB, the same timer will be used parellally for all the application. So will is really work or not if you have the Fb called multiple times? (eventhough instance DB are different)
bunglehead
Posts: 109
Joined: Thu Oct 19, 2006 7:00 am
Location: Russia

Post by bunglehead »

pkbiju wrote:When you call FB many times, from another FB or OB, the same timer will be used parellally for all the application. So will is really work or not if you have the Fb called multiple times? (eventhough instance DB are different)
Each time a timer supplied to IN parameter will be used.
Of course it will overlap if you have multiple calls with same timers.
marcs7
Posts: 52
Joined: Fri Jun 08, 2007 4:00 pm
Location: Europe

Post by marcs7 »

you can multi instance the SFB4
Image

i never use s5timer , just for dirty patch
pkbiju
Posts: 5
Joined: Wed Nov 12, 2008 3:52 pm
Location: Europe

thanks

Post by pkbiju »

marcs7 wrote:you can multi instance the SFB4
i never use s5timer , just for dirty patch
I think this is the better way to use the SFB4, in this case each instance of the FB will use a different timer !! Thank you very much
bunglehead wrote:
pkbiju wrote:When you call FB many times, from another FB or OB, the same timer will be used parellally for all the application. So will is really work or not if you have the Fb called multiple times? (eventhough instance DB are different)
Each time a timer supplied to IN parameter will be used.
Of course it will overlap if you have multiple calls with same timers.
Thank you very much !