On May 5 2015 7:09 AM, matic bie wrote:
>> From: [email protected]
>> Date: Tue, 5 May 2015 14:01:03 +0100
>> To: [email protected]
>> Subject: Re: [Emc-developers] where the whole path is divided into 
>> segment      by segment
>>
>> On 5 May 2015 at 13:48, matic bie <[email protected]> wrote:
>>
>> > 
>> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/tp/tc_types.h;h=fe2ee4d7e474e250753a55b86e1def373d18f2cf;hb=f699c1cc1b108c871b2eb6607d8116dece7af6b3#l116
>> > Just in the comments there's  the word of segment.//where are we 
>> in the segment?  0..target
>>
>> In this context I think that a "segment" is a single move commanded 
>> by
>> G-code or a jog.
>
> So,i ask the question following earlier:Usually, how much is the
> length of the target(segment)?  In which function  is  the
> target(segment) calculated from G-code?Best regards.

That depends on the g-code command.  For example (off the top of my 
head, and there are likely to be mistakes after a night of insomnia, but 
this is to try to illustrate the point):

(assuming that the machine is configured in imperial inch mode)
g00 x0 y0 z0 (home the tool)
f10 (set the feed rate to 10 IPM)
g01 z-1 (plunge the tool down 1 inch using 10 IPM feed rate-- so the 
travel is 1 inch in the z direction)
g01 x20 (cut 20 inches in the x direction at the feed rate -- so the 
travel is 20 inches)
g01 y1 z0 (cut one inch up and in the y direction -- so the cut 
direction is actually the square root of 2 inches).

It gets more complicated when you use offset contouring, but you can 
calculate the actual tool-path travel with a little math.  Most people 
never bother doing this, they program in the Cartesian 
positions/locations and not the travel.  Are you trying to do something 
via relative movements?  That is possible also, but keep track is a lot 
more work.

Does this answer you question?  If not, please describe what you are 
trying to do and we can give it another go.

   EBo --

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to