- Posts: 19306
- Thank you received: 0
4th axis tangent to path XY
15 years 1 month ago #13338
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
ioiotutu wrote:
It is more likely that I made a mistake in the tangentkins file. I will try to have a look at it tonight.
Nothing, you can ignore those warnings.what do i wrong?
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 to join the conversation.
15 years 1 month ago #13346
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
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.
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 to join the conversation.
15 years 1 month ago #13366
by ioiotutu
Replied by ioiotutu on topic Re:4th axis tangent to path XY
Ok.
Please Log in to join the conversation.
15 years 1 month ago #13371
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
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.
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 to join the conversation.
15 years 1 month ago #13390
by ioiotutu
Replied by ioiotutu on topic Re:4th axis tangent to path XY
No problem. It is normal with the software!!
Please Log in to join the conversation.
15 years 1 month ago #13413
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
This seems to work for me.
Attachment tangentkins-e5f395293a85db981ef930f5d7473665.zip not found
Please Log in to join the conversation.
- bvandiepenbos
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
15 years 1 month ago #13421
by bvandiepenbos
Replied by bvandiepenbos on topic Re:4th axis tangent to path XY
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?
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 to join the conversation.
15 years 1 month ago #13423
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
bvandiepenbos wrote:
I think your idea might be better done in the preprocessor, though.
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.Would this be dificult to add to the kins module?
I think your idea might be better done in the preprocessor, though.
Please Log in to join the conversation.
- bvandiepenbos
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
15 years 1 month ago #13424
by bvandiepenbos
Replied by bvandiepenbos on topic Re:4th axis tangent to path XY
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
what do you mean by a processor?
~*Brian
Please Log in to join the conversation.
15 years 1 month ago #13427
by andypugh
Replied by andypugh on topic Re:4th axis tangent to path XY
bvandiepenbos wrote:
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.
It would cut the current line at angle A to the path.but the angle needs to vary in real time as part is being cut (the whole job does not get cut at same angle)
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 to join the conversation.
Time to create page: 0.354 seconds
