This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

W4K as modbus RTU sniffer?
#1
I've a modbus RTU setup - 4 salves + 1 master. I know all the device IDs, used registers...
I'd like to visualize some of the raw data. Unfortunately the modbus master has no API for querying raw data. Due to this, I'd like to use me W4K as modbus sniffer. Has someone done something like this already? Or any better idea?
Reply
#2
Why would you want to do it?
You can use script like this but you can't use profile and this at the same time.
https://forum.logicmachine.net/showthrea...2#pid16012
------------------------------
Ctrl+F5
Reply
#3
The Modbus protocol only allows one master, which already exists. If I add another master to the same bus, I expect communication collisions. I want to prevent that.

Instead of a sniffer, it could be an option to add an "bus free function" to your script. For the second master(=VISU) I need a poll intervall of 60sec.
Reply
#4
You can use Modbus as slave -> https://kb.logicmachine.net/integration/...tcp-slave/
Reply
#5
Slave mode can't catch and parse responses from other slaves, only from master. It might be possible to use raw serial communication to catch requests and responses. But it's not a trivial task.
Reply
#6
(09.01.2026, 19:37)cgn Wrote: I've a modbus RTU setup - 4 salves + 1 master. I know all the device IDs, used registers...
I'd like to visualize some of the raw data. Unfortunately the modbus master has no API for querying raw data. Due to this, I'd like to use me W4K as modbus sniffer. Has someone done something like this already? Or any better idea?

what is your general task?  if you want to see raw data jnce - then it is better to use USB-RS485 adapter and Modbus Poll software (it has bus monitor)
Reply


Forum Jump: