Advanced: Creating Customized OSIs : Customizing API Definitions : Customizing Code Style : Model Data Naming Style

Model Data Naming Style
 
Example Definition
Code Generated
Prefixes the name of global model data elements—those elements where the field "Its Task" is global.
It will be added just before the element model name.
When generating the declaration and extern declaration of a global user data, this API is used to add a prefix for the name of the Element.
For a Data-Item of type Integer:
Design Attribute: "Its Task" defined to be "global"
Design Attribute: "CK_itsSequence" defined to be "2"
API Definition: $RimcPre_$<CK_itsSequence>_
Generated code (glob_dat.c):
int $RimcPre_2_DI;
Model Data Postfix()
Postfixes the name of global model data elements—those elements where the field "Its Task" is global.
It will be added just after the element model name.
When generating the declaration and extern declaration of a global user data, this API is used to add a postfix for the name of the Element.
For a Data-Item of type Integer:
Design Attribute: "Its Task" defined to be "global"
Design Attribute: "CK_postFix" defined to be "post"
API Definition: _$<CK_postFix>_data
Generated code (glob_dat.c):
int DI_post_data;