Skip to content

[Question]Queries regarding Modbus Tag Timestamps #2054

@yottavictor-gif

Description

@yottavictor-gif

Hello Fuxa Team,

I have two questions related to using Fuxa with Modbus tags:

  1. Retrieving the Latest Modbus Tag Read Timestamp
    I am using Fuxa to read data from a Modbus TCP device and need to display the timestamp of the latest successful read for a specific tag (e.g., a temperature tag).

I've observed that the internal Tag Object seems to contain a timestamp property:

JSON

{
"id": "t_c2f080db-e81a4056",
"name": "Temperture",
"type": "Int16",
"memaddress": "400000",
"address": 501,
"divisor": 10,
"daq": {
"enabled": false,
"interval": 60,
"changed": false,
"restored": false
},
"description": null,
"value": 75.1,
"timestamp": 1764301185273
}

My question is:

Is there a built-in UI Component (Widget) that can directly display or format a tag's internal timestamp property?

If not, what is the recommended method in the JavaScript script environment to access and format the Tags.TagName.timestamp property for display? (I'm looking for the most efficient way to ensure the displayed time reflects the actual last data acquisition moment.)

  1. Purpose of "Copy Tag Object to Clipboard"
    In the Modbus tag configuration settings, there is an option to "Copy Tag Object to Clipboard." I noticed that this copies the tag's data in JSON format (similar to the structure above).

What is the intended primary use case or function of this "Copy Tag Object to Clipboard" feature for users or developers? (e.g., for external integration, detailed debugging, or specific scripting purposes.)

Thank you for your assistance and for developing Fuxa!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions