Need Help! Modbus Sensor read

250 views
Skip to first unread message

wett...@gmail.com

unread,
Jun 18, 2018, 2:28:13 PM6/18/18
to weewx-user
Hi All,
i use a weather station with Modbus support. (Modbus/TCP -Slave)

https://www.controlbyweb.com/x320m/

How can i read the registers for working with weewx ?
Does somebody use Modbus Sensors ?

Thanks for YOUR support!
Message has been deleted

Bill Thomson

unread,
Jul 3, 2018, 12:15:14 PM7/3/18
to weewx-user
Hi Wett,

Have you had a look at the manual?
Modbus operaton is explained starting on page 97.

https://www.controlbyweb.com/x320m/x-320m_users_manual.pdf

mwall

unread,
Jul 4, 2018, 9:10:45 PM7/4/18
to weewx-user


On Monday, June 18, 2018 at 2:28:13 PM UTC-4, wetterbbb wrote:
Hi All,
i use a weather station with Modbus support. (Modbus/TCP -Slave)

https://www.controlbyweb.com/x320m/

How can i read the registers for working with weewx ?
Does somebody use Modbus Sensors ?


the weewx-cm1 driver uses modbus.  the CM1 is the data logger interface to weather stations made by dyacon.


take a look at the weewx-cm1 driver.  it imports the minimalmodbus python package and uses the Instrument and other constructs in that API to communicate with the CM1 hardware using its modbus interface.  it has been tested using a usb modbus interface.  (running continuously for a few years now without problems, and on windows too!)

m

wett...@gmail.com

unread,
Aug 22, 2018, 1:52:01 PM8/22/18
to weewx-user

Modbus_readout.jpg

Hello,
many Thanks for your Answer!

".....

take a look at the weewx-cm1 driver.  it imports the minimalmodbus python package and uses the Instrument and other constructs in that API to communicate with the CM1 hardware using its modbus interface.  it has been tested using a usb modbus interface.  (running continuously for a few years now without problems, and on windows too!)"


The dyacon.CM1 Driver is very nice but using "Modbus RTU" the communication is over RS485 (tty) but the X320m is using the communication over TCP/IP.
No way for me to customize.
I am not a programmer.

Can anybody help to integrate?

Many Thanks!

Antonis Katsonis

unread,
Aug 23, 2018, 4:49:01 AM8/23/18
to weewx-user
Modbus protocol is commonly used in PLC and other industrial applications.

You can use the XML operation, page 90.

https://www.controlbyweb.com/x320m/x-320m_users_manual.pdf



Protocols

  • HTTP, XML, Modbus TCP/IP, Remote Services

https://www.controlbyweb.com/x320m/specs.html

wett...@gmail.com

unread,
Aug 23, 2018, 2:22:23 PM8/23/18
to weewx-user
Hello,


"Modbus protocol is commonly used in PLC
and other industrial applications"
Yes this is true. But you can see other professional devices use Modbus  (
dyacon)

"
You can use the XML operation"
Yes this is possible, but:
1: XML does not use the full sensor resolution. (only the Webinterface value)

2: You can only read the Barometer of see level not the real value (but you get it over Modbus)

By the way : does have weewx a XML Parser?

Best Regards


Reply all
Reply to author
Forward
0 new messages