Inline and external routines

FactoryTalk Design Studio creates routines as external by default. You can specify routines as inline, external within the same file, or external in another file.
To define an add-on instruction as a single file, you must specify the routines as inline.
Use this structure to declare an inline routine:
Routine [name] ( <parameters> ) { <content> }
Use this structure to declare an external routine:
Forward declare:
extern routine logic(<parameters>);
Implementation:
routine [routine type] [routine name].logic(<parameters) { <content> }
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.