[Emc-users] linux 2.6.4 switch from inch to mm problem

2016-05-29 Thread a k
Hello
i am using linux cnc 2. 6. 4
and i have problem with switching to machine to read program G code in mm.
i did went into INI and change inch to mm
i did restart - re-home CNC machine
in the program i did replace G20 to G21.
And i can not load mm g code-- it say travel out of range.

//
i found that if in INI file i leave INCH, and re start LCNC and in one line
with MDI command input
G91 G21 G1 x-5.  F20.
machine moves 5. mm,
but when i try to set G55 ...in mm machine does not moves

Is it known problem ?
How to fix it?


thank you
aram
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Copying an installation

2016-05-29 Thread dannym
OK, tried it with a $7 TRENDnet 10/100 card, deleted 70-persistent-net.rules, 
rebooted, and it works!

dmesg says:
[1.727414] 8139too :03:06.0: eth0: RealTek RTL8139 at 0x5000, 
00:14:d1:2e:fc:90, IRQ 10
[1.835906] tg3 :03:08.0: eth1: Tigon3 [partno(BCM95788) rev 3003] 
(PCI:33MHz:32-bit) MAC address 00:16:17:ad:3f:ea
[1.835914] tg3 :03:08.0: eth1: attached PHY is 5705 (10/100/1000Base-T 
Ethernet) (WireSpeed[0], EEE[0])
[1.835918] tg3 :03:08.0: eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] 
TSOcap[1]
[1.835923] tg3 :03:08.0: eth1: dma_rwctrl[763f] dma_mask[32-bit]
[   12.842836] 8139too :03:06.0: eth0: link up, 100Mbps, full-duplex, lpa 
0x45E1

It looks like the new card is a RealTek chip and somehow grabbed eth0, which is 
fine.  I recognize the eth1 as the OB stuff.

Servo Thread 1ms Max Jitter it 57,000 ns
Base Thread 25us Max Jitter was 47,000ns, but I don't think I even have 
anything using Base Thread.

Danny

 "Peter C. Wallace"  wrote: 
> On Sat, 28 May 2016, dan...@austin.rr.com wrote:
> 
> > Date: Sat, 28 May 2016 20:58:59 +
> > From: dan...@austin.rr.com
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: "Enhanced Machine Controller (EMC)" 
> > Subject: Re: [Emc-users] Copying an installation
> > 
> > Hmm, well, interesting, the LEDs are flashing wildly in a 
> >pseudorandomish-looking pattern.  They're all flickering independently, not 
> >all on/all off.  The 4th one (furthest from the ethernet port), that one 
> >looks like it's flickering off VERY briefly then back on once every 2 sec.
> >
> >"setp hm2_7i92.0.led.CR01 TRUE" in the Show HAL Configuration window for all 
> >the CR0x changes nothing, nor does setting FALSE.  They're flickering 
> >unchanged.
> >
> >When I quit LinuxCNC, the LED nearest the ethernet port goes off, the other 
> >3 
> >are solid-on. 
> >
> >Show HAL Configuration->Threads->servo-thread:
> >1  hm2_7i92.0.read
> >10 hm2_7i92.0.write
> >
> >So those are there.
> >
> >Danny
> 
> 
> Default user EEPROM settings make the user LEDs point to RXPKTCount so they 
> are just an activity indicator (this can be changed to HM2 LEDs by writing 0 
> to the LEDMode register in the setup EEPROM)
> 
> if they look ragged though that does suggest communication problems as they 
> should be counting up at a average 3 KHz rate (at 1 KHz servo thread) so the 
> slowest LED should be flickering at around 190 Hz (3 KHz / 16)
> 
> I would try another PC or at leas another NIC (Intel and Realtek are known to 
> work well for real time, Broadcom and Atheros, not so much)
> 
> 
> Peter Wallace
> 
> Mesa Electronics
> 
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] linux 2.6.4 switch from inch to mm problem

2016-05-29 Thread Andrew
Hi,

