Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Automation Systems > HMI > NA
Minimize Text   Default    Enlarge Text
 

Print
E-mail

Introduction To NA Data Types And Variables


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.

 

NJ501 (and Sysmac Studio variables)

     

Data Types

Alignment

HMI Data Types (VB.Net)

CJ2 Data Type

Comment

INT

2 bytes

Short

INT

 

DINT

4 bytes

Integer

DINT

 

LINT

8 bytes

Long

LINT

 

UINT

2 bytes

UShort

UINT

 

WORD

WORD

See Note 1

UINT-BCD

UDINT

4 bytes

UInteger

UDINT

 

DWORD

DWORD

See Note 1

UDINT-BCD

ULINT

8 bytes

Ulong

ULINT

 

LWORD

LWORD

See Note 1

ULINT-BCD

REAL

4 bytes

Single

REAL

 

LREAL

8 bytes

Double

LREAL

 

No equivalent data type

 

Decimal

No equivalent data type

 

BOOL

2 bytes

Boolean

BOOL

 

STRING

1 byte

String

STRING

 

No equivalent data type

 

Char

No equivalent data type

 

SINT

1 byte

SByte

No equivalent data type

 

USINT

1 byte

Byte

No equivalent data type

 

BYTE

1 byte

TIME

8 bytes

System.TimeSpan

Not supported

See Note 3

DATE

8 bytes

DateTime

Not supported

 

DATE_AND_TIME

Not supported

 

TIME_OF_DAY

Not supported

 

   

Not supported

TIMER

See Note 2

   

Not supported

COUNTER

   

Not supported

CHANNEL

 
   

Not supported

NUMBER

Note 1: VB.Net does not have a BCD data type. However unsigned BCD data types values can be represented by unsigned integer data types


Note 2: CJ device Timer and Counter values, (PV) cannot be represented as published symbols, (unsupported for these data types), therefore they cannot be addressed using symbolic addressing- However they can be accessed by using physical memory addressing with the appropriate data type. (Unsigned BCD or Unsigned Binary data type dependent upon configuration in device).


Note 3: TIME has no direct equivalent data type and in VB.Net is represented by the TimeSpan structure

For version 1.0 mapping an NJ structured variable will automatically create an NA structure to match the external device. This structured data can then be used within the NA.

See Also:

Introduction to the NA series HMI




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2014-06-30
Modified 2015-04-08
Views 31399

 

You are not logged in.