Configuration
4.9 Cloud configuration
SIMATIC CC7
92 Operating Instructions, 10/2019, C79000-G8976-C503-02
The code of the formatted user data can contain the following keys depending on the format.
●
Time stamp
<PUBLISH_TIMESTAMP>
Time of the publication
– Example for coding the time stamp with added text "sent at ":
Syntax: "
sent at <PUBLISH_TIMESTAMP>"
Results in string: "
sent at 2019-04-20T13:58:16.192313634+00:00"
●
Start of data without or with semicolon as separator
<DATAPOINTS_BEGIN>
Start of a text block that is repeated for sending data. The text block can contain
variables.
"
<DATAPOINTS_BEGIN>" must be listed before "<DATAPOINTS_END>" (end of the text block, see
below).
If you add text rather than variables for data points afterwards, the text is transferred.
– Example for the user data of a topic with four data points:
Syntax: "
<DATAPOINTS_BEGIN>A<DATAPOINTS_END>"
Results in: User data string "
AAAA"
– Example for transferring data with separator:
Syntax: "
<DATAPOINTS_BEGIN><DATAPOINT_NAME>:<DATAPOINT_VALUE>;<DATAPOINTS_END>"
Results in: String with semicolon (;) as separator between the values
With this format, a semicolon is also inserted after the last sent item of data.
Alternative:
●
Start of data with separator or special character
<DATAPOINTS_BEGIN SEPARATOR=,\n>
Start of a text block that is repeated for sending data with separator string. The text block
can contain variables.
During the transfer of values or properties of data points, a separator string is added
between each text block to ensure reliable evaluation of the data. In this version, the
character string "comma + line break" is added after each text block but not after the last
block.
"
SEPARATOR=" is the separator.
You declare the "
,\n" separator string after the equal sign "=":
"
," is the separator.
"
\n" causes a line break.
Line breaks as well as the characters "
<" and ">" are not permitted in the separator string
after "
SEPARATOR=".