6/10/2009 1:45 PM | |
Joined: 10/7/2005 Last visit: 5/29/2023 Posts: 2965 Rating:
|
Dear exia I'm afraid you can NOT monitor local variables in PLCSIM (nor in a variable table for that matter). Reason being is that Local Variables (aka TEMP variables) only "exist" inside the Block whenthe blockisexecuted (they are "local" to the FC, FB or OB in which they are declared). Note further that you must program under the assumtion that the contents of the local variablesis "lost" when the Block execution finishes(i.e. local variablesdo NOT retain their values and must only be used for intermediate data storage inside the Block). Have a search for "Temp variables" or "Local variables" insde the forum and you'll find a number of threads that extensively deal with this "issue and which will help you in gaining a betterunderstanding. Last but not least, you'll get the correct actual value for the local variables displayed as and when they are used ifyou montior the execution of the Block. I hope this helps Cheers Fritz |
Cheers |
|
6/11/2009 10:54 AM | |
Posts: 2 Rating:
|
THX a lot But is there a stack or anything that monitor the execution of the FB . I want to know What is going on in REAL TIME in the FB so i can correct it . |
6/11/2009 11:52 AM | |
Joined: 11/21/2007 Last visit: 5/27/2023 Posts: 2321 Rating:
|
Dear exia The best way to observe Temp Variables is to see the FB Block status in the specific call environment. Pl look at the FAQ below for details on how to monitor a block in its specific call environment http://support.automation.siemens.com/WW/view/en/21671563 Regards Navnag |
There is no such thing as the last bug in a program |
|
Follow us on