HAL component for tangential knife

More
6 months 2 weeks ago #345566 by rodw
I have not been able to review this further today but
In the interpreter I have added a couple of procedures here that calculate the headings
github.com/rodw-au/linuxcnc/blob/state-t...erp_convert.cc#L7080

tag_straight has a debugging print line that is correct. There is a simple gcode file here that draws a square
github.com/rodw-au/linuxcnc/blob/state-t.../nc_files/testg2.ngc
and the output in the print statement is perfect.
But the values are altered before it gets to the pins so I wanted to repeat the debugs with these files.

But look at that, I am not calling 
write_canon_state_tag(block,&_setup);
in tag_straight. Hopefully that is what's missing. I've hacked into this procedure so much, I had a clean up that went too far...

the block is written to state tags in
github.com/rodw-au/linuxcnc/blob/state-t...4ngc/interp_write.cc
both the block and the tags

the heading for the arc is calculated in motion at
github.com/rodw-au/linuxcnc/blob/state-t...tion/control.c#L2230
We need to do that because the interpreter tags are static for the life of the segment but on an arc, we need to calculate the heading at the point on the circle at every call of the servo-thread. It seems to be working but I have not validated the data.


Good luck!
 

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

More
6 months 2 weeks ago #345567 by bedouno
dear sir , i hope i can explain my idea in accurately , and hope it is usefull, what if we index the code data vector sent from the interpreter to the motion controler , like a sequence segment to force the motion controller to attach and trigger the heeding calculations to the segment without override , sure ther might be some data or technic in the strcure would be helpfull without adding a new data field

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

More
6 months 2 weeks ago #345568 by dm17ry
why not just align the C axis with the last segment of the trajectory? with trajectory blending on that worked okish for me on a leather cutting machine.

github.com/yur7aev/linuxcnc/blob/nyx2.8/...ponents/tangent.comp
The following user(s) said Thank You: tommylight

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

More
6 months 2 weeks ago #345573 by rodw
Pretty cool machine for somebody who had never seen one. Good for the OP to see there are other solutions.
I was envisaging much more gradual arcs. Maybe that was because I used to get 2mm rubber sheet cut with a tangential knife machine including 6mm dia holes.

When I started this, I wanted the arc radius and Andy asked me to add the tangential heading as by the time I had the radius, the heading was trivial. (so we thought anyway). It will be quite handy.
The following user(s) said Thank You: bedouno

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

More
6 months 2 weeks ago #345664 by bedouno
i hope to help with this analysis , it is made by AI, and this try to understand ,  

Your browser does not support embedded PDFs. Please download the file here: Download PDF.

 

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

More
6 months 2 weeks ago #345667 by rodw
Looks pretty good. I'll have to check it so I don't miss anything. :)
Sorry, I've had to focus on other projects these last few days which I have almost completed, then record an overdue video for my Youtube channel, then I will get back to this.
The following user(s) said Thank You: bedouno

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

Time to create page: 0.207 seconds
Powered by Kunena Forum