4th axis tangent to path XY

More
21 Sep 2011 10:07 #13338 by andypugh
ioiotutu wrote:

what do i wrong?

Nothing, you can ignore those warnings.
It is more likely that I made a mistake in the tangentkins file. I will try to have a look at it tonight.

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

More
22 Sep 2011 00:42 #13346 by andypugh
Yes, I definitely made an error.
Annoyingly I had it working, but got in a tangle with save/compile/test and can't figure out which combination worked (the problem is a pointer indirection issue on the HAL pin variable)
I have run out of brainpower for tonight (01:42 here), I will look at it again tomorrow.

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

More
22 Sep 2011 17:57 #13366 by ioiotutu
Ok.

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

More
23 Sep 2011 00:09 #13371 by andypugh
Still no luck. I am baffled (I have created drivers with hundreds of pins, this should be trivial).
Latest iteration locked my Virtual Machine completely. I am beginning to wonder if it is a VM problem. I will have to try doing this on the real EMC2 dev machine, not in a VM while I play around on the internet on my Mac.

Trust me, it isn't difficult, I am just getting too distracted and messing up.

It basically comes down to one mis-placed "*" in the file. Normally the HAL pin pointers live in a struct, and you hal_malloc them. I am trying to avoid the struct definition because it it only one pin, but perhaps I have to do it that way.

Tomorrow, I promise.

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

More
23 Sep 2011 12:45 #13390 by ioiotutu
No problem. It is normal with the software!!

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

More
23 Sep 2011 21:56 #13413 by andypugh
This seems to work for me.

File Attachment:

File Name: tangentkin...3665.zip
File Size:1 KB
Attachments:

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

More
24 Sep 2011 16:35 #13421 by bvandiepenbos
Wow, this is all very interesting. It reminds me of another project of mine that has been on the back burner for a few years.
I need to try out this tangent kinematics module!
Sounds like it will do some of what I was thinking...steering a cutter, however my tool would be a chisel shape for engraving.
In addition to keeping tool tangent to XY direction I want to be able to turn tool from tangent either direction in real time.
This would allow my engraving machine to "carve" variable widths with same tool.
In addition would want to be able to 'wag' tool back and forth as it moves in XY... to produce zig-zag cuts.
Does this make any sense?
Would this be dificult to add to the kins module?
If it could then maybe the chisel/tools angle and 'wag' can be controlled in gcode with custom M codes?

Thanks.
~*Brian

sorry for butting in on your thread, should I start another instead?

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

More
24 Sep 2011 17:47 #13423 by andypugh
bvandiepenbos wrote:

Would this be dificult to add to the kins module?

It could be as easy as just changing a line in that code so that the tangent angle is added on to A rather than over-riding it.

I think your idea might be better done in the preprocessor, though.

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

More
24 Sep 2011 17:53 #13424 by bvandiepenbos
changing a line in kins code? ...but the angle needs to vary in real time as part is being cut (the whole job does not get cut at same angle)

what do you mean by a processor?


~*Brian

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

More
24 Sep 2011 18:52 #13427 by andypugh
bvandiepenbos wrote:

but the angle needs to vary in real time as part is being cut (the whole job does not get cut at same angle)

It would cut the current line at angle A to the path.
G1 X3 A5
G1 Y5 A-10
(for example)
Wiggly lines are more difficult. The kins module doesn't really know enough to do it.

what do you mean by a processor?[/quote[
Preprocessor, the software that creates the G-code.

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

Time to create page: 0.181 seconds
Powered by Kunena Forum