Posts: 20
Threads: 10
Joined: Nov 2023
Reputation:
0
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?
Posts: 5406
Threads: 30
Joined: Aug 2017
Reputation:
242
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
Posts: 20
Threads: 10
Joined: Nov 2023
Reputation:
0
12.01.2026, 14:00
(This post was last modified: 12.01.2026, 14:03 by cgn.)
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.
Posts: 8516
Threads: 47
Joined: Jun 2015
Reputation:
486
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.