Which side of the pond?
You have to forgive me if I'm not specific, I don't have access to S7 anymore, on this side of the pond I'm stuck with ControlLogix (trying hard to like it).
I did not mean to imply that your advice was not valuable, (it is very much so) ,just that frequently veteran users make reference to methods which seem like a small pile of words. And while they are decidedly correct in grammer and usage, seem to be completely foreign.
With regard to the path to the FC, it can be done, someone else may have to point to the correct drop down and selection.
There are two methods to isolate your multiple called blocks, one is to state which DB you want, this can be your IDB and makes FB's easier to monitor.
I see no place to specify which DB I want. I call an FC and it has no DB to specify. I am using the FC inside a FB so if any DB is to used I would think it would be the DB of the FB.
In the case of the IDB, I thought it was the default DB for the associated FB?
I suspect your advice is tailored for STL and may not be the same when using LAD.
The other is to specify a path (map), like OB1-FC3-FC5, then you will see only the blocks that are called from that path, this is where FC's can be isolated, but if the FC is called more than once from that exact path, then its not a great help.
I suspect this is useful in STL but may not apply to LAD.
I am opening OB1 then FB1 then FC1 but I don't see any other way to get there.
In my program , I have a FB.
FB1 lets call it. FB1 is called in OB1.
I have a FC. Lets use FC1. FC1 counts time and gives a pulse when the time is counted and incriments a counter.
Inside FB1, FC1 is called 5 times , each time using a different timer and counter and a different time value. Each counter is reset as needed.
When looking inside the third FC1 , I see data that is from the previous FCs.
This is all in LAD.
This is just one example of this , I have seen it over and over through out the program.
I have stopped trying to see what is happening in FCs even though it looks as if it should work.(and would be nice if it did.)
I just looked in the DB for FB1. Only a couple of STATs are there and these numbers are the current count of the counters.
Is it true then that all else is being done in an undefined temp area?
I am having so many AH HA moments lately I can't keep up.
So , if this is true then what we see on the screen are ghosts of data past?
As long as it works and I understand that it wont display the correct values, I wont get hung up on "why".
I managed electron theory OK , I use the same perspective with S7.
Sometimes the level of detail required to understand the "why" of S7 is just so involved I lose track of what the question was.
The point of this last post is just to understand FCs a little better and the online viewing of variables.
Thanks again Peter.