This content has moved to a new space on the Internet.

Go to new location


Supported data types

The following table illustrates how the IEC 61131-3 data types are linked to the .Net Framework and C#.

IEC 61131-3 data type .Net Framework C# data type Attribute**
variables of data types
that are marked with a “+”
must have the optional “DataType”
attribute for unique assignment
BOOL System.Boolean bool -
SINT System.SByte sbyte -
INT System.Int16 short -
DINT System.Int32 int -
LINT System.Int64 long -
USINT System.Byte byte -
UINT System.UInt16 ushort -
UDINT System.UInt32 uint -
ULINT System.UInt64 ulong -
REAL System.Single float -
LREAL System.Double double -
TIME System.UInt32 uint +
LTIME System.Int64 long +
LDATE System.Int64 long +
LTOD System.Int64 long +
LDT System.Int64 long +
BYTE System.Byte byte +
WORD System.UInt16 ushort +
DWORD System.UInt32 uint +
LWORD System.UInt64 ulong +
STRING System.Iec61131Lib.IecStringEx   -
ANY System.Iec61131Lib.Any   +
ANY_MAGNITUDE System.Iec61131Lib.Any   +
ANY_NUM System.Iec61131Lib.Any   +
ANY_INT System.Iec61131Lib.Any   +
ANY_SIGNED System.Iec61131Lib.Any   +
ANY_UNSIGNED System.Iec61131Lib.Any   +
ANY_REAL System.Iec61131Lib.Any   +
ANY_BIT System.Iec61131Lib.Any   +
ANY_ELEMENTARY System.Iec61131Lib.Any   +

* Variables of data types that are marked with a “+” in the Attribute column must have the optional “DataType” attribute for unique assignment.





 • Published/reviewed: 2020-08-07 • Revision 35 •