How can I write unix time stamp on modbus client?

Hi guys,

How can I write Unix Time Stamp from modbus register of TRB256 in a modbus client (arduino)?

I want to synchronize the clock of an arduino module periodically with the clock of TRB256 through the modbus protocol RS485. But I don’t know how I could do that.I use the gateway as a master, collect all the data and then send it to the Data to server via MQTT. But after a period of time I need to write the router clock in the arduino module on the modbus RS485 protocol.
I need a way to solve it somehow. I need it for about 50 de gateways.

Best Regards,

Hello,

Is it possible to configure your arduino as a master to receive a time information from TRB246?
You can find informations regarding the registers of TRB246 from here.

Regards,
Caner

No. I can’t. Becase i collect data from there. I have many devices there. Arduino is an example.
I want to put the timestamp as master in a slave register. I can write from the server but it is not good solution because is critical. The solution is to develop it locally.
Can I build a script in the gateway to move a value from a register of a device to another register of another device?

This topic was automatically closed after 15 days. New replies are no longer allowed.