How to detect profinet communication interruption

Hi all,

I am testing profinet communication for a customer project. I have build a setup of 2 B&R PLCs, one with a profinet master module (X20IF10E1-1) and the other one with a profinet slave module (X20IF10E3-1).

Everything is working fine, I can easiely exchange data between both PLCs.

If I interrupt communication (e.g. by disconnecting the cable from one PLC) I see in IO Mapping of X20IF10E3-1 module that something is wrong.
Communication Not OK

My question now is: is it possible to monitor/read these status signals in a software task, so that I can detect this behaviour and e.g. trigger a communication alarm on the HMI?

Thank you in advance for any help :slight_smile:

Hi there,

unsure if I don’t understand the question properly, but you can treat these variables like any other I/O datapoint and assign a variable of your choice (of course only if the datatype matches). You can then do whatever you wish with that variable in any task :slight_smile:

Best regards

@tommi.piiparinen beat you :stuck_out_tongue:

2 Likes

You can map a PLC variable with a compatible datatype to the channels in the I/O Mapping.

If you do not already have a UDINT variable, create a new one in one of your tasks and map it to the input channel through the button with 3 dots.

1 Like