You just need to use G21 in Gcode, that's all!

If you switch to mm in INI file, you'll have to convert machine limits and
velocities to mm.

2016-05-29 23:05 GMT+03:00 a k :

> Hello
> i am using linux cnc 2. 6. 4
> and i have problem with switching to machine to read program G code in mm.
> i did went into INI and change inch to mm
> i did restart - re-home CNC machine
> in the program i did replace G20 to G21.
> And i can not load mm g code-- it say travel out of range.
>
> //
> i found that if in INI file i leave INCH, and re start LCNC and in one line
> with MDI command input
> G91 G21 G1 x-5.  F20.
> machine moves 5. mm,
> but when i try to set G55 ...in mm machine does not moves
>
> Is it known problem ?
> How to fix it?
>
>
> thank you
> aram
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] linux 2.6.4 switch from inch to mm problem

2016-05-29 Thread a k
Hi
the problem in setting G56 for example

to set G56  in mm  i input in MDI
G10 L2 P3 X-20. Y-10. Z -5.
this dimensions in mm.
when set G56 and input line above, how LCNC knows that i in mm. or in inch
 ?

maybe when one want to use mm. and set G56  need to be change INI all
into mm?

On Sun, May 29, 2016 at 1:21 PM, Andrew  wrote:

> Hi,
>
> You just need to use G21 in Gcode, that's all!
>
> If you switch to mm in INI file, you'll have to convert machine limits and
> velocities to mm.
>
> 2016-05-29 23:05 GMT+03:00 a k :
>
> > Hello
> > i am using linux cnc 2. 6. 4
> > and i have problem with switching to machine to read program G code in
> mm.
> > i did went into INI and change inch to mm
> > i did restart - re-home CNC machine
> > in the program i did replace G20 to G21.
> > And i can not load mm g code-- it say travel out of range.
> >
> > //
> > i found that if in INI file i leave INCH, and re start LCNC and in one
> line
> > with MDI command input
> > G91 G21 G1 x-5.  F20.
> > machine moves 5. mm,
> > but when i try to set G55 ...in mm machine does not moves
> >
> > Is it known problem ?
> > How to fix it?
> >
> >
> > thank you
> > aram
> >
> >
> --
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> > traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> > are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> > planning reports.
> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] linux 2.6.4 switch from inch to mm problem

2016-05-29 Thread Andrew
2016-05-29 23:49 GMT+03:00 a k :

> Hi
> the problem in setting G56 for example
>
> to set G56  in mm  i input in MDI
> G10 L2 P3 X-20. Y-10. Z -5.
> this dimensions in mm.
> when set G56 and input line above, how LCNC knows that i in mm. or in inch
>  ?
>
> maybe when one want to use mm. and set G56  need to be change INI all
> into mm?
>

What if you send G21 in MDI before all that?

Also you can use RS274NGC_STARTUP_CODE = G21 in INI file.
http://linuxcnc.org/docs/2.6/html/config/ini_config.html#sub:RS274NGC-section
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] linux 2.6.4 switch from inch to mm problem

2016-05-29 Thread a k
it works.
thank you
aram

On Sun, May 29, 2016 at 2:00 PM, Andrew  wrote:

> 2016-05-29 23:49 GMT+03:00 a k :
>
> > Hi
> > the problem in setting G56 for example
> >
> > to set G56  in mm  i input in MDI
> > G10 L2 P3 X-20. Y-10. Z -5.
> > this dimensions in mm.
> > when set G56 and input line above, how LCNC knows that i in mm. or in
> inch
> >  ?
> >
> > maybe when one want to use mm. and set G56  need to be change INI all
> > into mm?
> >
>
> What if you send G21 in MDI before all that?
>
> Also you can use RS274NGC_STARTUP_CODE = G21 in INI file.
>
> http://linuxcnc.org/docs/2.6/html/config/ini_config.html#sub:RS274NGC-section
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread linden
Hello all
 I  am trying to modify a script to convert G code programs that 
have there G2 and G3 arc centers (I and J) defined in relative terms to 
absolute values.
ie as the program is now it will run with G90 I need it to run properly 
with G90.1 Is there a way to do this with python. Can I get it to read 
through the lines of the program until it finds an I J or K and then go 
back to the previous line and add the current I value to the X value of 
the previous line to make the new I value absolute.
   I am sure this has been done before some where if some one has an 
example they could share or suggestions I would be much obliged. Is this 
even possible. I would prefer to do this with python and integrate it in 
to the current script (see snippet below) but I could live with bash if 
it was easer. Below are the lines in the current python script that read 
through the code and truncates the decimal places displayed. Could I add 
a block similar to this that when through before and did the conversion. 
Any suggestions or am i trying to do the imposable.

Thanks Linden

def parse(pathobj):
 out = ""
 lastcommand = None

 #params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list 
control the order of parameters
 params = ['X','Y','Z','A','B','I','J','F','S','T','Q','R','L']


for param in params:
 if param in c.Parameters:
 if param == 'F':
 outstring.append(param + 
format(c.Parameters['F'], '.0f'))
 elif param == 'S':
 outstring.append(param + 
format(c.Parameters[param], '.0f'))
 elif param == 'T':
 outstring.append(param + str(c.Parameters['T']))
 else:
 outstring.append(param + 
format(c.Parameters[param], '.3f'))


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread John Thornton
Parsing through files is a common thing to do. In python I'd just read 
each line of the file and remember the last line to get the XY 
coordinates to calculate the new offsets when you encounter a G2 or G3. 
I've written several G code generators you can see them on the wiki for 
inspiration. Look at the Arc Generator for my code to calculate arcs.

JT


On 5/29/2016 5:05 PM, linden wrote:
> Hello all
>   I  am trying to modify a script to convert G code programs that
> have there G2 and G3 arc centers (I and J) defined in relative terms to
> absolute values.
> ie as the program is now it will run with G90 I need it to run properly
> with G90.1 Is there a way to do this with python. Can I get it to read
> through the lines of the program until it finds an I J or K and then go
> back to the previous line and add the current I value to the X value of
> the previous line to make the new I value absolute.
> I am sure this has been done before some where if some one has an
> example they could share or suggestions I would be much obliged. Is this
> even possible. I would prefer to do this with python and integrate it in
> to the current script (see snippet below) but I could live with bash if
> it was easer. Below are the lines in the current python script that read
> through the code and truncates the decimal places displayed. Could I add
> a block similar to this that when through before and did the conversion.
> Any suggestions or am i trying to do the imposable.
>
> Thanks Linden
>
> def parse(pathobj):
>   out = ""
>   lastcommand = None
>
>   #params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list
> control the order of parameters
>   params = ['X','Y','Z','A','B','I','J','F','S','T','Q','R','L']
>
>
> for param in params:
>   if param in c.Parameters:
>   if param == 'F':
>   outstring.append(param +
> format(c.Parameters['F'], '.0f'))
>   elif param == 'S':
>   outstring.append(param +
> format(c.Parameters[param], '.0f'))
>   elif param == 'T':
>   outstring.append(param + str(c.Parameters['T']))
>   else:
>   outstring.append(param +
> format(c.Parameters[param], '.3f'))
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread Gene Heskett
On Sunday 29 May 2016 18:05:28 linden wrote:

> Hello all
>  I  am trying to modify a script to convert G code programs that
> have there G2 and G3 arc centers (I and J) defined in relative terms
> to absolute values.

