You are here: Technical References > Remote Access to PLC Variables > Supported Data Types

Supported Data Types

Datatypes Supported Format
Read Write
BOOL 0/1 0/1 or TRUE/FALSE
SINT Decimal Decimal
USINT Decimal Decimal
BYTE Decimal Decimal
INT Decimal Decimal
UINT Decimal Decimal
WORD Decimal Decimal
DINT Decimal Decimal
UDINT Decimal Decimal
DWORD Decimal Decimal
LINT Decimal Decimal
ULINT Decimal Decimal
LWORD Decimal Decimal
REAL Decimal/Exponential Decimal/Exponential
LREAL Decimal/Exponential Decimal/Exponential
TIME Decimal ( in milliseconds ) Decimal ( in milliseconds )
STRING String enclosed in single quotes (In JSON read, single quotes inside string is not supported) String enclosed in single quotes (single quotes inside string is not supported)

Requesting elements in complex datatypes:

Array element specification:

<array variable name>[<element index>]

Example:

GET kas/plcvariables?variables=bLedStatus[2]

Structure member specification:

<structure variable name>.<element name>

Example:

GET kas/plcvariables?variables=StructInstance.MemberVariable

Program local variable specification:

<program name>.<variable name>

Example:

GET kas/plcvariables?variables=UntitledST.LocalVariable

If a program name is not specified, the variable is considered to be a global variable.

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™