2/18/2017 7:51 AM | |
Joined: 7/6/2008 Last visit: 3/28/2024 Posts: 11 Rating: (0) |
Dear Experts, I'm developing my project using CFC, for this project I need to create my own functions with inputs and outputs that I will use repeatedly in the project. My question is which choice is efficient in terms of perfomance, to create the functions as FC or as FB. It's not a must for some of the blocks that I will create to have instance DBs that's why I can create them as FC. but once compiled to stl which way is efficient. If I use create them as FB then an instance DB is created for each call insert, which looks like waist of memory resources. On the other hand, when I create as FC and look to the compiled stl version I can see that all input variables are transferred to local memory variables and then are inserted as actual variables of the FC. That looks like a waist of performance. In FB case it seems that actual variables are transferred to the fields of the instance DB just before the UC call of the FB and no insertion of actual variables, it seems more efficient. I hope I could make my question clear. Prompting for your comments
Attachmentcodes.pdf (172 Downloads) |
Follow us on