This, to me, is an odd request.  I write 99% of my own code, and find the 
use of absolutes in arc data is a major pain in the butt.  I drive it to 
the starting point of the arc, do the arc in relative IJ, drive it to 
the next starting point, drive the arc in relative, wash rinse and 
repeat until the width of the board has been carved. I also, as a 
general rule but not always, do my own tool raduis compensation.  One 
routine in particular which carves green and green style (big box joints 
IOW) in wood can be configured by editing 2 variables at the top of the 
file, so as to carve all the joints in a blanket chest, inverting the 
pattern of the carving depending on whether the board being carved is a 
side piece or an end piece, or is the much narrower bottom base rail of 
the chest, again inverting the pattern depending on end piece or side 
piece.  Wood being the fickle stuff it is, I find the joint fit between 
the mating pieces is best controlled by fudging a wee bit on the tool 
diameter which in this case is a 1/4" solid carbide end mill, up spiral 
style.  So thats the third variable at the top of the file, usually set 
for about 2 thou smaller than it is, which in turn gives a joint fit 
with just enough room for a bit of Elmer's waterproof glue as I drive a 
screw thru the middle of each fingers face, into the gullet of the 
finger its mated with.  The face of the finger has been prepared to hide 
the screw by recessing the screws pan head and a well fitted washer into 
a counterbore, and the counterbore is topped with a recess that a square 
pillowtopped ebony button is driven and glued into.  All done in the 
same jig on the same milling machine except for the ebony bits, which 
are held in a separate jig and made by the sandwich baggy full in some 
cases.

If I had to do all that in absolute mode, I would gave given up and had 
myself committed long ago.

I can make that code available on my web page below if there is any 
interest.  I wouldn't even call it pretty, but it has worked, and worked 
well, even if the mahogany wants to warp, I have screws enough to pull 
it into shape and square.

> ie as the program is now it will run with G90 I need it to run
> properly with G90.1 Is there a way to do this with python. Can I get
> it to read through the lines of the program until it finds an I J or K
> and then go back to the previous line and add the current I value to
> the X value of the previous line to make the new I value absolute.
>I am sure this has been done before some where if some one has
> an example they could share or suggestions I would be much obliged. Is
> this even possible. I would prefer to do this with python and
> integrate it in to the current script (see snippet below) but I could
> live with bash if it was easer. Below are the lines in the current
> python script that read through the code and truncates the decimal
> places displayed. Could I add a block similar to this that when
> through before and did the conversion. Any suggestions or am i trying
> to do the imposable.
>
> Thanks Linden
>
> def parse(pathobj):
>  out = ""
>  lastcommand = None
>
>  #params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list
> control the order of parameters
>  params = ['X','Y','Z','A','B','I','J','F','S','T','Q','R','L']
>
>
> for param in params:
>  if param in c.Parameters:
>  if param == 'F':
>  outstring.append(param +
> format(c.Parameters['F'], '.0f'))
>  elif param == 'S':
>  outstring.append(param +
> format(c.Parameters[param], '.0f'))
>  elif param == 'T':
>  outstring.append(param +
> str(c.Parameters['T'])) else:
>  outstring.append(param +
> format(c.Parameters[param], '.3f'))
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network
> bandwidth and traffic patterns at an interface-level. Reveals which
> users, apps, and protocols are consuming the most bandwidth. Provides
> multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make
> informed decisions using capacity planning reports.
> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

-

Re: [Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread Andy Pugh


> On 29 May 2016, at 23:05, linden  wrote:
> 
> ie as the program is now it will run with G90 I need it to run properly 
> with G90.1

Isn't this a false dichotomy?

The exclusive options are G90 or G91 and G90.1 or G91.1

It is perfectly possible to run with G90 _and_ G90.1



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread Andy Pugh


> On 29 May 2016, at 23:54, Gene Heskett  wrote:
> 
> This, to me, is an odd request.  I write 99% of my own code, and find the 
> use of absolutes in arc data is a major pain in the butt

If you have a  drawing with arc centres dimensioned from the origin then 
absolute arc centres are much easier. 

If you don't then they aren't. It depends what you are working from.  
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] LCNC and 3d Printer

2016-05-29 Thread a k
Hello

i just run kissliser http://www.kisslicer.com/
and many people use it because it free (some realize free )

here is how main code looks like

