Web pages
3.20 API (Application Programming Interface)
Name of the data type
Name of the data type
in the TIA Portal
in Web API
ldt
LDT
struct
Struct
iec_counter
IEC_COUNTER
iec_timer
IEC_TIMER
dtl
DTL
iec_ltimer
IEC_LTIMER
iec_scounter
IEC_SCOUNTER
iec_dcounter
IEC_DCOUNTER
iec_lcounter
IEC_LCOUNTER
iec_ucounter
IEC_UCOUNTER
iec_uscounter
IEC_USCOUNTER
iec_udcounter
IEC_UDCOUNTER
iec_ulcounter
IEC_ULCOUNTER
error_struct
ERROR_STRUCT
nref
NREF
cref
CREF
Arrays
Arrays are displayed as JSON objects. The key is a string with a numeric representation of
the index.
The following example shows the representation in the TIA Portal:
Figure 3-79
Representation in the TIA Portal
Addressing the user data
The Web API supports the following addressing formats:
● Symbolic addressing of a tag in the tag, e.g. Tag_1
● Symbolic addressing of a tag in a data block, e. g. "MyDB".Static_1
174
Representation in the Web API
JSON string with a numerical representation of an unsigned integer ba-
sed on the number 10 in a range from 0 to 18 446 744 073 709 551 615
This value represents the number of nanoseconds since 01.01.1970
midnight (12:00:00.0 am).
Structured data type whose data structure can be determined using the
PlcProgram.Browse method.
Function Manual, 11/2019, A5E03484625-AG
Web server