uptown47
Lifetime Supporting Member
Hi all,
I'm just writing some code that uses quite a lot of nested FB's. The reason being that I want to make the code with a very simple interface so that the electrical staff can just drop it in the software, provide some information and then it just does it's stuff.
I've found that it is quite dramatically affecting scan time (adding about 70ms to the scan). I'm using an old 313C to test with and the software will be going in a 315 but I would still like to streamline as much as possible.
The software is using nested FB's so a 'kernal' FB calls lots of other FB's which in turn call other FB's in order to get the job done. It was quite a complicated project so I split it like that to make it easier for me to develop. I made all the 'called' FB's instances of their caller FB so that the electricians only have to call one FB with one Instance DB to make the whole system work.
My question is: Does nesting FB's like this add anything significant to the scan time (i.e. rather than just either having all the code in one or two really long FB's OR calling lots of FB's individually and providing each one with its own instance DB) ??
Thanks for any help you can give me
Cheers
;-)
I'm just writing some code that uses quite a lot of nested FB's. The reason being that I want to make the code with a very simple interface so that the electrical staff can just drop it in the software, provide some information and then it just does it's stuff.
I've found that it is quite dramatically affecting scan time (adding about 70ms to the scan). I'm using an old 313C to test with and the software will be going in a 315 but I would still like to streamline as much as possible.
The software is using nested FB's so a 'kernal' FB calls lots of other FB's which in turn call other FB's in order to get the job done. It was quite a complicated project so I split it like that to make it easier for me to develop. I made all the 'called' FB's instances of their caller FB so that the electricians only have to call one FB with one Instance DB to make the whole system work.
My question is: Does nesting FB's like this add anything significant to the scan time (i.e. rather than just either having all the code in one or two really long FB's OR calling lots of FB's individually and providing each one with its own instance DB) ??
Thanks for any help you can give me
Cheers
;-)