2 conventions for lenze variable identifiers, 1 system block designation, System block designation – Lenze DDS v2.0 User Manual
Page 22

Introduction to IEC 61131-3 programming
Appendix
20
L
DDS-IEC61131 EN 2.0
6.2
Conventions for Lenze variable identifiers
This chapter describes the conventions used for the variable identifiers of Lenze system blocks,
function blocks and functions. The conventions ensure uniform and universal labelling and make
reading the PLC program easier.
Tip!
The conventions used by Lenze are based on the ” Hungarian Notation” . This ensures that the most
significant characteristics of a variable (e.g. the data type) can be instantly recognized from its
identifier.
An identifier consists of
•
a system block designation (only for identifiers of system block variables)
•
a variable type entry (optional)
•
a data type entry
•
an identifier (the ” proper” name of the variable)
•
a signal type entry (optional)
6.2.1
System block designation
(only for identifiers of system block variables)
The inputs/outputs of a system block are directly accessed via the corresponding I/O variables.
To indicate to which system block the I/O variables are assigned, the name of the corresponding
system block followed by an underscore is written before the identifier.
Examples of system block designations:
AIN_
CAN1_
DIGIN_
Show/Hide Bookmarks