Data types

When creating a tag you have to specify its properties. Data type are specific to JMobile Studio, memory type are specific to the selected protocol. Choose the value according to the internal representation you need for the selected controller address.

Note: arrays type use the same data type followed by "[ ]" (i.e.: boolean [ ])

On some PLCs (e.g. CODESYS) arrays start from index 1 while on JMobile Studio the arrays start from index 0. This means that arrayTAG[1] on PLC is the arrayTAG[0] on JMobile Studio.

Data Type Memory Space Limits
boolean 1-bit data 0 ... 1
byte 8-bit data -128 ... 127
short 16-bit data -32768 ... 32767
int 32-bit data -2.1e9 ... 2.1e9
int64 64-bit data -9.2e18 ... 9.2e18
unsignedByte 8-bit data 0 ... 255
unsignedShort 16-bit data 0 ... 65535
unsignedInt 32-bit data 0 ... 4.2e9
uint64 64-bit data 0 ... 1.8e19
float IEEE single-precision 32-bit floating point type 1.17e-38 ... 3.4e38
double IEEE double-precision 64-bit floating point type 2.2e-308 ... 1.79e308
string Array of elements containing character code defined by selected encoding

System Time

Format of System Time inside the HMI Device is the Unix time (also known as Epoch time). It is the number of seconds that have elapsed since the Unix epoch, that is the time 00:00:00 UTC on 1 January 1970.

Example:

  Tag Value System Time ISO 8601
  0 01/01/1970 – 01:00:00 1970-01-01T00:00:00+00:00
  1 01/01/1970 – 01:00:01 1970-01-01T00:00:01+00:00
  60 01/01/1970 – 01:01:00 1970-01-01T00:01:00+00:00