Data Type Comparison

Requirements

System Manager

IEC61131-3

Correspondent .NET type

C# Keyword

Visual Basic Keyword

Remark

BIT

BOOL

System.Boolean

bool

Boolean

For info about specific PLC data type, see: TwinCAT PLC Control - Data Types

BIT8

BOOL

System.Boolean

bool

Boolean

 

BITARR8

BYTE

System.Byte

byte

Byte

 

BITARR16

WORD

System.UInt16

ushort

-

 

BITARR32

DWORD

System.UInt32

uint

-

 

INT8

SINT

System.SByte

sbyte

-

 

INT16

INT

System.Int16

short

Short

 

INT32

DINT

System.Int32

int

Integer

 

INT64

LINT

System.Int64

long

Long

Integer type with size of 8 bytes. Currently not supported by TwinCAT PLC.

UINT8

USINT

System.Byte

byte

Byte

 

UINT16

UINT

System.UInt16

ushort

-

 

UINT32

UDINT

System.UInt32

uint

-

 

UINT64

ULINT

System.UInt64

ulong

-

Unsigned integer type with size of 8 bytes. Currently not supported by TwinCAT PLC.

FLOAT

REAL

System.Single

float

Single

 

DOUBLE

LREAL

System.Double

double

Double