5/5/2012 12:43 PM | |
Joined: 12/1/2009 Last visit: 8/17/2020 Posts: 662 Rating:
|
Dear Eastern , your exampledoes only work, if the two blocks are next to each other. What if an interrupt OB strikes in between? Regards. |
Give us your feedback and show us your respect! |
|
5/5/2012 1:01 PM | |
Joined: 10/7/2005 Last visit: 2/26/2021 Posts: 2864 Rating:
|
Doesn't matter, each priority class OB maintains its own local data stack, so the interrupt will kick in, do its thing and maviizicode will continue to work as if nothing happened. Step 7 itself uses V memory (TEMP variables of the calling block) every time you usefor example a complex data type as an Input for an FC. |
Cheers |
|
This contribution was helpful to
2 thankful Users |
5/5/2012 1:07 PM | |
Joined: 12/1/2009 Last visit: 8/17/2020 Posts: 662 Rating:
|
Mensch fritz , why did you answered for him? Anyway, initiallythe software structure was and is still not revealed to us. So, if the two blocks are not next to each other, the suggested solution will not work. But the function in general was very nicely explained to us. Regards. |
Give us your feedback and show us your respect! |
|
5/5/2012 2:42 PM | |
Joined: 4/30/2007 Last visit: 10/16/2020 Posts: 229 Rating:
|
Butif inside the interruption OB it is calling another FC or FB? Will still work? |
5/5/2012 2:56 PM | |
Joined: 10/7/2005 Last visit: 2/26/2021 Posts: 2864 Rating:
|
It sure will dear Marciano, since - as mentionedbefore - each priority class (i.e. each OB)has its own local data stack. When the interrupt is finished, the Block that was interrupted continues as if nothing happened (its local data and local dataof the Block from which it was called (aka V memory) are all still there). |
Cheers |
|
This contribution was helpful to
3 thankful Users |
Follow us on