If I have an instance DB which includes all the IEC timers (hundreds of), and the FB itself has all the block calling functions (such as call SFB4 as multiple instance call), the way to active the timers is to passby a bit which connected to "IN".
And I have some FCs which include some logic to active timer by
send out high level of the bit which connected to "IN".
I think there is no problem when the current FC (is actived I can access timers' ACC value. The question is, after execution of current FC and go to next FC, can I still access that specific timer's ACC value?
For example:
I have FB1 called "All timers", and instance DB for FB1 is DB1 called "All_Timers_DB", inside FB1 I have timers from TON_1 to TON_100.
Timer Called this way:
...
CALL #TON_1
IN:=DB100.DBX1.1
PT:=T#2H
Q :=DB100.DBX1.2
ET:=DB100.DBD14
...
And I also have FC1 to FC10, each of them has 10 timers.
Timer called like this:
...
A DB101.DBX0.1
= DB100.DBX1.1
...
Does it work?
when the program execute to FC1, the timer should be actived by passing the bit status. But once the program exectuing FC2, is that timer still alive? so it's still updating the "DB100.DBD14"? or it's only update DB1.TON_1.ET?
Thanks.
And I have some FCs which include some logic to active timer by
send out high level of the bit which connected to "IN".
I think there is no problem when the current FC (is actived I can access timers' ACC value. The question is, after execution of current FC and go to next FC, can I still access that specific timer's ACC value?
For example:
I have FB1 called "All timers", and instance DB for FB1 is DB1 called "All_Timers_DB", inside FB1 I have timers from TON_1 to TON_100.
Timer Called this way:
...
CALL #TON_1
IN:=DB100.DBX1.1
PT:=T#2H
Q :=DB100.DBX1.2
ET:=DB100.DBD14
...
And I also have FC1 to FC10, each of them has 10 timers.
Timer called like this:
...
A DB101.DBX0.1
= DB100.DBX1.1
...
Does it work?
when the program execute to FC1, the timer should be actived by passing the bit status. But once the program exectuing FC2, is that timer still alive? so it's still updating the "DB100.DBD14"? or it's only update DB1.TON_1.ET?
Thanks.