10 iec 61131-3 data types, 1 standard data types, 1 bool – Lenze DDS v2.3 User Manual
Page 257: 2 integer data types, 3 real and lreal, Bool, Integer data types, Real and lreal, Drive plc developer studio

Drive PLC Developer Studio
IEC 61131-3 Data types
10-1
l
DDS EN 2.3
10
IEC 61131-3 data types
10.1
Standard data types
Standard or user-defined data types may be used for programming. Each identifier is assigned to
a data type to define how much memory is to be reserved and which values correspond to the
memory contents.
Standard data types are:
•
BOOL
•
Integer data types
(BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT)
•
REAL
•
STRING
•
Time data types
(TIME, TIME_OF_DAY, DATE, DATE_AND_TIME)
10.1.1
BOOL
Variables of type BOOL can be TRUE or FALSE and are subject to an 8-bit memory reservation.
10.1.2
Integer data types
Integer data types include BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT.
Different data types cover different numerical ranges. The following range limits apply to integer data
types:
Type
Lower limit
Upper limit
Memory
Byte
0
255
8 bits
Word
0
65535
16 bits
DWORD
0
4294967295
32 bits
SINT
-128
127
8 bits
USINT
0
255
8 bits
INT
-32768
32767
16 bits
UINT
0
65535
16 bits
DINT
-2147483648
2147483647
32 bits
UDINT
0
4294967295
32 bits
As a result, information may be lost when converting higher-order types to lower-order types.
10.1.3
REAL and LREAL
REAL
and LREAL are so-called floating-point types required for the use of rational numbers. The
reserved memory capacity amounts to 32 bits or 64 bits.
Note!
LREAL
is not supported by the Lenze target systems.
Process REAL data types only in the PLC_PRG context. System errors may occur.
Show/Hide Bookmarks