Customize Code Window



Each macro in the list has a set of properties which detail a few key features.


InBuilt - Details if the macro is from the original component code file or is it a user generated component macro.

Private - Details if the macro can be called from Flowcode or if it is hidden.

Customized - Details if the macro has been customized by the user.


New Macro

Allows new component macros to be created for that component.

This could be used to combine multiple component macros into one macro call or to provide extra functionality to the component.

See Creating a New Macro


Edit Details

Used to edit the details of any user created component macros.

See Editing and Deleting Macros


Edit Code

Brings up a syntax highlighted window containing the current component macro code.

See Edit Code Window


Delete Macro

Used to delete a user created component macro.

See Editing and Deleting Macros


Import

Loads a customized component macro from an external file allowing for customized components to be used in multiple Flowcode programs.


Export

Saves the selected customized component macro into an external file allowing for customized components to be used in multiple Flowcode programs.


Each component has three sections of code additional to the main functions that allows code specific to that component to be placed into a number of places in the main Flowcode C file.


[Defines] - Placed at the top of the C code file and used for defining parameters used in the main functions.


[Initialization] - Placed at the start of the Main function before any Flowcode icons are called and used for initialization purposes.


[Interrupt] - Placed in the main interrupt function allowing for specific interrupts to be trapped and serviced.