Multi Instance FB's

JOLTRON

Lifetime Supporting Member
Join Date
Aug 2006
Location
MI
Posts
692
I just started playing around with Multi instance FB's.

And I don't find the help file very helpful.

Quick question.

I have 3 conveyors, used multiple instance FB's.

Now when I right click and goto monitor is that cycling thru all 3 conveyors?

And if I goto monotiro with called path is that just displaying the 1 specific instance I am worried about?

Thanks,
 
Hi
Has each FB got its own DB? Or are three 3 FB's in turn buried inside a master FB

Generally people would have a dedicated DB for each

Best thing to do is create a VAT for each conveyor
 
I had that problem yesterday

I just started playing around with Multi instance FB's.

And I don't find the help file very helpful.

Quick question.

I have 3 conveyors, used multiple instance FB's.

Now when I right click and goto monitor is that cycling thru all 3 conveyors?

And if I goto monotiro with called path is that just displaying the 1 specific instance I am worried about?

Thanks,
I had two multi instance FB talking to motion controllers. The only difference was the Profibus Addr ( LADDR ). I found that I had to tempporarily disable the first FB by putting an open coil in front of the first FB if I wanted to see the second FB updates.

Hopefully someone else has a better idea but I run into this problem even when doing assembly or C programming. If I have 8 instances of axes and I want to debug the 6th instance then I usually put a check at the top of the code to immediately return if the current instance is the one I am interested in. Just remember to remove the debug code.
 
cjd, all 3 datablocks are contained in the master FB's stat area.

Peter, thats what I figured I would have to do. I just thought I was on to something when I found the "Monitor with called path" option. It seems to monitor the instance that I'm interested in but will have to play with it some more when I get back to my other office.

Thanks,
 
If your call structure is FB1->FB2, FB3->FB2, FB4->FB2 then you can select debug mode and then use call environment to specify which instance to monitor.

If your call structure is FB1->FB2,FB2,FB2 then the S7 Connection isn't clever enough to tell the difference between the calls to FB2. In this case, the only way to confidently monitor FB2 is to make sure that only one instance is being executed. For diagnostic purposes I sometimes copy a block and then change one of the calls to the new block so that it can be monitored.

Nick
 

Similar Topics

Why does my deconstruction of the input pointer only work with its own instance DB not inside the multi instance FB...See .doc The pointer at the...
Replies
8
Views
2,340
Good day everyone, I have been making some Factorytalk View SE projects and also I have been using parameterized instances which is 1...
Replies
2
Views
2,808
Hi all, I'm struggling to use iec timers in the static area of an fb. LD gave this example for step 7 v5.x which i've used many times with no...
Replies
10
Views
5,279
Hello dear engineers, i made a function block to control 3 reservoirs with different colors for a virtual blinding application, the idea was to...
Replies
12
Views
2,988
Greetings, I'm trying to do this, in SCL: TAR2 AD DW#16#FFFFFF L P##Input_ANY +D LAR1 I just can't seem to find a similar function for...
Replies
5
Views
4,703
Back
Top Bottom