pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.29k stars 936 forks source link

Retrieve server timestamp #2167

Closed shamyjun22 closed 6 months ago

shamyjun22 commented 6 months ago

Versions

Pymodbus Specific

Description

I had already made a successful connection with the Kepware KEPServer and read values from holding registers. My question is, is it possible to get the timestamp from the server?

janiversen commented 6 months ago

That depends on whether or not the server makes it available as a register.

Apart from that it is hard to know which timestamp you want, but anyhow please read the server manual, or file an issue with that project...it does not seem to have anything to do with pymodbus,

shamyjun22 commented 6 months ago

Thanks for you reply. I have read the manual. It seems that Kepware doesn't support date type register addressing. I can now generate datetime, but the problem is it in string format. It is possible for pymodbus to handle string data type?

janiversen commented 6 months ago

Pymodbus handles registers, what you do with the data is up to you.

shamyjun22 commented 6 months ago

Pymodbus handles registers, what you do with the data is up to you.

Thanks. It is clear to me now.