The General configuration section will appear once a new Ethernet I/O Once a server device has been added successfully. Additional options differ based on the selected protocolcreated, its options can be configured in the “Device Setting” tab of the Data Server Editor window.
Table of Contents |
---|
Modbus TCP
...
Item | Description |
Device Name | Allows the user to assign a name for the selected data server device. |
Device Protocol | Allows the user to select a protocol for a device. |
Host | Assign an IP Address for the Data Server |
Port | Assign a port number for the Data Sever. Default is 502. |
Unit ID | Assign a unit ID to the server. This is typically only used in Ethernet-serial conversion setups. Default 0. |
String Encoding | Specifies the string encoding method that external devices will see when accessing tag data. Note that this option is separate from the string encoding option used by tags in the Tag Editor. This setting cannot be overridden by individual tags. |
String Encoding Method | When an invalid character is encountered in a hosted tag’s value, the gateway will use one of the following options:
Note that this option is separate from the string encoding method option used by tags in the Tag Editor. This setting cannot be overridden by individual tags. |
MQTT JSON Publisher
...
General Options
...
Item | Description |
Device Name | Allows the user to assign a name for the selected data server device. |
Device Protocol | Allows the user to select a protocol for a device. |
Use All Tags | Allows the user to |
host all of the tags in the project file |
on the data server. |
Broker Address
Assign an IP Address for the Broker Device.
Port
Assign a port number for the Data Sever.
Client ID
The timeout feature periodically checks whether the connection is still valid. If a requested frame is not received in the assigned time, it will be processed as a communication failure. This option is not applied if the protocol is TCP/IP. Values represent multiples of 100ms. For example, a value of 10 represents 1000ms or 1 second.
Use Clean Session
Enables connecting to the MQTT broker using a clean session, or a non-persistent connection.
Keep Alive
Assign the number of communication retry attempts after a communication failure.
Use SSL
Allows the user to upload all of the tags in the project file to the data server. This option is only available for [OPC UA SERVER] and [SPARKPLUG CLIENT] device protocols.
Key Pair
The SSL box must be checked to access this feature.
Trust Store
Password to the truststore file.
Use MQTT Passwords
Enable/disabled MQTT passwords feature.
MQTT Username
Create MQTT username.
MQTT Password
Create MQTT password.
OPC UA Server
...
Uses each tag’s path as its ID and/or topic, depending on the payload type. |
MQTT Options
...
Item | Description |
Broker Address | IPv4 address or hostname for the MQTT broker. Note that all Xpanel devices run an MQTT broker by default. The default address of 0.0.0.0 will use this built-in broker. |
Port | Port number used by the MQTT broker. |
Client ID | Assign an optional client ID for publishing and subscribing. |
Use Clean Session | Enables connecting to the MQTT broker using a clean session, or a non-persistent connection. |
Keep Alive | Denotes the keepalive time used by the mqtt client in seconds. |
Use SSL | Enables SSL encryption when communicating with the broker. |
Key Pair | Select a key pair to use for the SSL encryption feature. These can be edited in the Certificates Editor window. |
Trust Store | Select a trust store to use for the SSL encryption feature. These can be edited in the Certificates Editor window. |
Use MQTT Passwords | When this property is enabled, a username and password will be used when connecting to the MQTT broker. |
MQTT Username | Choose the MQTT username for connecting to the broker |
MQTT Password | Choose an MQTT password for connecting to the broker |
MQTT Message Queue
...
Item | Description |
Use Message Queue | Denotes whether the client should use a message queue, which will store messages while the client is disconnected. |
Message Queue Size | Denotes the maximum number of messages to be held in the message queue. Values can range from 20 to 10000. Default 1000. |
Message Queue Publish Rate Limit | The minimum time (ms) between publishes, with 0 being as fast as possible. Maximum value 10000. This can be used to reduce network bandwidth, at the cost of slow response times. |
Use Message Queue Age Limit | When enabled, the publisher will impose an age limit on queued messages. |
Message Queue Age Limit (s) | The maximum age in seconds of a message that will be published, older messages will be discarded. |
Running Mode
...
Item | Description |
Running Mode | Sets the criteria for when to publish a payload. Default “On Change Any”.
|
Polling Rate (ms) | Determines the rate (ms) for polling tag changes when “Running Mode” is set to “On Scan Delta” or “On Scan All”. |
Payload Info
...
Item | Description |
Publish Payload Format | Selects one of several built-in payload formats for publishing. Note: external devices will must to be configured to listen for payloads with a matching format. The payload can be set to include data from a single tag or multiple tags:
Each format type uses a separate JSON object to store each tag’s data. This “tag value object” can embedded within the payload structure in different ways:
There are also two pre-made payload options: “Basic” and “Full”:
|
Publish QOS | Choose the Quality of Service to use when publishing. Determines how many times each message will be sent in the event of packet loss.
In general, a higher value means the data will be more accurate, but this will also require more handshakes and bandwidth consumption. |
Publish Retain Messages | When enabled, the last known value for each topic will be retained by the broker. When a new client subscribes to a topic, the retained value will be published to the client by the broker. The broker will only retain up to one value per topic. |
Publish Topic Prefix | Sets a prefix string to include in all publish topics. Note that this does not automatically add a For example, with a prefix of |
Publish Topic Suffix | Sets a suffix string to include in all publish topics. Note that this does not automatically add a For example, with a suffix of |
Access Type | The MQTT JSON Publisher server device always publishes MQTT messages when a hosted tag’s value updates. This setting lets you choose whether the device also subscribes to MQTT messages from external clients.
|
Subscribe Payload Format | Selects one of several built-in payload formats for subscribing. Note: This property only changes the expected payload format for subscribing. External devices must be configured to publish payloads use a matching format. Any subscribed messages and properties that do not match the specified format will be ignored. The payload can be set to include data from a single tag or multiple tags:
Each format type uses a separate JSON object to store each tag’s data. This “tag value object” can embedded within the payload structure in different ways:
There are also two pre-made payload options which allow you to specify which properties to include: “Basic” and “Full”.
Note: All datetime strings use the format “yyyy-MM-ddTHH:mm:ss”. |
Subscribe QOS | Choose the Quality of Service to use when subscribing. Determines how many times each message will be sent in the event of packet loss.
In general, a higher value means communication will be more reliable, but also requires more handshakes and bandwidth consumption. |
Subscribe Tag Identifier Type |
|
Subscribe Clamp Method | Sets how provided values will be clamped to the tag’s data type.
|
Subscribe Topic Prefix | Sets a prefix string to include in all subscribe topics. Note that this does not automatically add a For example, with a prefix of |
Subscribe Topic Suffix | Sets a suffix string to include in all subscribe topics. Note that this does not automatically add a For example, with a suffix of |
OPC UA Server
...
Item | Description |
Device Name | Allows the user to assign a name for the selected data server device. |
Device Protocol | Allows the user to select a protocol for a device. |
Use All Tags | Allows the user to upload all of the tags in the project file to the data server. This option is only available for OPC UA SERVER and MQTT JSON Publisher device protocols. |
Server Name | Enter the name of server. |
Application URI | Enter the Uniform Resource Identifier (URI) to locate the asset on a network. |
Application Name | Name of the URI application. |
Port | Assign a port number for the Data Sever. |