tapping existing serial connection / bestehende serielle Kommunikation anzapfen

Topics about the Hardware of Revolution Pi
Post Reply
StefanM
Posts: 5
Joined: 02 Mar 2021, 19:59

tapping existing serial connection / bestehende serielle Kommunikation anzapfen

Post by StefanM »

hi there,
(Hallo zusammen, Unterhaltung und Deutsch ist kein Problem)

I was in contact with KUNBUS sales about tapping into an existing serial communication line. It could not be guaranteed that my scenario cannot be realised.
The intention is log (and analyze) additional signals without modifying the existing automation system.
The existing queries from the currently existing master shall be still served. In addition, the new master shall query additional signals. That would require that the device would query all signals and make them available to the existing and added devices.
I'm aware that if the Gateway goes down the entire communication goes down but there is no signal sent by the bus commutation all safety and control related signals are hardwired.

Going through the recommended devices: I would say it is possible but it would require two pairs of Gateways. One Gateway would act as a new intermediate Master and the other Gateway would act as the new intermediate Slave.
The new logger would read the signals to the Ethernet Interface.

Is there anyone around who tried the same or could tell if that approach is reasonable, easy to configure?
Could be there a better approach as getting two pairs of Gateways would raise the price tag, significantly in relations to only one Gateway and one RevPi.


It is not unlikely that my explanations are not that easy to understand, so I will illustrate my challenge with pictures. In the current case, a Modbu RTU connection is to be tapped, but the contribution is to be open to any kind of old-fashioned protocol.

This is the current situation but times six, as the actual project has six S7-400 HF CPU groups, each with two point-to-point connections to a Modbus RTU (RS485) slave.
Image

The challenge is to tap the existing line but keep current communication alive, my thoughts:
  1. Keep the base protocol, in this case, Modbus.
    The device could just forward queries and replies but that would unnecessarily burden the line to the slaves and the slaves themselves.
    So, a solution is preferred what queries the slaves and buffers the answers to provide it to the master devices upstream to itself.
    Image
  2. Switch over to a second IP based protocol.
    The functionality is as in one “thought one” but the new line would communicate via a common protocol.
    Image
  3. The all-in-one solution
    As mentioned earlier, there several point2point communication to be tapped I would like to reduce complexity. This either by a very simple device, outlined in “thought one” or “thought two” or going the other way and integrate all in a single device.
    Image
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: tapping existing serial connection / bestehende serielle Kommunikation anzapfen

Post by dirk »

Hi StefanM, I have an idea that is not the answer to your ideas but could be helpful for you:
Are you using a PROFINET SPS and variables are declared as HMI? Then RevPi7 might be the easiest way to gather the data.

Example project for the Siemens TIA 15 Portal in the download area
https://revolution.kunbus.com/tutorials ... rect=en_US
RevPi7 Quick Start Guide (german)
viewtopic.php?t=854
RevPi7 Tutorial (german)
https://revolution.kunbus.de/tutorials/revpi7/
Please have in mind that we do not provide active support for this component here.

Your idea to separate the Modbus communication seems to me difficult to realize, even if it can be feasible.
Please have a look at the following tutorial and the implemented Function Codes (FC):

https://revolution.kunbus.com/tutorials ... -turorial/

If these FCs cover the scope that your Modbus master uses, then your plan may be easy to implement.
However, these Modbus masters work with an extended data configuration that implements cyclic communication. For example "Write Multiple Registers in 100ms cycle".
This means, if you connect between the two communication partners with the Revolution Pi there will be latencies between receiving and forwarding messages.
I hope my ideas can help you.

Last but not least, you could of course write your own software that receives, interprets and then forwards serial data:
Have a look at the Python PySerial Library.
StefanM
Posts: 5
Joined: 02 Mar 2021, 19:59

Re: tapping existing serial connection / bestehende serielle Kommunikation anzapfen

Post by StefanM »

dirk wrote: 11 Mar 2021, 11:47 Are you using a PROFINET SPS and variables are declared as HMI? Then RevPi7 might be the easiest way to gather the data.
not on the old plants, so the protocol to use is the S7-Protocol
dirk wrote: 11 Mar 2021, 11:47 Example project for the Siemens TIA 15 Portal in the download area
https://revolution.kunbus.com/tutorials ... rect=en_US
which project is meant as TIA is not mentioned in Sample codes

dirk wrote: 11 Mar 2021, 11:47 if you connect between the two communication partners with the Revolution Pi there will be latencies between receiving and forwarding messages.
latencies is hell right not anyway :D
dirk wrote: 11 Mar 2021, 11:47 Last but not least, you could of course write your own software that receives, interprets and then forwards serial data:
Have a look at the Python PySerial Library.
will check although I'm afraid that I won't find spare time to tinker
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: tapping existing serial connection / bestehende serielle Kommunikation anzapfen

Post by dirk »

Hi here in the Downloads secion you can findt the RevPi7 example project:
https://revolution.kunbus.com/tutorials ... _US#coding
Revpi7sampleProject.jpg
Revpi7sampleProject.jpg (94.14 KiB) Viewed 8737 times
Post Reply