HAL CiA402 Drive Interface for Can Bus,Ethercat etc...

More
1 year 3 months ago - 1 year 3 months ago #331484 by Hakan
Is that the Delta 2000 CMC-EC01?
There is a manual for download includes a speed demo example.
downloadcenter.deltaww.com/en-US/Downloa...=cdate&sort_dir=DESC
Last edit: 1 year 3 months ago by Hakan.

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

More
1 year 3 months ago #331491 by Marko6
Hi. Yes, but no.

Speed tutorial is there but its just procedure what to send to drive. I have no clue how to implement that to Linuxcnc. 

 Thank you.

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

More
1 year 3 months ago - 1 year 3 months ago #331504 by Hakan
Yeah, it seems you can't do that with the standard cia402 component.
It only support csp mode(1) and possibly csv(0), and what I read your device is working in asynchronous velocity mode(2) and that's not supported at least fully.
It's the controlword, obviously, that starts and stops the motor.
Normally the cia402 component has full control over the controlword and that must be now manipulated by setting on and off bit 4-6 (7F vs 0F) for start stop
There is the option to modify the cia402 component, but maybe "easier" to manipulate the controlword
between cia402 component and lcec.

Break the connection between cia402 and lcec controlword and insert something like
if op-enabled (controlword bit 0-3 set) and start pin (new pin)
  set controlword bit 4-6 true
else
  set controlword bit 4-6 false
with hal logic. The resulting controlword connects to lcec.

In addition to that, don't connect any of the cia402 commanded or feedback pins, do the speed setting and speed feedback outside the cia402 component. Basically, the cia402 component will bring the device to op-enabled, that's all. You set the op-mode and all speed settings directly to lcec.

 
Last edit: 1 year 3 months ago by Hakan. Reason: Fixed 7F and 0F conversion to bits
The following user(s) said Thank You: Marko6

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

More
1 year 3 months ago #331534 by Marko6
Hi. Thanks for the help. It works now. It's not finished yet, but it's a good start.
Here are my files, maybe someone will like it. :-)

​BR Pavel



File Attachment:

File Name: cia402.comp
File Size:10.84 KB

File Attachment:

File Name: cia402_2025-07-08.hal
File Size:5.96 KB

File Attachment:

File Name: ethercat-c...7-08.xml
File Size:8.85 KB

File Attachment:

File Name: cia402_2025-07-08.ini
File Size:4.68 KB

File Attachment:

File Name: cw-start.comp
File Size:563 B

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

More
1 year 3 months ago - 1 year 3 months ago #331536 by Hakan
Looks great! 
A new component for the logic, even the easiest way.
Btw, I noticed my hex to bin conversion was totally wrong, but you get the point with 7F and 0F.
Last edit: 1 year 3 months ago by Hakan.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum