- Posts: 115
- Thank you received: 0
More advanced EtherCAT setup questions
2 months 13 hours ago #349147
by mwc
Replied by mwc on topic More advanced EtherCAT setup questions
Going back to setting drive parameters, is there anyway to set ModParam with the generic cia402 driver, by addressing the required register directly and not using a 'named' parameter?
Please Log in to join the conversation.
1 month 4 weeks ago #349161
by spumco
Replied by spumco on topic More advanced EtherCAT setup questions
Just took a look at your drive manual, and it's... really sparse.
I don't know of anything in lcec or cia402 that constantly polls the drive(s) for communication status, but I had an idea that might be worth exploring...
What I was thinking is to use one of the drive's digital outputs as a tattle-tale. It's not clear in the manual if the DOs reset on loss of communication, but on my Stepperonline A6's that's an option only found in the tuning software.
I can program my drives' digital outputs to either retain the last state or turn off if communication is lost.
If you can set yours to turn off, then you could create DO hal pins in xml file. Those pins are then turned on in HAL whenever LCNC is running. The DO is then connected to an LCNC input - a DI on a different drive or other Ethercat slave device. That input is connected to motion.external-fault-NN - and it all acts like a drive communication estop.
If the drive is unplugged, the DO turns off... then input then turns off, which triggers an external fault in LCNC.
It all depends if you can set the outputs to non-latching in the drive tuning software and you have a spare input somewhere.
Reminds me I need to test my own system for an Ethercat cable failure.
I don't know of anything in lcec or cia402 that constantly polls the drive(s) for communication status, but I had an idea that might be worth exploring...
What I was thinking is to use one of the drive's digital outputs as a tattle-tale. It's not clear in the manual if the DOs reset on loss of communication, but on my Stepperonline A6's that's an option only found in the tuning software.
I can program my drives' digital outputs to either retain the last state or turn off if communication is lost.
If you can set yours to turn off, then you could create DO hal pins in xml file. Those pins are then turned on in HAL whenever LCNC is running. The DO is then connected to an LCNC input - a DI on a different drive or other Ethercat slave device. That input is connected to motion.external-fault-NN - and it all acts like a drive communication estop.
If the drive is unplugged, the DO turns off... then input then turns off, which triggers an external fault in LCNC.
It all depends if you can set the outputs to non-latching in the drive tuning software and you have a spare input somewhere.
Reminds me I need to test my own system for an Ethercat cable failure.
Please Log in to join the conversation.
3 days 10 hours ago #350491
by mwc
Replied by mwc on topic More advanced EtherCAT setup questions
I'm back working on this, and have got the drive digital inputs working, however I'm back at needing to set a drive parameter, so is the above possible, or will I have to write a driver?Going back to setting drive parameters, is there anyway to set ModParam with the generic cia402 driver, by addressing the required register directly and not using a 'named' parameter?
Please Log in to join the conversation.
3 days 2 hours ago #350505
by rodw
Replied by rodw on topic More advanced EtherCAT setup questions
Generally, parameters are set in your xml file using SDO's/ I have found one device where it was more convenient to set these using ethercat upload and download commands outside of LinuxCNC
Please Log in to join the conversation.
Time to create page: 0.035 seconds
