Hi, I posted a TIAV15 program where i did something similar. I think the post is called help me help you...you have to put the TON in a a rung in your FB. When you do that Make sure to Use mult instance so that the Timer DB is stored in the instance data of your FB. Inside FB, Set the formal parameters for your Timer Block, eg PT and ET using the static Timer data in the interface of your FB. When u call your FB into OB1 you should set the actual parameters in OB1. Hope this helps!
Hi, I posted a TIAV15 program where i did something similar. I think the post is called help me help you...you have to put the TON in a a rung in your FB. When you do that Make sure to Use mult instance so that the Timer DB is stored in the instance data of your FB. Inside FB, Set the formal parameters for your Timer Block, eg PT and ET using the static Timer data in the interface of your FB. When u call your FB into OB1 you should set the actual parameters in OB1. Hope this helps!