EtherCAT Communication loss detection

Akgaurihar

Member
Join Date
Apr 2020
Location
xxx
Posts
9
Hello everyone,

Currently I am trying to find an answer for the following situation.

I have digital output and input cards connected to the Beckhoff CX PLC. In case of EtherCAT communication loss ( Let's say cable is damaged or disconnected by someone ) digital outputs goes to the zero state, but the inputs always remains to the TRUE state.

I want to detect the EtherCAT communication loss and using this want to safely reset digital inputs until the communication is up again. What is the best way to handle this situation. Looking for expert advice.

Thank you and have a nice day.
 
try this.

send an output signal to your device. connect it to an input
start a 1 second timer when you turn on the output.
look for that input to turn on. then turn off the output and start a 1 second timer. the input signal should turn off. this is a heart beat signal.

if either timer times out, something is wrong.
as far as the inputs goes, copy the inputs into memory words.
as long as the heart beat is working, copy the inputs into th words.
when the signal fails, turn off that rung and turn on a rung to copy 0's into the same registers.

i may not have this exactly correct, you may have to play with it. if someone else has a better way, please comment.

regards,
james
 
You cannot specify the behaviour of the inputs upon loss of connection ?
I would guess that like with Profinet you can specify the inputs to hold last state, or go on, or go off.
 
Another option would be to use the Beckhoff's EtherCAT library. If there is an EtherCAT related fault, you can use these to diagnose and troubleshoot issues from PLC Code.

For TwinCAT 3
Tc2_EtherCAT

For TwinCAT 2
TcEtherCAT
 

Similar Topics

I have an Omron NX PLC NX1p2 which Supports EtherCAT . also I have Balluff BNI00HA Ecat Block(IOlink Master). I have setup communications and...
Replies
0
Views
164
Hello, Does anyone have some good advice on using TwinCAT to control Altivar Drives from Schneider Electric. In this example I am using ALT320...
Replies
0
Views
2,195
If an IPC with Codesys runtime on it has two separate ethernet ports, is it possible to have an Ethercat master on each of them? I do not find...
Replies
3
Views
527
Hello everybody. I encountered a problem - I don’t know how to update the firmware on the Mitsu MR-J5-40G-N1 (ethercat) servo amplifier. My...
Replies
2
Views
401
Just curious if anyone has been down this road before? Considered using one of the anybus gateway adapters, experience with them. Master...
Replies
2
Views
663
Back
Top Bottom