caxis.comp - How to freewheel axis/spindle?

More
02 Feb 2025 01:39 - 02 Feb 2025 01:41 #320380 by Benb
Attached is block diagram showing a spindle orient example. I also attached the hal netlist.PID, limit2, offset, … etc parameters values are not complete, you will need to figure them out as you experiment. 

 
Attachments:
Last edit: 02 Feb 2025 01:41 by Benb.
The following user(s) said Thank You: jpg

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

More
02 Feb 2025 21:39 #320452 by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?

Attached is block diagram showing a spindle orient example. I also attached the hal netlist.PID, limit2, offset, … etc parameters values are not complete, you will need to figure them out as you experiment. 


 

@Benb -

Thank you for the comments.

I already have orient working on my subspindle, and generally understand how it works and fits with other LCNC functions.

The problem with trying to combine orient with caxis.comp (attached in the first post) is that the caxis.comp functions are 'in charge' of the spindle motor at all times, except when a spindle-on command is issued.  When the spindle is stopped, C-axis takes over and the PID ferror returns the spindle position to the last position prior to the M3/M4.

I don't know this for a fact, but I think what would happen is a race condition where once the spindle-off signal is triggered, but before orient.comp is engaged, caxis.comp will 'take over' the spindle and return it to the original position.

Meaning orient.comp wouldn't be useful to get the spindle close enough after freewheeling and before re-engaging the c-axis.

If Aciera's unhoming python comp doesn't work, and PCW's doesn't either, I will likely revisit orient.comp.

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

More
03 Feb 2025 10:10 - 03 Feb 2025 10:12 #320482 by jpg

Attached is block diagram showing a spindle orient example. I also attached the hal netlist.PID, limit2, offset, … etc parameters values are not complete, you will need to figure them out as you experiment. 







Hello, could you tell me what OFFSET is used for in your configuration, I'd like to know more about it, on which machine do you use it?
Bravo SPUMCO for your tests on the C axis, it's really a very special configuration, thank you for sharing, I admire your perseverance!

 

Last edit: 03 Feb 2025 10:12 by jpg.

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

More
03 Feb 2025 11:39 #320489 by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?
@jpg-

What OFFSET are you referring to?

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

More
03 Feb 2025 12:31 #320493 by jpg
loadrt offset count= 1
addf offset.0.update-output servo-thread
addf offset.0.update-feedback servo-thread
setp offset.0.offset 1
net pid-orient-pos-cmd offset.0.out pid.1.command
...

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

More
03 Feb 2025 12:59 #320494 by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?

loadrt offset count= 1
addf offset.0.update-output servo-thread
addf offset.0.update-feedback servo-thread
setp offset.0.offset 1
net pid-orient-pos-cmd offset.0.out pid.1.command
...


What you posted is from @Benb's suggestion a few posts earlier, not part of my configuration.

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

More
03 Feb 2025 13:18 #320495 by jpg
yes, that's right, I wanted to understand what this component brings.

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

More
03 Feb 2025 13:29 #320497 by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?

yes, that's right, I wanted to understand what this component brings.

Would you mind starting a new thread for tangential questions?
The following user(s) said Thank You: jpg

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

More
04 Feb 2025 03:05 #320553 by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?
@Aciera -

I tried to use the python comp, but I'm getting an error. Probably related to my installation rather than your file.

lathe@lathe:~$ halcmd loadusr /home/lathe/linuxcnc/configs/LATHE_REV1.713/python/unhome_comp.py
lathe@lathe:~$ /usr/bin/env: ‘python3\r’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

Any ideas?

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

More
04 Feb 2025 08:38 #320584 by Aciera
Replied by Aciera on topic caxis.comp - How to freewheel axis/spindle?
Note the backslash-r in ‘python3\r’.
Seems that you have a problem with line endings, did you handle the file on a windows system?

If you have to use Windows maybe this helps:
sberahimzadeh.medium.com/solve-the-error...python3-f58dcf02add4

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

Time to create page: 0.084 seconds
Powered by Kunena Forum