- Posts: 184
- Thank you received: 0
caxis.comp - How to freewheel axis/spindle?
1 year 8 months ago #320380
by Benb
Replied by Benb 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.
Please Log in to join the conversation.
1 year 8 months ago #320452
by spumco
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.
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?
@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.
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 to join the conversation.
1 year 8 months ago #320482
by jpg
Replied by jpg 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.
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!
Please Log in to join the conversation.
1 year 8 months ago #320489
by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?
@jpg-
What OFFSET are you referring to?
What OFFSET are you referring to?
Please Log in to join the conversation.
1 year 8 months ago #320493
by jpg
Replied by jpg 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
...
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 to join the conversation.
1 year 8 months ago #320494
by spumco
What you posted is from @Benb's suggestion a few posts earlier, not part of my configuration.
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 to join the conversation.
1 year 8 months ago #320495
by jpg
Replied by jpg on topic caxis.comp - How to freewheel axis/spindle?
yes, that's right, I wanted to understand what this component brings.
Please Log in to join the conversation.
1 year 8 months ago #320497
by spumco
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?
Would you mind starting a new thread for tangential questions?yes, that's right, I wanted to understand what this component brings.
Please Log in to join the conversation.
1 year 8 months ago #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?
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 to join the conversation.
1 year 8 months ago #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
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 to join the conversation.
Time to create page: 0.061 seconds
