As a .NET based platform, the NA uses .NET 32 bit data types, these are different to 16 bit IEC based controllers used elsewhere on the machine. This allows for flexibility offered by using a .NET environment and language especially with a graphical user interface while allowing the real time IEC based controllers to continue using their data types and programming methods that are well suited to their tasks.
The correct NA data types are automatically chosen when mapping to a variable on an IEC device (a PLC or Machine Controller) and conversion between the types will happen automatically. Sysmac Studio will even assign a suitable NA Variable name when mapping a controller variable onto the NA.
In addition, this mapping process ensures that only variables you are interested in on the HMI have their values updated over your busy network during runtime.
This article shows which data types are available for the NA Series and how these are mapped to IEC data types on the controllers. Note the NA also supports arrays of all of these types.
NX/NJ Data Type | Alignment | NA Data type |
---|---|---|
INT | 2 Bytes | Short |
DINT | 4 Bytes | Integer |
LINT | 8 Bytes | Long |
UINT WORD |
2 Bytes | UShort*1 |
UDINT DWORD |
4 Bytes | UInteger*1 |
ULINT LWORD |
8 Bytes | ULong*1 |
REAL | 4 Bytes | Single |
LREAL | 8 Bytes | Double |
N/A | N/A | Decimal |
BOOL | 2 Bytes | Boolean |
STRING | 1 Byte (per character) | String |
SINT | 1 Byte | SByte |
USINT BYTE |
1 Byte | Byte*1 |
TIME | 8 Bytes | TimeSpan*2 |
DATE DATE_AND_TIME TIME_OF_DAY |
8 Bytes | DateTime |
Info 1
VB.Net does not have a BCD data type. However unsigned BCD data types values can be represented by unsigned integer data types
Info 2
TIME has no direct equivalent data type and in VB.Net is represented by the TimeSpan structure. TimeSpans cannot be used in numeric inputs/displays,.