Compatible with all Propeller board types (except Scribbler Robot)
Functions and Memory: Creating and reusing functions in your main program can save on program memory. However, calling functions with the new processor block sets aside 128 bytes of “stack space” each time – that is a portion of the Propeller microcontroller’s memory – used to execute the function. If your function running in a new processor is exceptionally large with many variables and computations, it might exceed this stack space and give unexpected results.
The define function block is used to build a function that can be reused.
Once you have created a function, a run function will be created for it and will appear in the Functions menu.
The run function block runs the code inside of a define function block by the same name. This is may be referred to as “calling a function” or “making a function call.” You must first create and name a function with a define function block to generate a run function block.
You can use a run function block in two ways.