Recommendations on the naming of identifiers, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 252

Advertising
background image

L-force | PLC Designer

Editors in PLC Designer

250

DMS 3.2 EN 02/2011 TD29



7.2.3

Recommendations on the naming of identifiers

Identifiers are defined at the declaration of variables (Variable names), user-defined
data types and at the creation of POUs (functions, function blocks, programs) and
visualizations. You might follow the following recommendations concerning the
naming of identifiers in order to make it as unique as possible.

Variable names

The naming of variables in applications and libraries as far as possible should follow
the Hungarian notation:

• For each variable a meaningful, short description should be found, the base name.

The first letter of each word of a base name should be a capital letter, the others
should be small ones (Example: FileSize). If needed additionally an translation file
for other languages can be created.

• Before the base name, corresponding to the data type of the variable, prefix(es)

are added in small letters.

Advertising