L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 963

L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
961
(1) 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).
Before the base name, corresponding to the data type of the variable, prefix(es) are
added in small letters.
See in the table some information and the recommended prefixes on the particular
data types:
Data type
lower limit
upper limit
Information
content
Prefix Comment
BOOL
FALSE
TRUE
1 Bit
x
*
b
reserved
BYTE
8 Bit
by
Bit string, not for
arithm.
operations
WORD
16 Bit
w
Bit string, not for
arithm.
operations
DWORD
32 Bit
dw
Bit string, not for
arithm.
operations
LWORD
64 Bit
lw
not for arithm.
operations
SINT
-128
127
8 Bit
si
USINT
0
255
8 Bit
usi
INT
-32.768
32.767
16 Bit
i
UINT
0
65.535
16 Bit
ui
DINT
-2.147.483.648
2.147.483.647
32 Bit
di
UDINT
0
4.294.967.295
32 Bit
udi
LINT
-2
63
2
63
- 1
64 Bit
li
ULINT
0
2
64
- 1
64 Bit
uli
REAL
32 Bit
r
LREAL
64 Bit
lr
STRING
s