...
| Keyword | Full name | Meaning | Unit | Default value | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Subscribe Station Address | If this parameter has the value YES, the Topic related to the station address is also added to the SUBSCRIBE message:
| YES/NO | NO | ||||||
| Station Will Topic | Will topic of the device. If this parameter is set and a message with the same topic is received, the station will go into a communication error (StHardErr) and the values of the I/O tags will be invalidated. In this way, it is possible to emulate the standard behavior that occurs when there is a communication error with the device (even if the communication between the D2000 Kom process and the MQTT broker is functional). | ||||||||
| Station Will Payload | Content of the Will message. If this parameter is set and a message with the same topic as defined by the Station Will Topic parameter is received, the Payload must also be the same. If this parameter is an empty string, matching the topic with the Station Will Topic parameter is sufficient. | ||||||||
| Payload Type | The setting of message parsing (overriding the line parameter Payload Type):
| Default Text only JSON Sparkplug | Default | ||||||
| Time Field Name | If Payload Type = JSON, the name of the field with a timestamp - overriding the line parameter Time Field Name. | - | - | ||||||
| Time Mask | Mask for parsing a value in the field with a timestamp - overriding the line parameter Time Mask. Note: Whether the time is interpreted as local or UTC with a configured offset depends on the time station parameters settings. | - | - | ||||||
Sparkplug parameters | ||||||||||
| Send Node Control/Rebirth | If Payload Type = Sparkplug Host, when connecting to the MQTT server, a command (NCMD or DCMD) with the metric 'Node Control/Rebirth' is sent to the SparkPlug station. The response should be a message (NBIRTH/DBIRTH) with all current metrics. | YES/NO | YES | ||||||
| Batch Size | If Payload Type = Sparkplug Edge Node: The parameter specifies the maximum number of values (metrics) that are sent in one message (NDATA/DDATA). The parameter allows for optimization of the number of MQTT messages (more smaller or fewer larger with a delay). Reading values from the station (ReadAllPoints function) will cause the buffered values to be sent even if the configured maximum has not yet been reached (i.e., a larger time delay in the station parameters will cause more values to be buffered). | 1-1000 | 10 | ||||||
| Store & Forward | The parameter allows you to change the Store & Forward functionality, which is defined for all stations on the line by the Store & Forward line parameter. The value Default means using the settings configured on the line. | Default False True | Default | ||||||
| Store & Forward Batch Size | If the Store & Forward functionality is active (see Store & Forward parameter), the parameter specifies the maximum number of historical values sent in one message (NDATA/DDATA) after communication is resumed. | 1-1000 | 10 | ||||||
| Sparkplug Alias Mode | If Payload Type = Sparkplug Edge Node, the parameter specifies the alias usage mode. Aliases are numeric (integer - Int64) identifiers, used optionally in data and command messages (NDATA/DDATA/NCMD/DCMD) instead of text identifiers, due to the message size reduction. If used, they are listed in the NBIRTH/DBIRTH message together with text identifiers. Aliases must be unique within all I/O tags belonging to one station.
| Default (SAL=alias) Automatic (HOBJ) Off | Default (SAL=alias) | ||||||
| Sparkplug-to-JSON Mode | The parameter defines the JSON data format for the measured point with the address IN_SP2JS (Sparkplug payload to JSON conversion). The JSON data is either generated in a compact mode suitable for further machine processing (fields separated by spaces) or in a form suitable for human viewing (multiline format). | Compact Multiline | Compact | ||||||
| Kotva | ||||
|---|---|---|---|---|
|
...
| Kotva | ||||
|---|---|---|---|---|
|
...
| Príkaz | Syntax | Popis |
|---|---|---|
| STCOMMAND | STCOMMAND StationName PUTOLDVAL BeginTime EndTime | For Payload Type = Edge Node: The Tell command reads out historical values of output I/O tags (if the I/O tags or their control objects are archived) and sends them as historical values. Reading works independently of the Store & Forward protocol parameter. Using this command, it is possible to send historical values even for the period when the D2000 KOM was turned off (and therefore the Store & Forward functionality could not work). Example: STCOMMAND B.MQTT_MOSQUITTO_EN.Device1 PUTOLDVAL "30-05-2025 00:00:00" "30-05-2025 00:10:00" |
| Kotva | ||||
|---|---|---|---|---|
|
...