Ethercat protocol not responding

More
3 years 3 months ago #275809 by fdarling
I am trying to use a Yaskawa SGD7S-2R8AA0A002 EtherCAT servo drive with LinuxCNC (Yaskawa SGM7J-04AFC6S servo motor). The drive can jog just fine from SigmaWin+ over USB. However, when trying to use it with LinuxCNC I am running into similar problems as in this thread -- it stays in PREOP state.

To be clear, I know that I generally have LinuxCNC working with EtherCAT correctly because I tested a Chinese JMC JASD7502-20B-EC servo drive with success. I used the same configuration, modifying only the EtherCAT configuration XML file that is passed to the lcec_conf HAL component.

It sounds like the Yaskawa EtherCAT drive requires that read/write PDOs are done in different packets (domains)? And that this requires some rewriting of the LinuxCNC EtherCAT driver? If so, is there any progress with this?

I attached the XML configuration file where I commented out all pdoEntry elements (in case they were causing problems), and I attached the dmesg output with "ethercat debug 1" set. The dmesg log ends with the following:
Code:
[ 1952.331425] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [ 1952.332421] EtherCAT ERROR 0-0: AL status message 0x001D: "Invalid output configuration". [ 1952.334423] EtherCAT 0-0: Acknowledged state PREOP. If you have found a solution, I would love to hear about it!

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #275862 by fdarling
Page 3 of Yaskawa's RV-Y4P05Q Beginning EtherCAT Master Development with Yaskawa Drive.pdf

image missing https://i.imgur.com/3Azlewe.png

Which confirms that the drive only supports Logical Read (LRD) and Logical Write (LWR) modes separately, but not the combined Logical Read Write (LRW) mode. LinuxCNC's EtherCAT driver will have to be modified...
The following user(s) said Thank You: CORBETT

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276188 by CORBETT
@fdarling
This is most disheartening to see as I have several of the SGDV models, just haven't had time to check them out.  Thanks for putting this on the forum as it will save me time down the road of trying to figure out the problem. 

Let us hope that Dominik can re-work the driver and get these working...  
 

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #276316 by fdarling
I just opened an issue on Sascha Ittner's linuxcnc-ethercat GitHub repository:

supporting separate LRD/LWR commands instead of an LRW command · Issue #121 · sittner/linuxcnc-ethercat

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #277614 by RDA
Hello,
If it is of any help, I can donate a yaskawa sigma 7 drive, sigma 5 motor and the encoder/motor cables.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #277617 by fdarling

Hello,
If it is of any help, I can donate a yaskawa sigma 7 drive, sigma 5 motor and the encoder/motor cables.
 
Does a Sigma 5 motor work with a Sigma 7 drive?

If we can find a developer willing to tackle the problem, it would certainly be great to send the equipment to them for testing!

Please Log in or Create an account to join the conversation.

Time to create page: 0.240 seconds
Powered by Kunena Forum