11 data types in plc designer, Standard data types, Data types – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 518: Bool, Integer data types, L-force | plc designer

Advertising
background image

L-force | PLC Designer

Data types in PLC Designer

516

DMS 3.2 EN 02/2011 TD29



11

Data types in PLC Designer

11.1

Standard data types

11.1.1

Data types

You can use standard data types and user-defined data types when programming.
Each identifier is assigned to a data type which dictates how much memory space will
be reserved and what type of values it stores.

11.1.2

BOOL

BOOL type variables may be given the values TRUE and FALSE. 8 bits of memory space
will be reserved.

see also chapter Operands in CoDeSys, BOOL constants

11.1.3

Integer Data Types

BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, and UDINT are all integer data
types

Each of the different number types covers a different range of values. The following
range limitations apply to the integer data types:

Type

Lower limit

Upper limit

Memory space

BYTE 0

255 8

Bit

WORD

0

65535

16 Bit

DWORD 0

4294967295

32

Bit

SINT:

-128

127

8 Bit

USINT: 0

255

8

Bit

INT:

-32768

32767

16 Bit

UINT: 0

65535 16

Bit

DINT:

-2147483648

2147483647

32 Bit

UDINT: 0

4294967295

32

Bit

As a result when larger types are converted to smaller types, information may be lost.

see also chapter Operands in CoDeSys, Number constants

Advertising