The Xentara Beckhoff ADS Driver v1.3
User Manual
JSON Format for Variables

A JSON object describing a Variable has the following syntax:

{
"@Skill.ADS.Variable": {
"name": "variable",
"UUID": "5bb684b0-6f3d-42ff-b91c-9772951d4aeea",
"ACL": { ... },
"symbolName": "MAIN.variable",
"dataType": "STRING",
"length": 20,
"poll": "Device.Poll"
}
}

Object Members
nameA string value containing the name of the Variable. The name is used to construct the Variable’s primary key.
UUIDA string value containing the unique UUID of the Variable.
ACLAn optional JSON object containing the element ACL of the Variable. The format of the object is described under JSON Format for ACLs in the Xentara user manual.
symbolNameA string value containing the symbol name of the variable in the target ADS device.
dataTypeA string value containing the data type of the variable in the target ADS device.
lengthAn integer value containing the length of the string if the dataType is “STRING” or “WSTRING”. This member is not defined for other data types.
pollA string value containing the primary key of the poll which the variable belongs to.

Supported data types

Data Type Description
1 BOOL Boolean value (true or false)
2 BYTE unsigned 8-bit integer
3 WORD unsigned 16-bit integer
4 DWORD unsigned 32-bit integer
5 LWORD unsigned 64-bit integer
6 SINT signed 8-bit integer
7 USINT unsigned 8-bit integer
8 INT signed 16-bit integer
9 UINT unsigned 16-bit integer
10 DINT signed 32-bit integer
11 UDINT unsigned 32-bit integer
12 LINT signed 64-bit integer
13 ULINT unsigned 64-bit integer
14 REAL 32-bit IEEE 754 floating point value
15 LREAL 64-bit IEEE 754 floating point value
16 STRING A string of 8-Bit characters
17 WSTRING A string of 16-Bit characters