User Tools

Site Tools


kb:production:plc-datatypes

Table of Contents

13 PLC Datatypes

HSE-internal: See also HAGEcom: Data Types

See also S7 Comm: Variable Types

BIT

Bits 1
Sign
Range TRUE/FALSE

BYTE

Bits 8
Sign unsigned
Range 0..255

CHAR

Bits 8
Sign signed
Range -128..127

WORD

Bits 16
Sign unsigned
Range 0..65536

INT

Bits 16
Sign signed
Range -32768..32767

DWORD

Bits 32
Sign unsigned
Range 0..4228250625

DINT

Bits 32
Sign signed
Range -2147483648..2147483647

REAL

Bits 32
Sign floating point
Range Upper limit +/-3.402823e+38
Lower limit +/-1.175495e-38

STRING

Strings are prepended by two bytes in PLC memory:

Byte Description
0 Maximum string length (reserved memory in DB)
1 Length of actual content
2..n String contents (filled up with 0x00 characters)
kb/production/plc-datatypes.txt · Last modified: 2025/06/11 12:45 by joerg.hampel