mico207 said:that means the FB & FC once they were called & their outputs status have changed. they will always keep their current state except if they were called again and the state have been changed from within the same FB or FC.
YES/NO ????
mico207 said:SUM UP:
------------
Hello, I’d like to put an objective sum up so everyone will benefit easily from this thread.
Properties / Difference – FC vs FB, DB…
- FC: variables are passed by REF. (Pointers) which means any change of the value the same variable along the program will have an effect on the FC functionality.
It would be best to say that FCs don't maintain a state or are stateless.[*]FC: which also leads to – HAVE NO MEMORY – as it refers to variables whatever their value
- FB: where as FB is similar in nature but with additional options that give it its power.
- FB: variables are passed by VALUE, which means whatever changes that happen to that variable in your program the FB will not sense it.
Can you pass a variable number of parameters? I don't think so.[*]FB: ex. same as what Mr. L D said: if u made and FB to add 2 numbers & return the sum (selected mathematical operation for simplicity) and u call it 2 successive time. 1st u passed 5 , 4 then the result is 9. 2nd time u passed only 1 value 6 (in the place of the 1st input) then the result will be 10.
[*]FB: also have the amazing STAT variables which are used as memory. Example the M+ button that u find on ur calculator.
[*]FB: DB, it is just an amazing concept – the DBs they have the inputs, outputs, In/Out, Stat variables stored in it and assigned to the FB.
Think about my questions above.PLEASE CORRECT ME IF ANY INFORMATION IS WRONG, NOT QUITE CLEAR OR NOT COMPLETE.