uptown47
Lifetime Supporting Member
Hi,
I'm doing some experimentation to try and expand my knowledge of Step 7 (specifically multi-instance stuff).
I've created an FB with two SFB 4's (TON) in the STAT area.
They are called:
firstTimer
secondTimer
I've then created another FB and put the first FB in the STAT area of that under the name: myTimers
From this FB I can access variables called:
#myTimers.firstTimer.IN
#myTimers.firstTimer.PT
etc etc
But I can't seem to get the timers to work. Is this possible to have a kind of 'nested' multiple instance???
It might simply be a problem with my code. The "myTimers" block in my Multiple Instances folder doesn't have any inputs or outputs, it's just a block.
My code in the main FB looks like this:
As I said, maybe it's just a problem with my code or maybe I'm missing something else.
Can anyone clear this up for me?
Many thanks
I'm doing some experimentation to try and expand my knowledge of Step 7 (specifically multi-instance stuff).
I've created an FB with two SFB 4's (TON) in the STAT area.
They are called:
firstTimer
secondTimer
I've then created another FB and put the first FB in the STAT area of that under the name: myTimers
From this FB I can access variables called:
#myTimers.firstTimer.IN
#myTimers.firstTimer.PT
etc etc
But I can't seem to get the timers to work. Is this possible to have a kind of 'nested' multiple instance???
It might simply be a problem with my code. The "myTimers" block in my Multiple Instances folder doesn't have any inputs or outputs, it's just a block.
My code in the main FB looks like this:
Code:
L T#5S
T #myTimers.firstTimer.PT
A I 0.0
= #myTimers.firstTimer.IN
L #myTimers.firstTimer.ET
T MD 140
A #myTimers.firstTimer.Q
= Q 7.0
As I said, maybe it's just a problem with my code or maybe I'm missing something else.
Can anyone clear this up for me?
Many thanks