Characteristics
The expert syntax has the following characteristics:
-
Complete JSON commands and replies.
-
Commands for individual objects and multiple objects, for example, to write multiple tags in one call.
-
Character coding is always UTF-8.
-
Cookies are available and mandatory.
Structure of a request
{
"
Message
": "<Command>",
"
Params
":
{
"<Object name>":
[
"<Param1>",
"<Param2>"
]
},
"
ClientCookie
": "<Cookie name>"
}
Structure of a response
OnSuccess
{
"
Message
": "Notify<Command>",
"
Params
":
{
"<Object name>":
[
{
"<Value1>"
},
{
"<Value2>"
}
]
},
"
ClientCookie
": "<Cookie name>"
}
OnError
{
"Message": "Error<Command>",
"ErrorCode": "<Error code>",
"ErrorDescription": "<Error description>",
"ClientCookie": "<Cookie name>"
}
Overview of the commands of the expert syntax
|
Command |
OnSuccess |
OnError |
Description |
|---|---|---|---|
|
|
|
|
Subscribes one or more tags for monitoring. |
|
|
|
|
Unsubscribes the tag or tags from the cookie from monitoring. |
|
|
|
|
Reads the value of one or more tags of the system. |
|
|
|
|
Writes the specified values to the specified tags. |
|
|
|
|
Subscribes the alarms defined over the filter, the system and the language ID for monitoring. |
|
|
|
|
Unsubscribes the alarms from the cookie from monitoring. |
|
|
|
|
Reads the alarms defined by the filter, the system and the LanguageID. |
|
|
|
|
Reads the settings configured for the general browse behavior. |
|
|
|
|
Sets the settings for the general browse behavior. |
|
|
|
|
Returns "Name", "DisplayName" and "DataType" as well as optional additional attribute values of the tags of the local system or several HMI systems communicating via runtime collaboration. |
|
|
|
|
Returns "AlarmClass", "Name" and "Area" as well as optional further attribute values of the configured alarms of an HMI system or several systems communicating via Runtime Collaboration. |
|
|
|
|
Returns the alarm classes of the local system or all systems communicating via Runtime Collaboration. |
Errors and error texts
This help only provides a selection of possible error messages. The error texts can also differ from the texts in your projects.
Attributes of the tags and alarms
You can find a description of the attributes of the tags and alarms in the help document Runtime - Open Development Kit (ODK).