[TwinCAT 2]: Reset EtherCAT Devices

AleSantaCruz

Level-1
Beiträge
9
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello, I have an ethercat slave device which i want to restart, since in some conditions i have failure, and I would like to restablish it to normal operation. I tried the command FB_EcSetSlaveState and I get the error: "target port not found" "possible causes: ADS Server not started" How do I know about the ADS Server? Any hint would be a great help
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Dear Neals, Thanks for the collaboration. Off course I checked the Infosys and tested the results prior to writing my doubt in this forum. I will give you more details on how i used this Function Block. Do you know any other way to deal with a Klemme when there's an error? maybe reseting it this way is not the best solution. on the sNetID, i just left a blank string ('') since the run-time is located in the target PLC. Just in case, i have also used the NetID obtained from the AMS Router. The PLC is a CX8090 with a EL2008 and a EL6751 connected The slave address, i obtained it in the System Manager at I/O Devices0=> Gerät 2 (EtherCAT => Klemme 1 (EK1200) => EL6751 => EtherCAT tab => EtherCAT Addr. Is this configuration the right one?
 
Keeping a blank NetID wouldn't work, because the EtherCAT Master has normally a NetID with *.*.*.*.2.1 and blank one meens the loopback to 127.0.0.1.1.1
 
Neals, it worked! I wasn't sure about the addressing, and i was using the PLC run time address instead of the EtherCAT Master Address. (under I/O Devices0=> Gerät 2 (EtherCAT)) which was actually *.*.*.*.3.1 All this is very confusing. Anyway, i managed to restart my slave. Thanks The question now goes this way: As I said before, i am using a EL6751 (CanOpen Master, which sometimes detects an error and stops receiving due to a problem in a CanOpen device, i still dont know how to solve that), but in the mean time, i am just trying to reset the Klemme as an autorecover feature. There's no a better way to react when a slave is in some error state? Thanks again
 
This instruction was more useful than the other one. In this case, i used the empty for the NETID string and the DEVICEID assigned by the System Manager (an integer number) I hope this is useful for other people searching for the same
 
Zurück
Oben