Hi,

Just looking for some comments and feedback on the approach we're going
with the Profinet Driver.

As Profinet is a fieldbus, communicating to multiple devices at once is
fairly standard, however it makes it difficult with the current connection
string format to define multiple devices.

Using the local ip address of the driver in the target and moving the
device configuration to the parameters section would allow this though.
e.g. profinet:raw://{local ip address}?devices=[00:00:01:02:03:04,
00:00:01:02:03:05]&submodules=[[submodule1, submodule2],[submodule1,
submodule2]]

I've then encapsulated the connection to each device within a
ProfinetDevice class which handles opening and closing separate UDP
connections and receives messages from the common UDP port via a handle.
Setting up the connection to multiple devices then ends up being simple.

for (Map.Entry<String, ProfinetDevice> device :
configuration.configuredDevices.entrySet()) {
    device.getValue().onConnect();
}


Ben

Reply via email to