User Manual

Ta g s
Format Datatype Range
DEFAULT Treated asINT16
Bit BIT 0and1
Bit BOOL Valuescanbe “false”(0)or“true”(1)
(1)
Signed16-bit INT16 -32,768+32,767
Unsigned16-bit UINT16 0 +65,535
Signed32-bit INT32 -2,147,483,648+2,147,483,647
(2)
Unsigned32-bit UINT32 0–+4,294,967,295
(2)
Floatwith
exponent,
64-bit
DOUBLE 1.7×10
308(1)
Floatwith
exponent,
32-bit
FLOAT ±3.4×10
38(1)
7×Signed 16-bit DATETIME AnAnalogNumericobjectcanpresentthetime
format
(1)
Syntax
(3)
: <yyyy-MM-ddhh:mm:ss>7consecutive
registersareusedtostoreatime:
Dx,seconds,059
Dx+1,minutes,059
Dx+2,hours,023
Dx+3,day,131
Dx+4,month,112
Dx+5,year,100–9999
Dx+6,weekday,1–7
String STRING Storingcharacterstringsintags. Forthisdatatype,
sizecanbeselected.
(1)
Controllerrepresentationforthistypeisdependentonthedriver software.
(2)
Regardingresolutionofvaluesin32-bitformat: bothiXDeveloperandtheoperator
panelcanhandleuptosixdecimaldigitsofan integer32-bitvalue. Remainingdigits
willbetruncatedorchangedintozeros.
(3)
yyyy=year,MM=month, dd=date,hh=hour,mm =minute,ss=second.
For use in script code, the following table shows the type representation in C#.
This is used when there is a need to do a type casting, for example in calculations
that are u sing overloaded operators.
C#type Datatype Descriptio
n
–DEFAULTTreated
asINT16
uint BIT C#do
esnothave a“bit”t ype. Inthecontrollerthis
isab
it.
b
ool
B
OOL
C
#booltypethatcanhavethevalues“false” (0)
a
nd“true”(1)
int INT16 16bit,-32,768+32,767
uint UINT16 16bit,0–+65,535
BeijerElectronics, MAEN831P
129