G1 X-2.89 Y29.74 E2.48
G1 X0.49 Y29.72 E2.1506
G1 X4.23 Y29.5 E2.3874
G1 X7.73 Y29.13 E2.2395
G1 X11.56 Y28.58 E2.4618
G1 X14.92 Y28 E2.1725
G1 X18.51 Y27.24 E2.3375
G1 X22.09 Y26.24 E2.3664

///

regular X and Y and after layer complete Z move incrementally

up.

And here is also E parameter that increase or decrease

speed of wire/ filament..

Can LCNC  make LCNC 3d printer ready and make output for E

parameter ?

like rated from 0 V DC to 5 V DC. that will proportionally

 indicates speed of plastic filament /wire .

Looks similar how i stop LCNC with 0-5 V DC but in this

case LCNC will sent frequency out that will

converted into 0 - 5 v DC or use just PWM for control

 filament or wire etc.

LCNC can use 2 boards  5I20 , there are 4 more

encoder channels that can be used for this purpose.

Thak you

aram
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] python bash or some other way to convert arcs from relative to absolute

2016-05-29 Thread linden
Thank you John

It is courtesy of your tutorials that i have a very basic understanding 
of python in the first place.
I will go and poke around the source of your Arc Generator and see what 
i can figure out,
At least i know how one would go about this now and that it is possible.
As always making things work in practice takes a bit more than making 
them work in theory.

The reason for this silliness in the first place is I have one old 
controller that has not been replaced with linuxCNC yet. It only 
recognizes absolute arks. All my programs are programed with relative 
arcs and it is driving me nuts making a second copy and hand editing any 
of my programs that i have to run on this machine.
Now i have two versions to keep current ect. ect. What I am aiming for 
is to keep one master program and run it the way it is on my linux 
machine or run it through a post for my non linux machine until i get to 
replacing this one odd controller.

Thanks again for your help

linden

On 16-05-29 03:41 PM, John Thornton wrote:
> Parsing through files is a common thing to do. In python I'd just read
> each line of the file and remember the last line to get the XY
> coordinates to calculate the new offsets when you encounter a G2 or G3.
> I've written several G code generators you can see them on the wiki for
> inspiration. Look at the Arc Generator for my code to calculate arcs.
>
> JT
>
>
> On 5/29/2016 5:05 PM, linden wrote:
>> Hello all
>>I  am trying to modify a script to convert G code programs that
>> have there G2 and G3 arc centers (I and J) defined in relative terms to
>> absolute values.
>> ie as the program is now it will run with G90 I need it to run properly
>> with G90.1 Is there a way to do this with python. Can I get it to read
>> through the lines of the program until it finds an I J or K and then go
>> back to the previous line and add the current I value to the X value of
>> the previous line to make the new I value absolute.
>>  I am sure this has been done before some where if some one has an
>> example they could share or suggestions I would be much obliged. Is this
>> even possible. I would prefer to do this with python and integrate it in
>> to the current script (see snippet below) but I could live with bash if
>> it was easer. Below are the lines in the current python script that read
>> through the code and truncates the decimal places displayed. Could I add
>> a block similar to this that when through before and did the conversion.
>> Any suggestions or am i trying to do the imposable.
>>
>> Thanks Linden
>>
>> def parse(pathobj):
>>out = ""
>>lastcommand = None
>>
>>#params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list
>> control the order of parameters
>>params = ['X','Y','Z','A','B','I','J','F','S','T','Q','R','L']
>>
>>
>> for param in params:
>>if param in c.Parameters:
>>if param == 'F':
>>outstring.append(param +
>> format(c.Parameters['F'], '.0f'))
>>elif param == 'S':
>>outstring.append(param +
>> format(c.Parameters[param], '.0f'))
>>elif param == 'T':
>>outstring.append(param + str(c.Parameters['T']))
>>else:
>>outstring.append(param +
>> format(c.Parameters[param], '.3f'))
>>
>>
>> --
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides mu