new hardware trouble

More
03 Oct 2024 19:05 - 03 Oct 2024 19:08 #311247 by kworm
Replied by kworm on topic new hardware trouble
I have found that when sending config pdos to the drive it is successful in LinuxCNC but then lcec dies because it can't map some of the pdos that were just configured.  If you do an "ethercat rescan" then the pdos are shown and LinuxCNC starts just fine.  I'm not sure if this is an linuxcnc-ethercat or etherlab ethercat-master issue.  This may still be some type of interaction with EoE but out of curiosity @endian could you please try seeing if that works for you as well vs disabling EoE?

LinuxCNC was not running during the following commands:
cnc@shaper:~$ ethercat pdos -p 19
SM0: PhysAddr 0x1800, DefaultSize  234, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1a00, DefaultSize  234, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x64, Enable 1
  RxPDO 0x1600 ""
    PDO entry 0x6040:00, 16 bit, ""
    PDO entry 0x607a:00, 32 bit, ""
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x62, Enable 1
  TxPDO 0x1a00 ""
    PDO entry 0x6041:00, 16 bit, ""
    PDO entry 0x6064:00, 32 bit, ""

cnc@shaper:~$ ethercat rescan

cnc@shaper:~$ ethercat pdos -p 19
SM0: PhysAddr 0x1800, DefaultSize  234, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1a00, DefaultSize  234, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x64, Enable 1
  RxPDO 0x1600 ""
    PDO entry 0x6040:00, 16 bit, ""
    PDO entry 0x6060:00,  8 bit, ""
    PDO entry 0x607a:00, 32 bit, ""
    PDO entry 0x60ff:00, 32 bit, ""
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x62, Enable 1
  TxPDO 0x1a00 ""
    PDO entry 0x6041:00, 16 bit, ""
    PDO entry 0x6064:00, 32 bit, ""
    PDO entry 0x6077:00, 16 bit, ""
    PDO entry 0x6061:00,  8 bit, ""
 
Last edit: 03 Oct 2024 19:08 by kworm.

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

  • endian
  • endian's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
05 Oct 2024 16:13 #311355 by endian
Replied by endian on topic new hardware trouble

I have found that when sending config pdos to the drive it is successful in LinuxCNC but then lcec dies because it can't map some of the pdos that were just configured.  If you do an "ethercat rescan" then the pdos are shown and LinuxCNC starts just fine.  I'm not sure if this is an linuxcnc-ethercat or etherlab ethercat-master issue.  This may still be some type of interaction with EoE but out of curiosity @endian could you please try seeing if that works for you as well vs disabling EoE?

LinuxCNC was not running during the following commands:
cnc@shaper:~$ ethercat pdos -p 19
SM0: PhysAddr 0x1800, DefaultSize  234, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1a00, DefaultSize  234, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x64, Enable 1
  RxPDO 0x1600 ""
    PDO entry 0x6040:00, 16 bit, ""
    PDO entry 0x607a:00, 32 bit, ""
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x62, Enable 1
  TxPDO 0x1a00 ""
    PDO entry 0x6041:00, 16 bit, ""
    PDO entry 0x6064:00, 32 bit, ""

cnc@shaper:~$ ethercat rescan

cnc@shaper:~$ ethercat pdos -p 19
SM0: PhysAddr 0x1800, DefaultSize  234, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1a00, DefaultSize  234, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x64, Enable 1
  RxPDO 0x1600 ""
    PDO entry 0x6040:00, 16 bit, ""
    PDO entry 0x6060:00,  8 bit, ""
    PDO entry 0x607a:00, 32 bit, ""
    PDO entry 0x60ff:00, 32 bit, ""
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x62, Enable 1
  TxPDO 0x1a00 ""
    PDO entry 0x6041:00, 16 bit, ""
    PDO entry 0x6064:00, 32 bit, ""
    PDO entry 0x6077:00, 16 bit, ""
    PDO entry 0x6061:00,  8 bit, ""

 

hi,

I do not know what exactly means lcec dies ... but command
sudo systemctl restart ethercat.service
should restart your died ethercat service on your host PC...

I did that what I mention in the posts before... we are not in the situation that we are able to use FAoE, AoE or EoE .. but that time should come soon

My symphtons of not working ethercat service because of EoE on was that... sometimes communication between ethercat slave was turned on(less attemps) and comm was 0 (more attempts) .. but behavior was trully randomable... other slaves on bus was in opmode normally with EoE slave on the bus in same time ...

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

More
05 Oct 2024 22:41 - 05 Oct 2024 22:41 #311372 by kworm
Replied by kworm on topic new hardware trouble
Hi Endian,

Sorry I wasn't clear...what I meant is the LinuxCNC dies because lcec errors out on not being able to map the PDO (for example 0x6060) even though it was configured with SDOs but for some reason not visible until doing the "ethercat rescan".

Perhaps these issues are not related but would be strange coincidence that EoE is involved in both. I'm not sure anyone is actually using it with LinuxCNC.
Last edit: 05 Oct 2024 22:41 by kworm.

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

  • endian
  • endian's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
07 Oct 2024 16:21 #311503 by endian
Replied by endian on topic new hardware trouble
When I had such a problem like yours... I do not know but ...  try check the active mapping with 
ethercat pdos -v
... I think it is possible to run EoE but there are synchronization problem because it was not definated in the SDOs startup ... and it should does a mess 

lets check what is exactly wrong with them with 
ethercat debug 1
and after them should try 
sudo dmesg
and let us know

regards
The following user(s) said Thank You: kworm

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

More
07 Oct 2024 20:44 #311525 by kworm
Replied by kworm on topic new hardware trouble
I don't think EoE can work in LinuxCNC the way it is now unless possibly you are running linuxcnc-ethercat as a kernel module which I guess would require RTAI version. In the userspace version there is no call to ecrt_master_send_ext() which is required for EoE to work and it's only enabled if __KERNEL__ is defined. I opened a ticket on linuxcnc-ethercat so when Scott has a chance to look at it maybe there will be something.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum