Hi guys, first....great forum ! I got alot of information off it witch helpt me alot.
But i ran into a problem where i couldn't find a solution for. It's about the IEC Timers. First i used S5 Timers but then i read that it is better to use SFB4 TON Timers, so used it in a multiple instance. FB400 is the multiple instance block where i call all my SBF4 timers with symbolic names (around 20 timers). Everything is oke till then.
In several places in my program (FC's and FB's) i use the timers, i make the input .IN directly high in the program when i want the timer to be set. And if the timer expires, i look direcly to the output .Q and continue the program. The PT input is getting his time delay value from a shared datablock.
But now the timers won't work in PLCSIM, only 3 of them. And there is no difference in calling the timers between them. If i look in the instance datablock of the multiple instance (all the data from all the timers are stored there) i see that the IN input is set, but the timer won't run. So the output Q stay's low.
Also i call FB400 in OB1 at the end of the program, don't know if that is a problem. It is scanning al the timers every scan.
I already put the Hotfix over it for the problems of ignoring the PT value, so that's fixed but now this.
I really buggering with it and can't find a solution.
Further i am using PLCSIM V5.3 + SP1 + Hotfix and Step7 V5.4 + SP2
But i ran into a problem where i couldn't find a solution for. It's about the IEC Timers. First i used S5 Timers but then i read that it is better to use SFB4 TON Timers, so used it in a multiple instance. FB400 is the multiple instance block where i call all my SBF4 timers with symbolic names (around 20 timers). Everything is oke till then.
In several places in my program (FC's and FB's) i use the timers, i make the input .IN directly high in the program when i want the timer to be set. And if the timer expires, i look direcly to the output .Q and continue the program. The PT input is getting his time delay value from a shared datablock.
But now the timers won't work in PLCSIM, only 3 of them. And there is no difference in calling the timers between them. If i look in the instance datablock of the multiple instance (all the data from all the timers are stored there) i see that the IN input is set, but the timer won't run. So the output Q stay's low.
Also i call FB400 in OB1 at the end of the program, don't know if that is a problem. It is scanning al the timers every scan.
I already put the Hotfix over it for the problems of ignoring the PT value, so that's fixed but now this.
I really buggering with it and can't find a solution.
Further i am using PLCSIM V5.3 + SP1 + Hotfix and Step7 V5.4 + SP2
Last edited: