Disable & Enable EIP communication /w fast recovery

Hi,
Does anyone know if there is a method to disable/enable EIP communication?

We tried to do this via cmd

>> ip link set ethX2 down

This was executed in CODESYS using WagoSysProcess.FuExecuteCommand() and yep, it works. But…

The recovery time is too high for this case. At first it varies a lot (1-5s). And second: the recovery time should be always less than 1s.

Any ideas?

If you want to do this from within your CODESYS program, you can turn on the xReset bit of Ethernet_IP_Scanner. While TRUE, the EIP communication will be halted, and it will re-establish when turned FALSE again.

Note: While the EIP Adapter did reset its outputs to false during comm loss, the CODESYS project does not read or assume this. The state of EIP variables remains in the their last-read state.

I did not test the timing of how long it takes to re-establish EIP comms (but it appears to be around 1-2 seconds so that might not help you).

1 Like

Thanks Adam,

I wrote a simple SW that enables/disables the scanner in 20s cycle. The recovery time is now reasonable and almost constant.

Our target is to use ACR with Ethernet/IP. If you have any experience on that, I would highly appreciate sharing the information :slight_smile: