How to write HAL logic with Motion and Offset pin?
- giantstone
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 0
22 Aug 2016 03:34 - 22 Aug 2016 05:58 #79230
by giantstone
Replied by giantstone on topic How to write HAL logic with Motion and Offset pin?
The THC config controls Z axis via HAL pins. In my understanding I need a real physical pin's signal to do it.
but my "signal" to control Z axis is from a python script that runs some functions on camera images. I dont know how to bridge this signal to a HAL pin signal in a python script in real-time while linuxcnc is cutting things.
btw, how do i make C axis tangent to the cutting path using dmap2gcode?
but my "signal" to control Z axis is from a python script that runs some functions on camera images. I dont know how to bridge this signal to a HAL pin signal in a python script in real-time while linuxcnc is cutting things.
btw, how do i make C axis tangent to the cutting path using dmap2gcode?
Last edit: 22 Aug 2016 05:58 by giantstone.
Please Log in or Create an account to join the conversation.
- giantstone
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 0
25 Aug 2016 14:30 #79425
by giantstone
Replied by giantstone on topic How to write HAL logic with Motion and Offset pin?
Hi Tom,
somehow dmap2gcode produces very strange Gcode,
please take alook at my depth picture and the Gcode,
the G code is like thousands of thousands lines....
something must be wrong.
somehow dmap2gcode produces very strange Gcode,
please take alook at my depth picture and the Gcode,
the G code is like thousands of thousands lines....
something must be wrong.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1440
25 Aug 2016 15:11 #79430
by Todd Zuercher
Replied by Todd Zuercher on topic How to write HAL logic with Motion and Offset pin?
Sorry, but I can't make any sense out of what your code is, or should be. I can't even figure out what is supposed to be going on in the jpg, let alone the g-code, yuck what a mess. the g-code looks like some sort of raster file but something doesn't seem quite right. Do you have a vector file of the cuts, or a 3-d mesh of the shape you want? And maybe I just don't understand what you are trying to achieve.
The following user(s) said Thank You: giantstone
Please Log in or Create an account to join the conversation.
- giantstone
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 0
25 Aug 2016 15:18 #79432
by giantstone
Replied by giantstone on topic How to write HAL logic with Motion and Offset pin?
Hi Todd, thanks for your quick reply.
Please take a look at the new pictures.
Picture 1 is a fur with cut lines,
and picture 2 is only the cut lines.
I want to make a G-code that performs the cuttings,
( I'm trying to generate the G-code from dmap2gcode,
i tried a lot different parameters and all with no luck. )
Please take a look at the new pictures.
Picture 1 is a fur with cut lines,
and picture 2 is only the cut lines.
I want to make a G-code that performs the cuttings,
( I'm trying to generate the G-code from dmap2gcode,
i tried a lot different parameters and all with no luck. )
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1440
25 Aug 2016 16:27 #79434
by Todd Zuercher
Replied by Todd Zuercher on topic How to write HAL logic with Motion and Offset pin?
Ugh, nope, still don't get it. (I just don't understand the process that needs to be done. Which is OK since I'm not a furrier.)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19016
- Thank you received: 6371
26 Aug 2016 00:43 #79452
by tommylight
Replied by tommylight on topic How to write HAL logic with Motion and Offset pin?
Here we go,
dmap2gcode can do quite good depth maps, but not from that picture, the best i could get is attached as 21.ngc
inkscape can do all kinds of image manipulations, but not from that picture. See attached 2.jpg.svg and the resulting gcode as output_0002.ngc.
They are both useless.
I also have to agree with Todd, i still do not know what are you trying to do so we keep running in circles.
One idea that came to mind is: you need this to cut leather, so have a look at national geographic how it's made about bently or rols royce, and see how they do that............manually mostly, and with cnc cutters.
Let's try and figure some things,
what or how are you getting those cut images ???
why do you have lines cutting through several pieces of "fur" ? that looks like a lot of waisted material.
if it is actual fur, how dense and how long are the hairs? do they hinder the cutting blade ?
if it is fur, cutting with rotary tools is out since they will mess up the spindle in about 3 minutes flat,
a round drag blade can be used for that, but it will also cut the hairs near the edges
..............................???????????
dmap2gcode can do quite good depth maps, but not from that picture, the best i could get is attached as 21.ngc
inkscape can do all kinds of image manipulations, but not from that picture. See attached 2.jpg.svg and the resulting gcode as output_0002.ngc.
They are both useless.
I also have to agree with Todd, i still do not know what are you trying to do so we keep running in circles.
One idea that came to mind is: you need this to cut leather, so have a look at national geographic how it's made about bently or rols royce, and see how they do that............manually mostly, and with cnc cutters.
Let's try and figure some things,
what or how are you getting those cut images ???
why do you have lines cutting through several pieces of "fur" ? that looks like a lot of waisted material.
if it is actual fur, how dense and how long are the hairs? do they hinder the cutting blade ?
if it is fur, cutting with rotary tools is out since they will mess up the spindle in about 3 minutes flat,
a round drag blade can be used for that, but it will also cut the hairs near the edges
..............................???????????
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds