LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Breaking Up An Arc

My little CNC machine gags when I try to cut an arc > 180 degrees.  I want to cut a CW arc that's nearly a full circle; so I have to break it up into smaller arcs.  I use an increment of 120 degrees.

The attached VI works fine, but I wonder if there's a cleaner way.

0 Kudos
Message 1 of 6
(510 Views)

t are typical default values? With the current settings, we only get four points, forming a triangle, not an arc. I assume the machine has an arc command and these are the starting points?

 

I have the feeling that things could be simplified, but I am heading for the airport. Maybe I have WIFI in the terminal.... 😄

0 Kudos
Message 2 of 6
(493 Views)

@altenbach wrote:

t are typical default values?


Yes.

 

With the current settings, we only get four points, forming a triangle, not an arc. I assume the machine has an arc command and these are the starting points?

Yes (except the last one is the end point).

0 Kudos
Message 3 of 6
(467 Views)

In the original, I forgot to add back the offset for the center (I didn't notice at first because I was using (0,0) as the center).  Here is the fixed version.

 
 
0 Kudos
Message 4 of 6
(463 Views)

Here is my latest version (can't attach .vi because the file attacher is broken again).Break Arc Into Segments.vim Snippet.png

Message 5 of 6
(455 Views)

@paul_a_cardinale wrote:

In the original, I forgot to add back the offset for the center (I didn't notice at first because I was using (0,0) as the center).  Here is the fixed version.

 
 

Granted, I don't know what commands your CNC wants, but I was really wondering why you did not shift based on the center.

 

Here's a quick idea, but please verify. There are two possible paths going from start to end (CCW, CW). Can we assume that is defined somewhere?

 

sections.png

 

Message 6 of 6
(375 Views)