Number constants, Real/lreal constants, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 508

L-force | PLC Designer
Operands in PLC Designer
506
DMS 3.2 EN 02/2011 TD29
10.1.6
Number Constants
Number values can appear as binary numbers, octal numbers, decimal numbers and
hexadecimal numbers. If an integer value is not a decimal number, you must write its
base followed by the number sign (#) in front of the integer constant. The values for
the numbers 10-15 in hexadecimal numbers will be represented as always by the
letters A-F.
You may include the underscore character within the number.
Examples:
14 (decimal
number)
2#1001_0011
(dual number)
8#67 (octal
number)
16#A
(hexadecimal number)
These number values can be from the variable types BYTE, WORD, DWORD, SINT,
USINT, INT, UINT, DINT, UDINT, REAL or LREAL.
Implicit conversions from "larger" to "smaller" variable types are not permitted. This
means that a DINT variable cannot simply be used as an INT variable. You must use
the type conversion.
10.1.7
REAL/LREAL Constants
REAL and LREAL constants can be given as decimal fractions and represented
exponentially. Use the standard American format with the decimal point to do this.
Example:
7.4 instead of 7,4
1.64e+009 instead of 1,64e+009