Re: [Emc-users] LinuxCNC in use on 5axis

2021-06-20 Thread Frank Tkalcevic
Very nice.  What CAM are you using the generate the 5-axis gcode?

-Original Message-
From: Tomaz T. [mailto:tomaz_...@hotmail.com] 
Sent: Monday, 21 June 2021 5:33 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] LinuxCNC in use on 5axis

Recent project done on my DIY 5-axis, controlled by LinuxCNC, just to
encourage if anyone taking similar path:

https://www.youtube.com/watch?v=TobQG2T7YV4

Regards!

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Touch screen for LinuxCNC

2021-06-02 Thread Frank Tkalcevic
That's what I've based my wizards on.  I started using that version, but had
trouble laying out the screen using python and the toolkit it used.  I ended
up writing a c++ version with preview, but that never got pass a beta
version.

My old lathe wizards are here...

https://github.com/ftkalcevic/LinuxCNC/tree/gwiz2/contrib/gwiz2/wizards/lath
e_wizards/lathe/3_turning

They are basically a...
* desc - description file
* config - list of parameters for the wizard
* *.ngc - gcode implementation of the wizard
* screen.png - image to display with the wizard.

There are other wizard projects that I've seen on the forum.

-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 2 June 2021 3:17 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Touch screen for LinuxCNC

These are from 2011 or so.
https://github.com/LinuxCNC/wizards
 
Is anyone using them?

> -Original Message-
> From: andrew beck [mailto:andrewbeck0...@gmail.com]
> Sent: June-01-21 9:47 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Touch screen for LinuxCNC
> 
> Never used the Mach ones.  But anything like the path pilot stuff.
> 
> Eg profile cycles
> Parting
> Facing
> Threading
> Taper threading
> Tapping
> Grooving
> Straight Turning
> Etc.
> 
> Only ones I really want are the first 4
> 
> Just for easy fast jobs without cam
> 
> 
> On Wed, Jun 2, 2021, 4:37 PM John Dammeyer  wrote:
> 
> > Specifically what sort of wizards.  Like the MACH ones?
> >
> > > -Original Message-
> > > From: andrew beck [mailto:andrewbeck0...@gmail.com]
> > > Sent: June-01-21 9:24 PM
> > > To: Enhanced Machine Controller (EMC)
> > > Subject: Re: [Emc-users] Touch screen for LinuxCNC
> > >
> > > Need to get this conversational stuff going on my machines.
> > >
> > > It would be good to get something set up that is part of the install
iso
> > > for axis maybe for the wizards
> > >
> > > On Wed, Jun 2, 2021, 4:18 PM John Dammeyer 
> > wrote:
> > >
> > > > Nicely done!
> > > >
> > > > > -Original Message-
> > > > > From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au]
> > > > > Sent: June-01-21 9:10 PM
> > > > > To: 'Enhanced Machine Controller (EMC)'
> > > > > Subject: Re: [Emc-users] Touch screen for LinuxCNC
> > > > >
> > > > > The version of touchy I'm running doesn't have the 3d preview.
I'm
> > > > using
> > > > > it on a lathe and typically run wizards, so I don't miss the
preview.
> > > > >
> > > > > I have an MGP type jog wheel and some buttons mounted around the
> > frame,
> > > > > connected via a homemade USB HID controller.  The jog wheel and
> > buttons
> > > > are
> > > > > wired up like they were a pendant.
> > > > >
> > > >
> >
http://www.franksworkshop.com.au/wordpress/2019/09/25/cnc-lathe-touch-screen
-interface/
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: John Dammeyer [mailto:jo...@autoartisans.com]
> > > > > Sent: Wednesday, 2 June 2021 12:52 PM
> > > > > To: 'Enhanced Machine Controller (EMC)'
> > > > > Subject: Re: [Emc-users] Touch screen for LinuxCNC
> > > > >
> > > > > Does Touchy now have the 3D preview that Jon mentioned?  Are you
> > using a
> > > > > rotary MPG type knob for it?  Back when I was using MACH3 I bought
a
> > > > MODIO
> > > > > which has a 100 PPR encoder and buttons and uses MODBUS to talk to
> > MACH3.
> > > > >
> > > > > I think there's a driver for it under LinuxCNC.  Again something
like
> > > > that
> > > > > with buttons along a standard monitor with the buttons taking the
> > place
> > > > of
> > > > > the touch screen inputs.  Whether it be ModBus or CAN with CANopen
> > then
> > > > > becomes  a moot point.Still just 4 wires for power, ground and
> > coms
> > > > up
> > > > > to the display.
> > > > >
> > > > > > -Original Message-
> > > > > > From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au]
> > > > > > Sent: June-01-21 6:47 PM
> > > > > > To: 'Enhanced Machine Controller (EMC)'
> > > > > > Sub

Re: [Emc-users] Touch screen for LinuxCNC

2021-06-01 Thread Frank Tkalcevic
The version of touchy I'm running doesn't have the 3d preview.   I'm using
it on a lathe and typically run wizards, so I don't miss the preview.  

I have an MGP type jog wheel and some buttons mounted around the frame,
connected via a homemade USB HID controller.  The jog wheel and buttons are
wired up like they were a pendant.
http://www.franksworkshop.com.au/wordpress/2019/09/25/cnc-lathe-touch-screen
-interface/



-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 2 June 2021 12:52 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Touch screen for LinuxCNC

Does Touchy now have the 3D preview that Jon mentioned?  Are you using a
rotary MPG type knob for it?  Back when I was using MACH3 I bought a MODIO
which has a 100 PPR encoder and buttons and uses MODBUS to talk to MACH3.

I think there's a driver for it under LinuxCNC.  Again something like that
with buttons along a standard monitor with the buttons taking the place of
the touch screen inputs.  Whether it be ModBus or CAN with CANopen then
becomes  a moot point.Still just 4 wires for power, ground and coms up
to the display.

> -Original Message-
> From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au]
> Sent: June-01-21 6:47 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] Touch screen for LinuxCNC
> 
> I got one of these...
> 
> https://www.aliexpress.com/item/32886510797.html
> 
> The side brackets are removable and it has vesa mounting holes on the
back.
> I use it with a PC - HDMI and USB connection.  I use it with touchy.
> 
> 
> 
> -Original Message-
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: Wednesday, 2 June 2021 9:07 AM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] Touch screen for LinuxCNC
> 
> If I wanted to set up a Pi4 with LinuxCNC and a touch screen is there any
> particular one that jumps out as the best solution?
> 
> And with an LCD display/touch screen other than 'axis' what is a more
usable
> screen?
> 
> Thanks
> John
> 
> "ELS! Nothing else works as well for your Lathe"
> Automation Artisans Inc.
> www dot autoartisans dot com
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Touch screen for LinuxCNC

2021-06-01 Thread Frank Tkalcevic
I got one of these...

https://www.aliexpress.com/item/32886510797.html

The side brackets are removable and it has vesa mounting holes on the back.
I use it with a PC - HDMI and USB connection.  I use it with touchy.



-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 2 June 2021 9:07 AM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Touch screen for LinuxCNC

If I wanted to set up a Pi4 with LinuxCNC and a touch screen is there any
particular one that jumps out as the best solution?
 
And with an LCD display/touch screen other than 'axis' what is a more usable
screen?
 
Thanks
John
 
"ELS! Nothing else works as well for your Lathe"
Automation Artisans Inc.
www dot autoartisans dot com 
 

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] [Emc-developers] Home_use_index issue revisited

2021-04-04 Thread Frank Tkalcevic
What I'm seeing (and I'm not a linuxcnc expert) looks correct.  After the
homing sequence it jumps to HOME.  This is documented here (0.1.3.7)
http://linuxcnc.org/docs/2.4/html/config_ini_homing.html




-Original Message-
From: Feral Engineer [mailto:theferalengin...@gmail.com] 
Sent: Sunday, 4 April 2021 1:58 PM
To: EMC developers; Enhanced Machine Controller (EMC)
Subject: [Emc-developers] Home_use_index issue revisited

Finally getting back around to messing with this mechanical/prox home
issue. See attached video link. I show what it is doing and explain what I
want it to do.

Thanks in advance for your help

https://youtu.be/XVz6v2YNXJQ

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

___
Emc-developers mailing list
emc-develop...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] experimental bearings for harmonic drive

2021-03-29 Thread Frank Tkalcevic
> That is an enticing thought, but that will require and entrance notch in 
> one side if the races

This is an example of not having to put a filling notch in your bearings -
https://youtu.be/3-Jcp8vFAko?t=41

There are not enough balls to reach all the way around, so they can be
easily loaded, but are then held in place with a cage (I'm guessing that's
how sealed units are made).



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT: Driving tiny steppers

2021-03-19 Thread Frank Tkalcevic
Thanks for the replies.

I adjusted the current, initially by measuring the reference voltage to get
(from memory) 150mA.  That ended up warming the motor too much, so I reduced
it some more.  Regardless of the current, the behaviour didn't change.

I do have some TMC stepper drivers around, I should see if that works.

I will end up replacing them with a geared version - same motor, but with a
small gear box, so full/half stepping might not be an issue.

Frank


-Original Message-
From: Gene Heskett [mailto:ghesk...@shentel.net] 
Sent: Friday, 19 March 2021 12:53 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] OT: Driving tiny steppers

On Thursday 18 March 2021 18:29:50 andy pugh wrote:

> On Thu, 18 Mar 2021 at 20:52, Frank Tkalcevic
>
>  wrote:
> > Is there anything special about driving these motors?
>
> I guess that as they are 20-step motors it is a long way between the
> poles, and microstepping relies on finding an elastic equilibrium
> between poles.

A lot of that can be blamed on the poor co-operation between the motor 
makers and the driver makers resulting in very poor mapping of the 
currents delivered, to the magnetic characteristics of the motor, and I 
have noted that the fine microstepping performance can and usually is, 
related to the ideal current ratios for the individual motor, due to the 
non-linear magnetic performance of the iron with improved performance in 
terms of degrees/step often obtained at less than full motor currants.  
But for a 20 step motor, if I needed fine results I'd gear it down to 
get the accuracy needed and drive the motor at no more than half step.

What I have observed is that you can get decent results from a 2M542 
driver at a little over half the max current, at a /8 or even /16. Swap 
that driver for a DM860 and its so much poorer, that there is no optimum 
current, even at a /32, its essentially a half step motor in terms of 
how far it moves for one step. And it hammers a nema34 something awful 
even running at a /16.

I know little about the A-4988, but its predecessor, A3977 used on the 3 
& 4 axis boards from another board maker isn't that good either.

YMMV of coarse, a lot at times.

> I think that it is often like you describe, just rather less obvious
> on a 200-step motor.


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] OT: Driving tiny steppers

2021-03-18 Thread Frank Tkalcevic
I have some small 15mm steppers, similar to this.

 

https://www.aliexpress.com/item/32872829855.html

 

I am trying to drive them with an A4988 stepper driver.  I can run them at
full step and half step, but anything smaller and they don't move linearly -
one phase appears to step correctly, but the other appears to stick, then
jump after a few steps.  I've tried adjusting the current, but it didn't
make any difference.

 

Is there anything special about driving these motors?

 

Frank

 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Probe recommendations.

2021-03-14 Thread Frank Tkalcevic
NYC CNC on youtube made their own using some pencil lead as the breakaway
for the Haimer 3d taster...

https://www.youtube.com/watch?v=pJhI98_Y3GI


-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com] 
Sent: Monday, 15 March 2021 4:42 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Probe recommendations.

Since we are discussing probes...
I've recently broken several tips due to stupidity/inattention and
replacements are expensive. Has anyone considered a safety breakaway based
on a kinematic coupling with the pre-loading supplied by rare earth magnets?

-Original Message-
From: Gene Heskett  
Sent: March 14, 2021 1:09 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Probe recommendations.

On Sunday 14 March 2021 06:34:04 andy pugh wrote:

> On Sun, 14 Mar 2021 at 10:07, Gene Heskett 
wrote:
> > > https://vers.by/en/touch-probes/9-vers-pr.html
> >
> > What is this in USD?
>
> It says "355.00 BYN~  10050 RUB,   136 USD,   113 EUR"

I went to the web site, very sparse with its data, but that is a decent
enough price, that I wonder what the shipping may be, and from where?

Thanks Andy.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Nice camera/probe integration

2021-03-13 Thread Frank Tkalcevic
There are a lot of "inexpensive" microscopes that are used for PCB repair and 
inspection like this one...

https://www.aliexpress.com/item/4000835475910.html

And more expensive auto-focus options...

https://www.aliexpress.com/item/4000835289877.html

There are many combinations of lens and camera.  Some USB only.  Some cameras 
have measuring software built in (used via a monitor).

Has anyone tried these for CNC location and measuring?


-Original Message-
From: Bari [mailto:bari00...@gmail.com] 
Sent: Saturday, 13 March 2021 7:39 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Nice camera/probe integration

The problem with the cheap webcams is all the frame averaging they 
automatically do. I regularly see decent machine vision camera bodies on 
ebay for ~$100 that won't have this issue. A decent lens is about the 
same used.

These pics were all taken with a cheap USB microscope ($50)� that was 
near useless when there was any motion:

https://imgur.com/2B3j01S

https://imgur.com/QU0ka4r

https://imgur.com/IFdlrj3

https://imgur.com/XKRdpFK

This was of a 50um gap between some caliper jaws. Sobel edge detect filter.

On 3/12/21 1:40 PM, Ralph Stirling wrote:
> I had in mind emulating the concept with Linuxcnc
> and low-budget cameras and probes, not forking over
> for the German luxury model.  I see on eBay cheap
> part locating cameras, like this:
>
> https://www.ebay.com/itm/254714062831
>
> and relatively cheap probes like this:
>
> https://www.ebay.com/itm/333094733077
>
> A swing arm like that Datron uses could be controlled
> with a beefy RC servo (swung against a mechanical
> stop for accuracy), and some python scripts could
> do the UI for picking the probing locations as the Datron
> video shows.
>
>


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Gear cutting setup on low-cost HF mill??

2021-03-11 Thread Frank Tkalcevic
> Harmonic and cycloidic reduction drives are to slow
>  6:1 or 10:1 should work.

My first robot arm used 9:1 3d printed cycloidal gear boxed (plus 3:1 motor
to gearbox pulley reduction).  Cyclodial ratios can be made small with less
teeth/lobes and larger pins.  I'm not sure if that makes them any stronger,
or more efficient.

At the end of this video is a graph that shows how various parameters
effects cycloid design - https://youtu.be/CJyCcXob0c8?t=49





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Gear cutting setup on low-cost HF mill??

2021-03-11 Thread Frank Tkalcevic
> Not sure if anyone mentioned, spiral hobs will not work unless your hob can
> be tilted to the required angle of the hob cutter. Even for straight teeth,
>  it's at least 1.5�.

Wouldn't it be easier in the home workshop to just tilt the rotary table 
holding the work piece up 1.5 degrees?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting schmartder about 3d

2021-02-21 Thread Frank Tkalcevic
The "nozzle fan" is actually a "part fan", used to cool down some plastics,
especially PLA, that have a low (50c) transition temperature.  Cooling the
nozzle, and heat block is bad; that's why they make silicone "socks" to
cover the heat block and nozzle.

You may want to try printing without the part cooling fan coming on for
PETG, as it sounds like those first layers worked well.

-Original Message-
From: Gene Heskett [mailto:ghesk...@shentel.net] 
Sent: Sunday, 21 February 2021 4:22 PM
To: Scott Harwell via Emc-users
Subject: [Emc-users] Getting schmartder about 3d

Greetings 3d printer folks;

Trying to make a good 83 tooth gear for the A axis on the 6040 gandty 
mill, I could get a beautifull laydown for about 2 or 3 layers, then it 
got porous and quite lumpy for the test of the build, and it finally 
dawned on me that that is about the height cura turns on the nozzle fan.

But one of the first mods I made was to replace the chute that directs 
that fans air in the general direction of tyhe nozzle, with one I 
printed that aims the air directly at the nozzle with its shape. I 
figure that also might explain why I have to run the nozzle at 245 to 
250C. And I occasionally get burned filament blobs. Then I noted cura 
has a 215C setting for generic PETG So I went down to 230 and 
essentially froze it up. 

So as a midprint experiment, I went into the merlin menu and set the max 
fan speed to 90, 255 is wide open, which is about the minimum it will 
even start. The ejector was clicking because it was slipping, but 10 
seconds later the clicking stopped, the fan, with that snoot on it, was 
too much. So now I've also dropped the nozzle to 238C, and I can 
probably turn the flow back up.  And one layer later, I am seeing the 
line by line laydown again but the lumps under it are showing thru.

Who knows, I might eventually learn how to drive this thing yet.

Maybe I can get it to flow at 215C but that would be with the fan turned 
off I expect.  cura doesn't say.

The roads to Weston WV are still too slick for UPS I guess, the $1900 
Dremel printer that was supposed to be here last Wednesday, is still 
showing as out for delivery at 4:07 Wednesday morning from Thornberg PA. 
Wherever that is, I've not seen a turnoff with that sign on it in the 
last 32 years of running across PA to near Ithaca NY. If it doesn't 
arrive Monday, I'll see if I can make Jeff send me another. Here in 
Weston, the local roads don't seem to bad to this old Iowa farm boy.  
They have not been so bad they would have stopped me if I need to go for 
a script or groceries, and I don't even have chains for this 4WD truck.

However, most WV drivers would probably use me for a target to T-bone so 
I've laid low. And can for about another week according to the freezer.

Stay safe and well folks.
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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Dealing with Servo Faults

2021-02-10 Thread Frank Tkalcevic
My home made machine connects the enables to the machine enable.  I don't
think it was my idea - I think it was based on one of the servo examples.
E-Stop is completely independent - connects to the e-stop switch, and axis
limit switches and kills power to the spindle and servos (originally it cut
ALL power, but shutting the PC down was silly).

-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 10 February 2021 4:09 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] Dealing with Servo Faults

Quick question.

There's a multi-axis operation in progress.  For whatever reason one of the
servos throws out a fault and of course stops.

Should just the enables to the other servo drives be removed or should power
be cut to all drives.

I'm not really in favour of dropping out power because that would mean you
also lose the ability to easily recover.  The other drives and spindle were
working so you really just want them stopped and things like coolant shut
off.  

This isn't the same as an ESTOP which does remove all power that could
result in motion.  Low voltage control and PC are left running.

For my PMDX-126 BoB my faults are consolidated and brings the PMDX /FAULT
input low.  That disables the ChargePump which in turn disables all outputs
including the enable to all the drive.  And the orange button beside the red
one on the user screen goes greyed out.

After 4 seconds the /FAULT input is once again brought high (inactive) and
now the orange ENABLE button on the screen (or F2) can be clicked which then
asserts the ENABLE output to the drives and allows hardware to be controlled
again.  

For my servos taking the ENABLE signal FALSE and then TRUE resets the FAULT
condition.   If the fault is still there then the /FAULT is brought low
again. Etc...

What do other systems (including commercial) do when a drive faults on one
axis.

John




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Maybe a minimally printed harmonic drive?

2021-01-26 Thread Frank Tkalcevic
In the "technical" section it says Efficiency 40% for the 28:1 ratio.  Are 
harmonic drives that bad, or is that a plastic limitation?


-Original Message-
From: Rene Hopf via Emc-users [mailto:emc-users@lists.sourceforge.net] 
Sent: Wednesday, 27 January 2021 8:38 AM
To: Enhanced Machine Controller (EMC)
Cc: Rene Hopf
Subject: Re: [Emc-users] Maybe a minimally printed harmonic drive?

Igus makes plastic harmonic drives: 

https://www.igus.de/product/20413


> On 26. Jan 2021, at 21:59, Chris Albertson  wrote:
> 
> ?I just did t quick Google and found several companies who make belts
> "sliced to order" in any width.   6" wide if you like
> 
> The other way to "print" a flex cup is the print a female mold and fill the
> mold with urethane and kevlar fiber.
> 
> I'm working on a robotic/prosthetic hand that uses this technique,  Many of
> the parts are made with a very strong kind of urethane.  This stuff really
> takes a beating.   This is really a good way to use a 3D printer, You can
> make multi-part molds that come apart to allow the molded parts to be
> removed.
> 
> 
> 
> 
> 
> 
>> On Tue, Jan 26, 2021 at 12:13 PM Todd Zuercher 
>> wrote:
>> 
>> For the belt idea, it might work better to invert the whole thing,  So you
>> have the belt teeth in and one gear with two fewer teeth than the belt,
>> then the follower wheels on the outside of the belt compressing it to mesh
>> with the smaller gear.  The hardest part might be finding a belt wide
>> enough to reliably flex between the two gear diameters.  (Something tells
>> me this sounds better than it can actually work in practice.)
>> 
>> Todd Zuercher
>> P. Graham Dunn Inc.
>> 630 Henry Street
>> Dalton, Ohio 44618
>> Phone:  (330)828-2105ext. 2031
>> 
>> -Original Message-
>> From: Sam Sokolik 
>> Sent: Tuesday, January 26, 2021 2:41 PM
>> To: Enhanced Machine Controller (EMC) 
>> Subject: Re: [Emc-users] Maybe a minimally printed harmonic drive?
>> 
>> plus - you fold one inside out - the pitch doesn't match up very well.
>> 
>> 
>>> On Tue, Jan 26, 2021 at 1:30 PM Gene Heskett  wrote:
>>> 
 On Tuesday 26 January 2021 13:04:11 Chris Albertson wrote:
>>> 
 The weak link on all 3D printed harmonic drives is the flex cup.  The
 plastic fails after some hours of use.The best design I've seen to
 overcome this is to NOT print the flex cup.  They used a wide double
 side timing belt for the inner teeth.
 
 The thing that very few You tubers do when designing 3D printed
 machines is to not simply copy the design of metal parts but start
 the design from the ground up knowing they will be using plastic.
 Plastic has very different strength and stiffness to volume ratios.
 So if your part looks like the metal equivalent it is a good clue
 you are doing "eyeball engineering" and your experience with metal
 is influencing your design.
 
 If you need to print a reduction gear and need a really big ratio
 the Cycloidic reduction system really does work better especially if
 the rolling parts are sealed bearing units that are press-fit into
 the plastic.
 
 That said, I've printed parts in plastic to directly replace metal
 or even rubber and I just have to accept the very short lifetime and
 low strength. Plastic is a good material to verify ideas quickly.
 
 In any case, use a timing belt for the flex wall and it might last
 30 years.
 
>>> But that brings up the tooth profile problem.  I've not seen a timing
>>> belt that resembles the triangular splines?
>>> 
 On Mon, Jan 25, 2021 at 8:47 PM Sam Sokolik 
>> wrote:
> I am sure the torque is limited - but I feel it might have
> possibility...
> 
> https://www.youtube.com/watch?v=QlpkmEEhFqc
> 
> ___
> 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)
>>> If we desire respect for the law, we must first make the law respectable.
>>> - Louis D. Brandeis
>>> Genes Web page 
>>> 
>>> 
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>> 
>> 
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> 
>> 
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> 
> 
> 
> -- 
> 
> Chris Albertson
> Redondo Beach, California
> 
> ___
> 

Re: [Emc-users] Rpi Pico

2021-01-22 Thread Frank Tkalcevic
I just received an advertising email from SparkFun.  They sell the Pi Pico
as well as 3 of their own variants with the RP2040 chip...


Thing Plus - https://www.sparkfun.com/products/17745
MicroMod - https://www.sparkfun.com/products/17720
Pro Micro - https://www.sparkfun.com/products/17717

I just noticed, they are for pre-order.


-Original Message-
From: Chris Albertson [mailto:albertson.ch...@gmail.com] 
Sent: Friday, 22 January 2021 4:05 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Rpi Pico

On Thu, Jan 21, 2021 at 7:56 PM Dave Cole  wrote:

> I was thinking multiple RPi Picos to one RPi4, but for just one, that is
> probably the way to go.
>

The Pico is a dual-core M0.   So it is faster than I had originally
thought.   Micro-Python is ported to it so it might be very easy for many
people to program.   I'm got my name in to be notified when they are back
in stock. I still think USB is the simplest way to connect while
experimenting.

One advantage of USB is that you need USB to program the Pico.   You would
run the development system on the Pi4 and change the firmware by copying
files or drag/drop.  If the Pico is SPI connected then you need to hunt
down a USB cable then walk out to the shop to change the firmware.



> I'll try that first!
>
> The Pi Hat as the carrier board is also a good idea.
>
> On 1/21/2021 7:46 PM, Chris Albertson wrote:
> > I'd bet SPI would work well but even easier would be to connect them to
> the
> > Pi4 with USB.  Both sides have software that makes the USB look like a
> > serial port and the physical connection is done with off the shelf
cable.
> >
> > I've used M0 boards this way in the past and using USB lets you also
cnet
> > them to a Linux PC
> >
> > What I like about the Pico is that it can be SMT hand soldered.  I can
> make
> > a simple passive carrier board that has connectors and it is not hard to
> > hand solder 0.1 inch pitch.  The carrier board could be a Pi-hat
> >
> > On Thu, Jan 21, 2021 at 4:30 PM Dave Cole 
> wrote:
> >
> >> I wonder if these could act as SPI slaves to the RPI 4?
> >>
> >> I've been trying to buy two from Adafruit and they keep selling out and
> >> then coming back in stock, and then selling out again!
> >>
> >> Dave
> >>
> >> On 1/21/2021 6:36 PM, andy pugh wrote:
> >>> On Thu, 21 Jan 2021 at 21:52, Chris Albertson <
> albertson.ch...@gmail.com>
> >> wrote:
>  This is an STM32 microcontroller.
> >>> Are you sure? It is an ARM Cortex M0, like the STM32, but is it made
by
> >> ST?
> >>
> >> ___
> >> Emc-users mailing list
> >> Emc-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >>
> >
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] NURBS G5.2 G5.3 works well

2021-01-20 Thread Frank Tkalcevic
> Since I can't buy a 30mm wrench that doesn't weigh 10+ lbs, and is 15-20" 
> long, I am carving out a 30mm ER20 nut wrench from 1/2" alu plate, using 
> G5.2/G5.3 to carve out a profiled handle, and its working rather well.

Do we get a photo?  And how did you write the gcode?  Did you use the axis
backplot to check the curves?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tooling availability questions

2020-12-17 Thread Frank Tkalcevic
Not a website, but the book "Gears and Gear Cutting" from the workshop
practice series shows how to make cutters and cut gears.  (I've never tried
it myself)


-Original Message-
From: Gene Heskett [mailto:ghesk...@shentel.net] 
Sent: Friday, 18 December 2020 4:38 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] Tooling availability questions

Greetings all;

Is there available on the net, a good treatise of making gears with 
something like this BS-1?

And, is anyone grinding tools & making arbors to mount them? I have a 
mental vision of buying replacement head gears for this G0704, which are 
plastic, and making metallic gears to replace these as the bearings, 
which are also used in roller skates, are getting noisy. The lower 
quality ones sell on fleabay for around $4.00 a tube of ten but I'm sure 
there are far better replacements than that available.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python question

2020-12-16 Thread Frank Tkalcevic
The sockets part is for the "rsh" remote shell interface - the UI is a
command line interface.  The big comment at the beginning of the file shows
the text command list - eg for spindle commands - spindle (none) | forward |
reverse | increase | decrease | constant | off

As for searching, I normally just used the linux command line tools on my
cloned copy of the linuxcnc repository - find, grep, etc.
On the github webpage, there is a "Search or jump to..."  field in the top
left corner that allows you to search.  sendSpindleIncrease appears a couple
of times - the one you want is in shcom.cc

-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 16 December 2020 5:27 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question

Ah.
https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/emcrsh.cc
It uses sockets in that file which implies this is how communications is
done.  

But as usual, the code is quite vague.  For example there's this function.
static cmdResponseType setSpindle(char *s, connectionRecType *context) {

And inside the function 
switch (checkSpindleStr(s)) {
 case -1: return rtStandardError;
 case 0: sendSpindleForward(spindle); break;

and a few more cases.
So where is sendSpindleForward(spindle) ?

Is there a way to search for "sendSpindleForward" to find out if it's a
MACRO or a function that formats the message to go to the socket?

Thanks
John



> -----Original Message-
> From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au]
> Sent: December-15-20 9:48 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] Python question
> 
> If you look at the axis source code, to increment the spindle you call...
> 
> c.spindle(linuxcnc.SPINDLE_INCREASE)
> 
> where
> 
> c = linuxcnc.command()
> 
> 
> linuxcnc.command() comes from halui.cc (I think), which sends a message...
> 
> static int sendSpindleIncrease(int spindle)
> {
> EMC_SPINDLE_INCREASE emc_spindle_increase_msg;
> emc_spindle_increase_msg.spindle = spindle;
> return emcCommandSend(emc_spindle_increase_msg);
> }
> 
> So, to invoke an action, you are actually sending a message to linuxcnc,
not just settings  a pin.  Status information, like spindle speed,
> for example, come from the status message, which is also exposed via halui
for python.
> 
> There are examples, like linuxcnc/src/emc/usr_intf/emcrsh.cc, which do
this in C++.
> 
> 
> 
> -Original Message-
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: Wednesday, 16 December 2020 3:59 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] Python question
> 
> Let's say you wanted to access the hal pins and essentially run the
machine using a different programming language like C instead of
> python.
> 
> How's the linkage done from say the Axis GUI to the rest of the system?
Like Spindle ON button and then Spindle +
> 
> John
> 
> 
> > -Original Message-
> > From: andy pugh [mailto:bodge...@gmail.com]
> > Sent: December-15-20 5:15 PM
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] Python question
> >
> > On Wed, 16 Dec 2020 at 01:10,  wrote:
> > >
> > > Are the necessary environment variables document somewhere?
> >
> > I think you just need to "import linuxcnc" to get access to linuxcnc
> > command and state.
> >
> > But you would probably still need to create and net hal pins to get
> > values from hal.
> >
> >
> > --
> > atp
> > "A motorcycle is a bicycle with a pandemonium attachment and is
> > designed for the especial use of mechanical geniuses, daredevils and
> > lunatics."
> > ? George Fitch, Atlanta Constitution Newspaper, 1912
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python question

2020-12-15 Thread Frank Tkalcevic
If you look at the axis source code, to increment the spindle you call...

c.spindle(linuxcnc.SPINDLE_INCREASE)

where 

c = linuxcnc.command()


linuxcnc.command() comes from halui.cc (I think), which sends a message...

static int sendSpindleIncrease(int spindle)
{
EMC_SPINDLE_INCREASE emc_spindle_increase_msg;
emc_spindle_increase_msg.spindle = spindle;
return emcCommandSend(emc_spindle_increase_msg);
}

So, to invoke an action, you are actually sending a message to linuxcnc, not 
just settings  a pin.  Status information, like spindle speed, for example, 
come from the status message, which is also exposed via halui for python.

There are examples, like linuxcnc/src/emc/usr_intf/emcrsh.cc, which do this in 
C++.



-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Wednesday, 16 December 2020 3:59 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question

Let's say you wanted to access the hal pins and essentially run the machine 
using a different programming language like C instead of python.  

How's the linkage done from say the Axis GUI to the rest of the system?  Like 
Spindle ON button and then Spindle +

John


> -Original Message-
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: December-15-20 5:15 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Python question
> 
> On Wed, 16 Dec 2020 at 01:10,  wrote:
> >
> > Are the necessary environment variables document somewhere?
> 
> I think you just need to "import linuxcnc" to get access to linuxcnc
> command and state.
> 
> But you would probably still need to create and net hal pins to get
> values from hal.
> 
> 
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> ? George Fitch, Atlanta Constitution Newspaper, 1912
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python question

2020-12-15 Thread Frank Tkalcevic
I run in-place, so I run...

. $EMC_HOME/scripts/rip-environment

Before each run.

If you are running PathPilot, I'm guessing your distribution is from
Tormach, so the environment variables may already be set up.  

Just try it.  If it doesn't work, you should get error messages.



-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com] 
Sent: Wednesday, 16 December 2020 12:08 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question

Are the necessary environment variables document somewhere?

-Original Message-
From: Frank Tkalcevic  
Sent: December 15, 2020 6:51 PM
To: 'Enhanced Machine Controller (EMC)' 
Subject: Re: [Emc-users] Python question

As long as the environment variables are set up correctly, you should just
be able to run the python app from the command line without "halcmd
loadusr".


-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com]
Sent: Wednesday, 16 December 2020 7:54 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] Python question

I somewhat understand writing a Python program that reads/writes HAL pins
and starting it with halcmd loadusr. Is it possible to start a Python
program from a terminal window and access HAL pins without using halcmd? If
yes, what is the magic incantation? I ask because PathPilot does not appear
to include halcmd.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python question

2020-12-15 Thread Frank Tkalcevic
As long as the environment variables are set up correctly, you should just
be able to run the python app from the command line without "halcmd
loadusr".


-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com] 
Sent: Wednesday, 16 December 2020 7:54 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] Python question

I somewhat understand writing a Python program that reads/writes HAL pins
and starting it with halcmd loadusr. Is it possible to start a Python
program from a terminal window and access HAL pins without using halcmd? If
yes, what is the magic incantation? I ask because PathPilot does not appear
to include halcmd.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB - Serial question

2020-12-04 Thread Frank Tkalcevic
Atmel Studio (the free development IDE for programming Atmel/PIC AVRs
(windows only)) will import an Arduino project.  This includes all the
source for all the libraries that are used.  This makes it easier to
customise libraries.  Programming without an ISP tool is a bit tricky - I
think you need to do that from the command line.


-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com] 
Sent: Saturday, 5 December 2020 2:45 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial question

Your suggestion sounded great so I did a few tests. I loaded a PCJR Teensy
LC (ARM Cortex-M0+) and a genuine Arduinio Leonardo (ATmega32u4) with the
standard BLINK program -- the Arduino equivalent of the Linux HELLOWORLD.
For those unfamiliar with the Arduino world both of these boards have native
USB support rather than using a FT232 or other separate chip. The BLINK
program requires no extra hardware but uses an Arduino pin to blink the
onboard LED. The program is only a few lines and there is no explicit code
to enable serial communication or do anything USB related. Hidden from the
user, several thousand bytes of system routines to control interrupts,
timers, USB, etc. are loaded together with the 5 line user program.

Results:
As soon as the Teensy LC is plugged in, lsusb shows a new USB device with
VID/PID of 16c0/04d3. PathPilot shows a status message that a USB device has
been connected.

As soon as the Arduino Leonardo is plugged in, lsusb shows a new USB device
with VID/PID of 2341-8036.  PathPilot shows a status message that a USB
device has been connected.

Conclusion:
The standard Arduino ecosystem does not easily allow USB enumeration to be
delayed. Everything is open source software so I'm sure that one can
disable/enable the on-chip USB but doing so is beyond my expertise. 

-Original Message-
From: Chris Albertson  
Sent: December 3, 2020 12:49 PM
To: Enhanced Machine Controller (EMC) 
Subject: Re: [Emc-users] USB - Serial question

On Thu, Dec 3, 2020 at 5:13 AM  wrote:

> Even if the FT232 RXD/TXD/DSR/CTS/etc pins are left floating it is 
> recognized by Linux as soon as it is plugged in. For example, lsusb 
> lists it.
>

I'm sorry I am still not clear.The FT232 has two ports.   One has RS232
lines and the other has USB data lines. Letting the RS232 port float would
do nothing, just like you are seeing.

When you plug in the FT232 it starts a conversation with the PC even if
there is nothing connected to the serial port and the FT232 chip is
detected.

so simple solutions *DO NOT USE AN FT232 CHIP*.   The reason is that this
chip does not do what you want.  Simply use the USB pins that are built into
the MCU

Assuming you do this, now you have control over when and if the USB device
talks to the Linux computer.  Simply wait until you are ready.

The FT232 chip was designed to do one simple job and that is allit can do.
But it is not the job you need done,  That said, holding the reset pin low
might work but you better do that in hardware with a pull-down o there is
no race condition between the MCU and FT232.   But again why hassle with
the FT232 chip?  Every reasonable MCU has USB built-in.



> -Original Message-
> From: Chris Albertson 
> Sent: December 3, 2020 12:52 AM
> To: Enhanced Machine Controller (EMC) 
> 
> Subject: Re: [Emc-users] USB - Serial question
>
> Does it work that way?
>
> On Wed, Dec 2, 2020 at 8:12 PM  wrote:
>
> > That would be great but if the USB-serial has power then it is found 
> > in the USB enumeration even if the MCU is busy
>
>
> Really?  How is it enumerated without the need for the MCU to send data?
>  Getting power is not enough.  The Linux side needs to see an "ACK" 
> from the setup.
>
>
>
> > and ignoring the serial data stream.
> >
>
> There is no serial data stream, not until after the USB device sends "ACK"
> and is enumerated as a serial device.   That has not yet happened
>
> That is why I was considering holding a FT232 in RESET
>
>
> If you use an FT232 then maybe it is simply pre-programmed and some hack
is
> required because you can't access the code inside the chip.   I think this
> is an argument for not using FT232  Just connect the USB pins fom the MCU
> directly. and then you have control over what happens.   I would not
> suggest a hardware solution when what needs to be done is in the 
> standard protocall.
>
> If this USB device is based on an MCU that is supported by Arduino IDE
then
> there is example code in the IDE.  See where XXX.begin is called.   Where
> XXX is "mouse" or "keyboard"   What you do is not call the .begin method
> until you want Linux to notice the device.XXX is a wrapper of subclass
> aroud something like "pluggableUSB".You can experiment with an Arduino
> and see that it can have any delay t like between being plugged in and 
> being noticed as a new device.
>
> until everything is
> > ready to process commands. The relay in the USB 

Re: [Emc-users] SPAM: Re: freecad, latest, starter tut?

2020-09-21 Thread Frank Tkalcevic
I was impressed that FreeCAD could import lots of different CAD formats.  I
tried to use the CAM (Path) on an old STEP file, but I couldn't work out how
to orient my part, and set the origin to the bottom-left top corner of the
box stock.  Reading the forums, it seems that isn't possible (talk of local
coordinate systems, but no implementation).  

-Original Message-
From: Todd Zuercher [mailto:to...@pgrahamdunn.com] 
Sent: Tuesday, 22 September 2020 4:51 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] SPAM: Re: freecad, latest, starter tut?

Generating g-code with Freecad is a bit of an arduous process.  Especially
for the first time.  After you've made your 3d model, you have to convert
that drawing into a part, then you have to create a Job amd set up your tool
library, then add the tools to the Job, then configure the machine driver,
then create all of the machining tool paths (using the Path Workbench.)
Then only after you've created your tool paths, can you output g-code to a
file.  (The only g-code I've made with Frecad was using version 0.18.)
 
Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: Gene Heskett  
Sent: Sunday, September 20, 2020 11:09 AM
To: emc-users@lists.sourceforge.net
Subject: SPAM: Re: [Emc-users] freecad, latest, starter tut?

[EXTERNAL EMAIL] Be sure links are safe.

On Sunday 20 September 2020 10:04:48 Martin Dobbins wrote:

> freecad has an export menu that claims to do gcode, but it does not 
> create the code, nor does it report any error I understand when going 
> thru the motions. freecad screenshot attached. A simple torus shape, 
> 50mm in diameter, 35mm tall, with a 28mm center hole.
>
> Good morning Gene,
>
> I've looked through the midden heap of my drag knife folder and I have 
> been unable to locate a file with g code.  This bugged me because I
> *know* I saw readable g code from that project, then i remembered how 
> I had seen g-code (on screen) which is pretty much as described in 
> this video:
>
> https://www.youtube.com/watch?v=fWU621P0gZk
>
> I know I expected to have human readable code at the end of this 
> project (pity I didn't complete it) because I'm working on a desktop 
> that is not connected to the CNC so I expected a text file at the end 
> that I could edit and rename to a .ngc file to transfer to the CNC 
> machine.
>
> If you can wait, I'll have a go at replicating the torus you made and 
> see if I can send the g code.  If that works I will (try) to tell you 
> how I did it.  Later today, I hope.
>
> Martin

Not that big a hurry Martin, I don't have the motor in hand yet that I plan
on using. I have found it from other vendors so all is not lost.
This vendor I now recall burnt me several hundred dollars when I bought a
6040 mill for my Christmas present almost 2 years ago. I had to ditch the
electronics and replace that whole box and its contents. Around $400 of an
$1200 purchase. Runs nicely now exceptfor an actual speed tally on the water
cooled spindle which has no encoder, so its displaying the commanded speed
to the vfd. Ought to be an echo from the vfd, but I don't know how to
acquire it for linuxcnc.  Cheap clone vfd.

In the meantime I've found that freecad treated my diameters as radii, so
the posted image is too big by 2x for xy.  Its a 50mm diameter pipe, 35mm
long, with a 28mm diameter bore.  Makes sense, but big dummy at work. :-)

Thank you Martin.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CAD for parts to make on a lathe

2020-09-17 Thread Frank Tkalcevic
> The feature they are taking away is the ability to save your files to an
> industry-standard STEP file.  Unless you pay for a license.

That's one that's going to hit me.  I always expected the free version to 
disappear, so I never invested much time in the CAD.  I've been using F360 to 
import STL files and export them as STEP/IGES.  I'm not sure how I'm going to 
do this now.

The other killer is 4th and 5th axis CAM.  I can still import STEP and output 
3D gcode (and turn), but I just started collecting parts for a 5th axis 
trunnion for my hobby CNC router.  :(

Frank



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Setting up two home switches on Y

2020-09-14 Thread Frank Tkalcevic
> I think that the problem is that you have y2-step in the Joint3
> section, but in the area where you are connecting the parallel port
> pins, both sets of step/dir outputs are netted to the ystep. So they
> move at exactly the same speed and at the same time.

And that is easy to test.  When you start axis, you should be in Joint mode.  
You can use the keyboard to jog each joint... 

Left/right - joint 0
Up/down - joint 1
PgUp/PgDn - joint 2
[/] - joint 3

(or use the buttons on the Axis UI)

Just jog your y1/y2 axis slowly.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best VM to run Linuxcnc in

2020-09-01 Thread Frank Tkalcevic
I use VMWare player on Windows 10 without any issues.

-Original Message-
From: Marius [mailto:mar...@mastercut.co.za] 
Sent: Wednesday, 2 September 2020 1:58 AM
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Best VM to run Linuxcnc in

What would the VM users say that the best free version of VM would be to 
run LinuxCnc in. I have to do a demo for a client and I dont have a 
working machine to do so with.

Regards

Marius



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT: Synchronised motion using RS485/CAN bus motors

2020-08-21 Thread Frank Tkalcevic
I was looking in more detail at the MIT Cheetah and found this page -
https://www.robotdigg.com/product/1667/MIT-Robot-Dog-high-torque-Joint-Motor
-or-DD-Motor

It says that each motor takes an 8 byte payload to drive a motor, and that
motor then replies with a 6 byte packet.  After you add the CAN headers and
trailers that is a total of 200 bits, best case, or about 416 updates per
second for 12 motors on 1MHz bus.

I was expecting the update rate to be a lot lower than that (I should have
done the math).


-Original Message-
From: N [mailto:nicklas.karlsso...@gmail.com] 
Sent: Saturday, 22 August 2020 5:34 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] OT: Synchronised motion using RS485/CAN bus motors

> ...
> On CAN you can take advantage of the fact that all devices read the bus at
> the same time.  Each reader decides what information it wants to read and
> ignore the rest so a time-sync heartbeat could be implemented if the nodes
> all needed to be time synchonized. ...

Yes all devices need to read bus within the time it take to send one bit
because of the arbitration used to send the message with highest priority
first. With CAN-FD speed is increased after address is sent so that message
could be larger.


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT: Synchronised motion using RS485/CAN bus motors

2020-08-18 Thread Frank Tkalcevic
> You subject line says RS485/CAN which are dramatically different from the
SPI based synchronous clocked serial interfaces.  Even RS485 and CAN are
dramatically different.

Thanks for the replies...

The question was around slower RS485/CAN.  I'm seeing a lot of actuators
(motor/gearbox/driver combinations) that are driven by CAN bus (MIT
cheetah).

Brute speed seems to be a common solution, which I'm guessing protocols like
EtherCAT rely on.

Given the CAN bus speed limits - 1MHz, it doesn't seem possible to
send/receive messages to many motors at a typical LinuxCNC 1kHz rate.  Is
there some kind of "smarts" that let these control systems work smoothly at
lower update rates? 








___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] OT: Synchronised motion using RS485/CAN bus motors

2020-08-18 Thread Frank Tkalcevic
An off topic question, not directly LinuxCNC related...

How are motors on a serial bus controlled and synchronised?  

My only real control experience is with LinuxCNC with Mesa and parallel port 
hardware where commands and feedback and precisely timed.  Sending commands and 
receiving feedback over a serial link I would expect to cause synchronising 
problems, and the bandwidth would reduce the update rate.

How are these issues handled?  I tried googling this, but didn't find much -  I 
wasn't sure what to search for.

Thanks,
Frank






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] found a harmonic drive set of .stl's on thingiverse

2020-08-18 Thread Frank Tkalcevic
> the middle of a now thicker and nuch denser 6 wall build.  cura settings 
> are for 6 line walls, 15 ipm and 30 ipm.

6 line walls/perimeters is a large number.   My default setting is 2.  Less 
perimeters also prints a lot faster.  If the part is weak, you can always 
increase it later, but it sounds like you are still having issue with the 
extrusion flow rate.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Just took the first flexgear off the printer

2020-07-22 Thread Frank Tkalcevic
> But is there a support removal tool that isn't radioactive?

Nope.  The secret is to design your parts so you don't need support.  

Unless you have a dual head extruder, then you can use a different material
as the support material.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] need advice, idea shoppingIOW.

2020-07-19 Thread Frank Tkalcevic
I modified some python code that is in the linuxcnc tree (author.py) and made a 
slicer post processing script that takes the generated gcode and converts line 
segments back to arcs.

https://github.com/ftkalcevic/3dPrintSmoothing

I'm constantly finding bugs, so verify your first few prints - the 
extrudeRelative variable needs to be set correctly.



-Original Message-
From: Thomas J Powderly [mailto:tjt...@gmail.com] 
Sent: Monday, 20 July 2020 12:36 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] need advice, idea shoppingIOW.

Gene

do you want to convert a series of short lines that approximate arcs

into g02/g03, to save space?

Or, described as 'fitting x y� pairs to a circle'?


Dave E was looking for similar ( a good while back) and I didnt find any.


If you have slices that can be processed in scripts with librecad (lua)

or esdxf(python)


I imagine some batch processing, layer by layer, slogging thru your 
megafile )


For python fitting a list of coords to circle there is

https://scipy-cookbook.readthedocs.io/items/Least_Squares_Circle.html


There a classic solution by Coopes but all the papers and code I've 
found are pay for.

( I hate those 'services; that charge for such information )


theres this implementation in Javascript


https://jsxgraph.uni-bayreuth.de/wiki/index.php/Least-squares_circle_fitting


but to get the demo to render i had to wander around the site till i 
found something that did render ,

then returm :-(

once it renders, refresh the page for a new random set of points

and a new fitted circle

tomp


On 7/19/20 5:19 PM, Gene Heskett wrote:
> On Saturday 18 July 2020 22:21:20 Gregg Eshelman via Emc-users wrote:
>
>> Circa 1990: Have you heard of the new Hubble Cocktail? It's very
>> expensive, comes in a hand polished glass, and after you finish it,
>> your vision is all blurry.
>>
> ROTFLMAO!  I missed that one at the time, shame on me.
>
> Thanks Gregg.
>
> Cheers, Gene Heskett


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] question on tooth size vs 3d pulleys

2020-07-16 Thread Frank Tkalcevic
It took me a while to find the right settings for my printer - in fact it
was more about finding a decent priced, decent quality filament. (eSun seems
to be the best in my neck of the woods).  

Hair can be removed with a quick blast with a gas torch, although I'm
surprised this is an issue as the outside perimeters should be a continuous
line.  Hair usually appears with rapids.  There are settings in the slicer
to avoid crossing perimeter when rapiding.  

-Original Message-
From: Gene Heskett [mailto:ghesk...@shentel.net] 
Sent: Friday, 17 July 2020 9:35 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] question on tooth size vs 3d pulleys

On Thursday 16 July 2020 18:21:28 Frank Tkalcevic wrote:

> >  So what I'm asking is, has anyone printed a pulley
> > that fits & works with these smaller, finer toothed belts?
>
> I use GT 2mm, 20 and 40 tooth pulleys on my robot arm.  Printed on a
> Prusa i3 Mk2.5, 0.4mm nozzle, PLA.  PLA is fine - other plastics may
> have shrinkage problems.
>
I'm tying to do a 240 tooth GT2_2, but not having great luck. Just the 
outside rim as I intend to put it on smooth alu disks to make a 2 stage 
geared way down drive for a Meade DS-10 telescope, a drive that can be 
controlled from stellarium running on a pi4.  I've just 15 mins ago 
started the second pass after reslicing it with a 10C raise in temps. to 
210 and 65. The first one might work, but it would need the GT2 belt 
mashed into it as there a lot of hair where the teeth belong, and my 
theory is that the improved cooling from an after made nozzle fan, is 
cooling it to fast for good sticky once it gets away from the bed, so it 
tends to drag it along as the head moves. We'll see in an hour or so if 
the teeth are going to be well enough defined to be useable.  If this 
helps, then I get some of this belting and see it its the right size.  
The 5x5 cube I was sent, measures fat, but a 32 tooth for XL belt tests 
is as small, so I've expanded the xy scales until a pulley made on it 
actually fits in the belt w/o a slack loop in the back.

I'll likely have to repeat for this much bigger pulley. If I can get 
useable teeth.  And from the slobbering I'm getting, I suspect I could 
drop the steps/100mm of string by around 5%. Thats alright as it came 
OOTB totally starved for string.  Set for about 19% of what it needed.

Thanks Frank, you are keeping me from giving up.

>
> ___
> 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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] question on tooth size vs 3d pulleys

2020-07-16 Thread Frank Tkalcevic
>  So what I'm asking is, has anyone printed a pulley 
> that fits & works with these smaller, finer toothed belts?

I use GT 2mm, 20 and 40 tooth pulleys on my robot arm.  Printed on a Prusa
i3 Mk2.5, 0.4mm nozzle, PLA.  PLA is fine - other plastics may have
shrinkage problems.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Stupid CNC stunts. A 3D printed timing belt.

2020-06-11 Thread Frank Tkalcevic
I used nylon to print some timing belts.  It was a bit tricky - nylon is
hard to print, and shrinks a lot, but they were flexible and very strong.
These were just temporary belts to get the size right and to use until the
real belts were delivered. (for a robot arm where almost every day I changed
the distance between the 2 pulleys).



-Original Message-
From: Chris Albertson [mailto:albertson.ch...@gmail.com] 
Sent: Thursday, 11 June 2020 1:15 PM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Stupid CNC stunts. A 3D printed timing belt.

There was a question on another thread:  "I wonder if you can 3D print a
timing belt?"   That I think was intended as a joke.   But I thought it
sounded like such a dumb idea I'd have to try.   So I did.

I am converting a Harbor Freight Mini Mill to CNC and have now made all the
parts.  Except for standard off the shelf hardware, all the parts are 3D
printed.   I want to work out the easiest path for CNC conversion and then
publish it so as to allow more people to have CNC capability.   So I'm now
assembling parts and needed a belt.   I was able to make the conversion to
CNC with no machined parts.

I fully expected the belt to fail as soon as I applied tension.  It
didn't.  Then I thought that as soon as I'd rotate the pulley the belt
would break.  it didn't so I fired up LinuxCNC and ran the splash
screen forwards and backwords and got bored after it just worked about 8
times back to front.

About the belt.  I went to the SPD/SI web site and found a 133T, 3mm pitch,
 9mm wide GT3 profile belt and clicked "download CAD file".  I printed the
file with no modifications and using the defaults setting in Cura with PLA
plastic.PLA is a hard plastic not noted for being flexible.

Below is a video of the belt in operation.   It is also the very first time
this mill has moved under computer control.  It is just the bare minimum of
parts installed for this stunt.  The Z and X motors are laying flat on the
bench.  The Z motor has a bad driver and is *very* noisy (and replacements
are out of stock).I placed a bit of blue painter's tape on the belt so
you can see it move.

https://youtu.be/GPXICb9rSoE



-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] best diy 4th axis

2020-04-01 Thread Frank Tkalcevic
>From memory, it's only the drive holes that need to be moved, rotated by
360/number of pins/2.

I've uploaded a sample on my github page -
https://github.com/ftkalcevic/Hypocycloid/tree/master/sample

The 2 cams are 2 configurations of 1 part, each labelled (1,2) with a line
which is meant to be parallel when assembled.  The profile is a spline.

If you can get the software to run (use visual studio community edition) it
will generate the alibre components.

-Original Message-
From: andrew beck [mailto:andrewbeck0...@gmail.com] 
Sent: Wednesday, 1 April 2020 8:02 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] best diy 4th axis

how did you make two offset profiles at 180 degrees apart.  thats the bit I
am having trouble working out.

do you think you could share your alibre files?  I have alibre and can also
import into fusion 360

regards

Andrew

On Wed, Apr 1, 2020 at 9:55 PM Frank Tkalcevic 
wrote:

> I got most of my information from this site...
>
> http://www.zincland.com/hypocycloid/
>
> There's a python script to generate the profiles on that page
> (http://www.zincland.com/hypocycloid/hypocycloid.zip)
>
> I wrote a C# program for Alibre Design to generate the parts - the code is
> incomplete (https://github.com/ftkalcevic/Hypocycloid)
>
>
> -Original Message-
> From: andrew beck [mailto:andrewbeck0...@gmail.com]
> Sent: Wednesday, 1 April 2020 6:36 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] best diy 4th axis
>
> frank how do you design them? eg do you generate the gear
> mathematically and what cad software do you use?
>
> regards
>
> Andrew
>
> On Wed, Apr 1, 2020 at 8:19 PM Frank Tkalcevic <
> fr...@franksworkshop.com.au>
> wrote:
>
> > > https://www.youtube.com/watch?v=Eds48L4cJjM
> >
> > In those designs, I've always been concerned that the moving part of the
> > gear rubs against the outside lobes.  This repair video shows a Sumitomo
> > Cyclo which uses rolling pins on the outside, so minimal friction...
> >
> > https://youtu.be/H_oMVO_OTGs?t=157
> >
> > (There's another video out there that shows an exploded view of this,
but
> I
> > couldn't find it).
> >
> > I used this idea for some 3d printed hypocycloidal gearboxes for a robot
> > arm, using bearings for the outside pins.  It works, but the plastic is
a
> > bit squishy - on the TODO list is to cnc machine them out of aluminium,
> > which shouldn't be hard as they are 2 1/2D parts.
> >
> >
> >
> >
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] best diy 4th axis

2020-04-01 Thread Frank Tkalcevic
I got most of my information from this site...

http://www.zincland.com/hypocycloid/

There's a python script to generate the profiles on that page
(http://www.zincland.com/hypocycloid/hypocycloid.zip)  

I wrote a C# program for Alibre Design to generate the parts - the code is
incomplete (https://github.com/ftkalcevic/Hypocycloid)


-Original Message-
From: andrew beck [mailto:andrewbeck0...@gmail.com] 
Sent: Wednesday, 1 April 2020 6:36 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] best diy 4th axis

frank how do you design them? eg do you generate the gear
mathematically and what cad software do you use?

regards

Andrew

On Wed, Apr 1, 2020 at 8:19 PM Frank Tkalcevic 
wrote:

> > https://www.youtube.com/watch?v=Eds48L4cJjM
>
> In those designs, I've always been concerned that the moving part of the
> gear rubs against the outside lobes.  This repair video shows a Sumitomo
> Cyclo which uses rolling pins on the outside, so minimal friction...
>
> https://youtu.be/H_oMVO_OTGs?t=157
>
> (There's another video out there that shows an exploded view of this, but
I
> couldn't find it).
>
> I used this idea for some 3d printed hypocycloidal gearboxes for a robot
> arm, using bearings for the outside pins.  It works, but the plastic is a
> bit squishy - on the TODO list is to cnc machine them out of aluminium,
> which shouldn't be hard as they are 2 1/2D parts.
>
>
>
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] best diy 4th axis

2020-04-01 Thread Frank Tkalcevic
> https://www.youtube.com/watch?v=Eds48L4cJjM

In those designs, I've always been concerned that the moving part of the
gear rubs against the outside lobes.  This repair video shows a Sumitomo
Cyclo which uses rolling pins on the outside, so minimal friction...

https://youtu.be/H_oMVO_OTGs?t=157

(There's another video out there that shows an exploded view of this, but I
couldn't find it).

I used this idea for some 3d printed hypocycloidal gearboxes for a robot
arm, using bearings for the outside pins.  It works, but the plastic is a
bit squishy - on the TODO list is to cnc machine them out of aluminium,
which shouldn't be hard as they are 2 1/2D parts.






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Repository problem with linuxcnc-dev

2020-03-10 Thread Frank Tkalcevic
You can also ignore the expiry warning with switch -o 
Acquire::Check-Valid-Until=false 

For example

sudo apt-get -o Acquire::Check-Valid-Until=false update


(https://unix.stackexchange.com/questions/2544/how-to-work-around-release-file-expired-problem-on-a-local-mirror)



-Original Message-
From: andy pugh [mailto:bodge...@gmail.com] 
Sent: Wednesday, 11 March 2020 4:14 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Repository problem with linuxcnc-dev

On Tue, 10 Mar 2020 at 17:11, Leonardo Marsaglia  wrote:

> http://archive.debian.org/debian-security/dists/wheezy/updates/Release is
> expired (invalid since 335d 2h 5min. 49seg.). Updates for this repository
> will not be applied.

You will just have to completely deselect the security archive.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
� George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Actual Feed Rate

2020-01-08 Thread Frank Tkalcevic
As others have said - Yes.  But it also depends on whether your machine can
maintain that speed given acceleration and max velocity limitations.  GCode
with lots of corners or short segments may not reach the requested feed rate
without playing with G61/G64.

-Original Message-
From: Thomas D. Dean [mailto:tomd...@wavecable.com] 
Sent: Thursday, 9 January 2020 12:29 AM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Actual Feed Rate

I am attempting to understand feed, etc.

G91 G01 X 0.5000 F6

With feed override set to 50%, do I get an actual feed rate of F3?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Buster RTAI Lathe HomeAxis Failure

2019-12-19 Thread Frank Tkalcevic
There are a lot of changes in 2.9, hence the conversion program.  There is a 
wiki page that describes the differences - 
http://linuxcnc.org/docs/devel/html/getting-started/updating-linuxcnc.html

I had to make a few manual changes to get my lathe config to work.  From 
memory, there is confusion with the lathe axis lettering.  There is a section 
on that page that discusses lathe issues.


-Original Message-
From: Thomas D. Dean [mailto:tomd...@wavecable.com] 
Sent: Friday, 20 December 2019 10:09 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Buster RTAI Lathe HomeAxis Failure

On 12/19/19 2:38 PM, Thomas D. Dean wrote:
> I installed linuxcnc from git sources.
> 
> The mill config seems to work OK with my old 'wheezy' config as 
> converted by linuxcnc_2.9.0~pre0_amd64.� Manual control seems to work. 
> MDI seems to work.
> 
> The lathe config from 'wheezy' would not work after conversion by 
> linuxcnc_2.9.0~pre0_amd64.
> 
> I used the config file from linuxcnc_2.9.0~pre0_amd64 sources.� That 
> appears to function.
> 
> With both the installed and the 'run in place' versions,
> the home Axis button for the Z axis does nothing.� Clicking the button a 
> second time results in the expected 'are you sure' pop-up, but, does 
> nothing.� The Z Axis is not homed.� No 'homed' mark appears in the 
> Preview window. MDI does not work.
> 
> The X Axis is homed when the Home Axis button is clicked.
> 
> Machine->Homing->Home Axis Z does home the Z axis and MDI works.
> 
> On startup, I see:
> LINUXCNC - 2.9.0~pre0
> Machine configuration directory is 
> '/home/tomdean/linuxcnc/configs//by_machine.sherline.SherlineLathe'
> Machine configuration file is 'SherlineLathe_inch.ini'
> Starting LinuxCNC...
> Found file(lib): /usr/share/linuxcnc/hallib/core_stepper.hal
> Found file(REL): ./standard_pinout.hal
> note: MAXV max: 0.360 units/sec 21.600 units/min
> note: LJOG max: 0.360 units/sec 21.600 units/min
> note: LJOG default: 0.180 units/sec 10.800 units/min
> note: jog_order='ZX'
> note: jog_invert=set(['X'])
> task: main loop took 0.184661 seconds
> task: main loop took 0.202663 seconds
> 
> On exit, I see:
> Shutting down and cleaning up LinuxCNC...
> task: 2258 cycles, min=0.53, max=0.202663, avg=0.010238, 2 latency 
> excursions (> 10x expected cycle time of 0.01s)
> 
> This worked with the 'stretch' and 'wheezy' versions of linuxcnc.
> 
> Any ideas?
> 

I enabled debugging.

# Z Axis from home button
Issuing EMC_TRAJ_SET_TELEOP_ENABLE --(  +230,+24,   +41,+0,)
Issuing EMC_JOINT_HOME --(  +123,+24,   +42,+1,)

# Z Axis from machine->homing->home Axis Z
Issuing EMC_TRAJ_SET_TELEOP_ENABLE --(  +230,+24,   +43,+0,)
Issuing EMC_JOINT_HOME --(  +123,+24,   +44,+2,)

# X axis from home button
Issuing EMC_TRAJ_SET_TELEOP_ENABLE --(  +230,+24,   +45,+0,)
Issuing EMC_JOINT_HOME --(  +123,+24,   +46,+0,)

# X axis from machine->homing->home Axis X
Issuing EMC_TRAJ_SET_TELEOP_ENABLE --(  +230,+24,   +47,+0,)
Issuing EMC_JOINT_HOME --(  +123,+24,   +48,+0,)

The problem may be from The 4th argument in Issuing EMC_JOINT_HOME.

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT: redirecting output to a file

2019-11-11 Thread Frank Tkalcevic
Thank you, that got me looking in the right direction.

I modified my UI to return exit codes of 0,1,2 for my script to close
linuxcnc, restart linuxcnc, and shutdown the computer.  That messed up the
linuxcnc script so I never saw stdout/stderr or the updated print and debug
files.




-Original Message-
From: Dewey Garrett [mailto:dgarr...@panix.com] 
Sent: Tuesday, 12 November 2019 7:20 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] OT: redirecting output to a file

> However, I have my machine set up to launch this
> script from .xinitrc when it boots.  In this case,
> the 2 echo commands appear in the log file, but
> the output of linuxcnc does not. 

.xinitrc is read by startx which is not running with
a connected tty.  The linuxcnc script redirects stdout
and stderr when not using a tty to PRINT_FILE and
DEBUG_FILE:

https://github.com/LinuxCNC/linuxcnc/blob/2.7/scripts/linuxcnc.in#L165


The PRINT_FILE and DEBUG_FILE are created in /tmp
(lines 78,79) but moved on successful termination:
(line 203) to $HOME.


The following note from the (debian 10) manpage
for startx may be relevant also:


$ man startx
...
"Note  that  in the Debian system, what many people
traditionally put in the .xinitrc file should go
in .xsession instead; this permits the same X
environment to be presented whether startx, xdm,
or xinit is used to start the X session.  All
discussion  of  the  .xinitrc  file  in  the
xinit(1)  manual  page applies equally well to
.xsession.  Keep in mind that .xinitrc is used
only  by  xinit(1)  and  completely  ignored  by
xdm(1)."


-- 
Dewey Garrett



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] OT: redirecting output to a file

2019-11-10 Thread Frank Tkalcevic
I have a simple script to run linuxcnc, similar to this...

#!/bin/bash
echo "Starting LinuxCNC" 2>&1 >> ~/linuxcnc.log
linuxcnc myinifile.ini 2>&1 >> ~/linuxcnc.log
echo "Starting LinuxCNC" 2>&1 >> ~/linuxcnc.log


That works fine when I run from the command line.

However, I have my machine set up to launch this script from .xinitrc when
it boots.  In this case, the 2 echo commands appear in the log file, but the
output of linuxcnc does not.   (linuxcnc runs fine)

I also have a line in /etc/rc.local to start x as me on boot...

nohup su myusername - -c /usr/bin/startx


Any ideas why this may be happening?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best option for modern RTAI distro

2019-08-19 Thread Frank Tkalcevic
The motherboard is an Intel D945GSEJT, with a N270 atom, 2GB ram.

I did install the 32bit ISO - linuxcnc-stretch-uspace-i386.iso

I'll check everything again and try running directly from a USB flash drive
and see if I get the same problem.

Thanks,
Frank

-Original Message-
From: bari [mailto:bari00...@gmail.com] 
Sent: Tuesday, 20 August 2019 8:06 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Best option for modern RTAI distro

frank,

I saw this after I had already replied to you.

https://en.wikipedia.org/wiki/Intel_Atom#32-bit_and_64-bit_hardware_support

"support for the AMD 64 <https://en.wikipedia.org/wiki/X86-64>
instruction set was not added until the desktop /Diamondville/ and
desktop and mobile /Pineview/ cores."

"Intel states the Atom supports 64-bit operation only "with a processor,
chipset, BIOS" that all support Intel 64
<https://en.wikipedia.org/wiki/Intel_64>."

Do you have an older version of the Atom?

-Bari

On 8/19/19 4:44 PM, Frank Tkalcevic wrote:
> I've spent the last couple of weeks upgrading my atom based machine from
> Ubuntu 10 (github+openssl incompatibilities), but I've had lots of
problems
> finding a modern distro that allows me to use the latest software (eg
qtvcp)
> because of library dependencies.
>
> I tried the LinuxCNC Stretch ISO, but that didn't work - running the
latency
> test never displayed a window and the mouse moved at one update every 5
> seconds.  Not to mention orca+alsa using 90% cpu when idle.
>
> I'm using the Wheezy distro at the moment - linuxcnc runs fine, but the
> libraries are outdated and many things won't build.
>
> So what are my options for building an RTAI kernel for a modern distro?  
> Does RTAI only work with certain kernel versions?  
> Can I install a significantly different RTAI kernel version over the top
of
> an old kernel?  Or would that require rebuilding the whole distro to match
> the kernel?
>
> Thanks in advance,
> Frank
>
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Best option for modern RTAI distro

2019-08-19 Thread Frank Tkalcevic
I've spent the last couple of weeks upgrading my atom based machine from
Ubuntu 10 (github+openssl incompatibilities), but I've had lots of problems
finding a modern distro that allows me to use the latest software (eg qtvcp)
because of library dependencies.

I tried the LinuxCNC Stretch ISO, but that didn't work - running the latency
test never displayed a window and the mouse moved at one update every 5
seconds.  Not to mention orca+alsa using 90% cpu when idle.

I'm using the Wheezy distro at the moment - linuxcnc runs fine, but the
libraries are outdated and many things won't build.

So what are my options for building an RTAI kernel for a modern distro?  
Does RTAI only work with certain kernel versions?  
Can I install a significantly different RTAI kernel version over the top of
an old kernel?  Or would that require rebuilding the whole distro to match
the kernel?

Thanks in advance,
Frank




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homing following error (was PID feed forward)

2019-08-17 Thread Frank Tkalcevic
>I did notice that there didn't seem to be any the scope trace, so I added
the additional debug.  That made me think, as you suggested, that my thread
function calls were in the wrong order, but that doesn't seem to be the
case.

That should read - I did notice that there didn't seem to be any errors the
scope trace, so I added the additional debug.


joint 0 following error 6.335277, cmd=0.139723, fb=6.475000
emc/task/taskintf.cc 947: Error on joint 0, command number 143
joint 0 following error

where numbers are the following error, joint.pos-cmd, joint.pos-fb








___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Homing following error (was PID feed forward)

2019-08-15 Thread Frank Tkalcevic
>>  If I leave it unconnected 
>> I don't have any problems when homing.
>>
>Ahh thats a bug in index handling so I guess you will need to leave
>the PIDs command-deriv unconnected until that is fixed.
>
>I really really wish that index handling did not cause a joint position
jump.
>this is just plain wrong and hatches a nest of ugly patch-arounds.
> (though maybe needed for broken encoder hardware that clears its count on
index) 

I am seeing this on one of my axis, after upgrading from 2.5 to master.  

It moves to the home switch, turns around to find the encoder index pulse,
and after it finds the index, it faults with a following error - this only
happens when I start Linuxcnc, ie when machine home isn't known.  If I home
all again, it works fine.

This only happens on my regular axis, the other 2 are gantry pairs, which
don't fault.

I had FF1 set and command-deriv unconnected and it faults.  Setting all FF
settings to 0 still faults.  If I connect the encoder velocity (from 5i20)
to command-deriv - it faults when I jog - the velocity coming out of the pin
is very noisy.

Is this the same problem?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle control

2019-07-18 Thread Frank Tkalcevic
I did that too.  I printed a 200mm diameter disk with 72 black white pairs, 
read with a P5587 Photoreflector.  It currently only reads speed, but I'm about 
to replace the sensor to give quadrature output, so I can gear hob, as Andy has 
shown.



-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com] 
Sent: Thursday, 18 July 2019 11:56 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Spindle control

Thanks Jon,
 
I have lots of room under the pulley to mount something.  Steel disk with slots 
and a hall sensor would easily do it.  It's what I was going to do for simple 
RPM sensing into the Shumatch DRO with the reflective tape.  Another project 
that was never finished.
John
 

 
> -Original Message-
> From: Jon Elson [mailto:el...@pico-systems.com]
> Sent: July-17-19 6:22 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Spindle control
> 
> On 07/17/2019 03:51 PM, John Dammeyer wrote:
> > There are a number of videos out there changing up the G0704 gear 
> > driven
> spindle to belt drive.  Some use toothed belts, others a double set of 
> pulleys.  Most of the videos explain that they will soon but the 
> slotted RPM sensor disk back on but for most of them they've not done that 
> yet.
> >
> > For LinuxCNC what sort of encoder resolution is required on the 
> > spindle to
> be able to do tapping.  I know I can do it with one pulse per rev with 
> my Electronic Lead Screw to cut nice threads but I also don't slow 
> down the spindle at the end of a tap into a blind hole while tracking spindle 
> speed.
> >
> Well, if you are using a software encoder counter, you have to limit 
> the encoder count * RPM to what that counter can follow.  If using a 
> hardware encoder counter, then that is not a limitation.
> On my Bridgeport, I am using the 81-tooth bull gear to create an 
> encoder, so that gives 324 quadrature counts/rev.
> That has worked very well.
> 
> Jon
> 
> 
> ___
> Emc-users mailing list
>   
> Emc-users@lists.sourceforge.net  
>  
> https://lists.sourceforge.net/lists/listinfo/emc-users
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] chinese vfd is driving me bonkers.

2019-03-28 Thread Frank Tkalcevic
> "There "universal" is the one to get. 

Those pumps are listed as 240v 50Hz - is that dangerous keeping AC submerged
like that?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How does this work?

2018-05-20 Thread Frank Tkalcevic
>  I paid abut $30 for a very good 16mm diameter by
> 500mm long zero backlash ball screw and nut.   Yes truly "zero" there seem
> to be two ball nuts working in opposition.  If there is backlash on the
$30
> screw it is less them by dial indicator can show.

Where did you find these?  Most ballscrews on ebay are called
"zero-backlash", but don't have opposed nuts.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Chinese "C7" ball screws

2018-02-27 Thread Frank Tkalcevic
That ebay ad says "Ball screws are used in aircraft and missiles".  What are
you building?



-Original Message-
From: Chris Albertson [mailto:albertson.ch...@gmail.com] 
Sent: Wednesday, 28 February 2018 8:34 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Chinese "C7" ball screws

On Tue, Feb 27, 2018 at 11:49 AM, Cecil Thomas 
wrote:

> Chris,
> Could you post the link to the Ebay listing where you bought the ball 
> screw?
> I  have  a couple of applications that might benefit from them.
>

Here it is once more.   One difference I find is the physical size of the
nut.   It is larger than the kind that use 15/16 threads.  These nuts have
a 48mm diameter flange mount with some not parallel (wedge taper) flats
milled into the 48mm diameter.

www.ebay.com/itm/Ball-Screw-SFU1605


The above vendor maintains stock in the US so for met the shipping was just
a few days.


> Also, what is the diameter of the nut?
>
>
> Cecil
>
> At 01:47 PM 2/26/2018, Chris Albertson wrote:
>
>> Anyone use these no-brand ball screws in a machine tool?
>>
>> I could not resisted the price.  $27 with free shipping for a 16mm 
>> diameter by 550mm long ball screw and nut.
>>
>> What I am wondering now is if anyone has first hand experience with this
>> product in a real machine.Mine is a 16mm diameter by 5mm lead screws
>> 550mm total length with an SFU1605 ball nut.
>>
>>
>
> 
> --
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 

Chris Albertson
Redondo Beach, California

--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Thoughts on a Python script to calculate estimated run time, for G code and my first hacked sub routine

2014-10-16 Thread Frank Tkalcevic
Yeah, I don't have the latest trajectory planner.  3d_chips was one of my
test files and came out ok without G64 settings.

Any suggestions on how to estimate with G64?



 -Original Message-
 From: Todd Zuercher [mailto:zuerc...@embarqmail.com]
 Sent: Thursday, 16 October 2014 3:16 AM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] Thoughts on a Python script to calculate
estimated
 run time, for G code and my first hacked sub routine
 
 My guess is the new tool planner's G64 settings are throwing off the
 estimate.  Try the real time with tighter G64 PXXX, and I suspect your
results
 will differ.
 
 - Original Message -
 From: Sebastian Kuzminsky s...@highlab.com
 To: Enhanced Machine Controller (EMC) emc-
 us...@lists.sourceforge.net
 Sent: Wednesday, October 15, 2014 12:00:38 PM
 Subject: Re: [Emc-users] Thoughts on a Python script to calculate
estimated
 run time, for G code and my first hacked sub routine
 
 On 10/15/14 4:07 AM, Frank Tkalcevic wrote:
  I was so annoyed that the estimates for my 3d printing jobs were so
  far off (estimated 2 hours, took 8) that I modified the axis code.  It
  looks at the Velocity and acceleration of each axis and tries to
  calculate a more accurate time.  It only looks at moves - no G64 or
  probing.  It isn't perfect, but much closer.
 
  The attached file is the changes - a new gcode_properties function and
  some additional routines.
 
  My version of linuxcnc is pretty old, so a diff or patch wouldn't be
useful.
 
 That change looks good to me, thanks.
 
 I pasted all the parts of your file into appropriate-seeming places in
axis.py,
 and it runs, so that's good.  But i think something's off with the
estimate still.
 
 I did some testing with the sim/axis/axis config.
 
 Your code's estimate for the splash screen gcode is 2:09, which is within
a
 second of the measured runtime.  The current version of Axis in the master
 branch estimates 2.1 minutes, so they agree on this one.
 
 But the estimate for 3D_Chips.ngc is way off.  The current master version
of
 Axis estimates 0:46, your code estimates 3:44, and measured runtime is
1:11.
 So I think there's some work to do still.
 
 I pushed your updated version to git.linuxcnc.org as a branch called
 'seb/master/ftkalcevic-axis-estimate', for wider testing and in case you
want
 to refine the code.
 
 
 --
 Sebastian Kuzminsky
 


--
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 


--
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT: Pogo Pins

2014-10-16 Thread Frank Tkalcevic
I just used a standard IDC connector and a bit of PCB to keep the 0.1
spacing...

http://www.franksworkshop.com.au/images/pogo_icp.jpg



 -Original Message-
 From: Kirk Wallace [mailto:kwall...@wallacecompany.com]
 Sent: Thursday, 16 October 2014 6:51 AM
 To: Enhanced Machine Controller (EMC)
 Subject: [Emc-users] OT: Pogo Pins
 
 I'm planning on using these pins: http://www.ebay.com/itm/141233257616
 which are .053 in dia. with 5mm and .150 pitch.
 
 I would like to connect to the pogos with a connector rather than
soldering a
 wire. I would like the connector to be between two boards:
 http://wallacecompany.com/tmp/Screenshot_pogo1.png
 
 I recall some connectors used to connect board to board, where header pins
 from the bottom board pass through the bottom of the top board and into a
 connector on top. Does anyone have a link to such connectors?
 
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/
 


--
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Thoughts on a Python script to calculate estimated run time, for G code and my first hacked sub routine

2014-10-15 Thread Frank Tkalcevic
I was so annoyed that the estimates for my 3d printing jobs were so far off
(estimated 2 hours, took 8) that I modified the axis code.  It looks at the
Velocity and acceleration of each axis and tries to calculate a more
accurate time.  It only looks at moves - no G64 or probing.  It isn't
perfect, but much closer.

The attached file is the changes - a new gcode_properties function and some
additional routines.

My version of linuxcnc is pretty old, so a diff or patch wouldn't be useful.

Frank 





 -Original Message-
 From: Sebastian Kuzminsky [mailto:s...@highlab.com]
 Sent: Thursday, 9 October 2014 1:45 AM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] Thoughts on a Python script to calculate
estimated
 run time, for G code and my first hacked sub routine
 
 On 10/8/14 9:01 AM, Schooner wrote:
  First Q
 
From Axis
 
  File  Properties
 
  Brings up the properties of the currently loaded gcode including
  estimated run time
 
  Always underestimates as it takes no account of time used in
  acceleration and deceleration to/from the required Feed speed
 
 Yep, the estimate is off.  It's based on the gcode only, and does not take
into
 account important things like machine acceleration and spindle
acceleration
 as you say, as well as things like tolerance (G64 P) and probing.
 
 The only way I can think of to improve the estimate would be to run the
 motion controller, disconnected from actual motion, and see how long the
 motion actually takes.  That's probably possible, but it's not a small
change to
 design  implement.
 
 
 --
 Sebastian Kuzminsky
 


--
 Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve
 PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you
 Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to
 PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
 http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.cl
 ktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
class AxisParam:
def __init__(self, vel, acc):
self.vel = vel
self.acc = acc

def StraightExecutionTime( self, distance, feedrate ):

t = 0.0
if feedrate is None:
v = self.vel
elif feedrate  self.vel:
v = self.vel
else:
v = feedrate

distance = abs(distance)
a = self.acc

if distance  0:
# calc time and distance to accelerate to v
# v = at
# s = 1/2 a t^2 + v0 t,  assume v0 = 0
t = v / a
s =  1.0 / 2.0 * a * t *t

# check if accelerating to v then decelerating to v fits in the 
distance
if 2.0*s  distance:
t = 2.0 * t + (distance - 2.0*s) / v
else:
t = 2.0*math.sqrt( 2.0 * (distance/2.0) / a )

#print distance=,distance, a=, a, v=, v, t=, t
return t

def CalcExecutionTime( axis_params, start_point, end_point, feedrate=None ):
distance = sum( (s-e)**2 for s, e in zip(start_point, end_point))
distance = math.sqrt(distance)

longest_time = 0
for ap,start,end in zip(axis_params, start_point, end_point ):
if not ap is None:
f = feedrate
if not feedrate is None:
f = feedrate * abs(end-start)/distance
time = ap.StraightExecutionTime( end - start, f )
if time  longest_time:
longest_time = time
return longest_time

def CalcArcExecutionTime( ap, arcfeed ):
# Arcs have already been converted into line segments.
# We calculate absolute distance travelled in dx, dy, dz, etc
# and estimate the time in each axis.  This wont take into
# account an axis with low acceleration, but should be close enough.
time = 0
last_line = 0
last_feed = 0
arclen = [0,]*9
segcount = 0
for arcseg in arcfeed:
# Each record contains, line number, start, end, feedrate.
# We determine the end of an arc when the line # changes or the feed 
changes
line = arcseg[0]
start = arcseg[1]
end = arcseg[2]
feed = arcseg[3]

if line != last_line or feed != last_feed:
if segcount  0:
t = CalcExecutionTime( ap, [0,]*9, arclen, last_feed )
time += t

arclen = [0,]*9
segcount = 0

# sum the distance travelled in each axis
for i in range(0,9):
arclen[i] += abs(end[i]-start[i])
segcount += 1

last_feed = feed
last_line = line

if segcount  0:
t = CalcExecutionTime( ap, (0,)*9, arclen, last_feed )
time += t

return time

#Replace in class TclCommands(nf.TclCommands):

def 

[Emc-users] G70, G71, G72 Lathe profile cycles

2014-04-17 Thread Frank Tkalcevic
For the TL;DR bunch, my question - when implementing these, should they have
smarts in them to prevent gouging or overloading the tool?  Or is it assumed
that the operator/programmer is smart enough not to try something dangerous?

 

Detailed question.

I want to implement these as wizards.  I see there is already work done here
(http://linuxcnc.org/index.php/english/forum/40-subroutines-and-ngcgui/11414
-metric-lathe-subroutines-g71-g72-etc-etc) so I'll probably borrow from
that.

 

My question is related to what should the cycles do, if anything, when there
is potential tool gouging, or excessive loading of the tool.

 

There is a great picture of what I'm talking about here
(http://www.linuxcnc.org/index.php/english/forum/20-g-code/27040-g71-g70-cyc
le-for-lathes-first-tests).  In the picture at the bottom, if that was
really the lathe tool being used, it would gouge the work piece as it hit
the 90 degree shoulder at the left (both in roughing passes, and finishing).

 

I've read Shmid and he says that if there is a 90 degree shoulder, the
cycles will only rough up to the final surface and will not cut that face on
a finishing pass.

 

So I can implement that and rely on the operator to select the correct tool.

 

What about things like the arcs - in the left most arc, as the tool moves
left during a finishing pass, it will be taking heavier cuts if multiple
finishing passes are a fixed offset from final profile.   Should I be taking
into account the amount of material that is being removed?   Do fanuc and
haas cycles do this?  This will complicate the configuration by needed to
know the tool geometry.

 

Frank

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Multiple INI files

2014-02-13 Thread Frank Tkalcevic
Post an enhancement request on the dev mailing list.  There are lots of
developers out there that would like to contribute to linuxcnc but don't
because a lot of the required work requires in depth knowledge - ini file
enhancements should be a simple standalone task.  Ini file access should be
through the inifile library, so it should only need to be changed in the
C/C++ code in one place.

But first, it needs to be spec'ed...

I suggest...

* An new command in the ini file...

[include filename]

It is a bit of a fudge reusing a section.  Anything after the include 
will be treated as a single file name, so for those that must, can put
spaces in the path.

* Any section tag eg [section] that is duplicated across multiple .ini files
will have their list of values be combined,

Eg...

one.ini
[Section1]
Tag1=a
Tag2=b

[Section2]
Tag1=a

[include two.ini]
--
two.ini
[Section1]
Tag1=c
Tag3=d

Will produce the equivalent .ini file...

[Section1]
Tag1=a
Tag2=b
Tag1=c
Tag3=d

[Section2]
Tag1=a




 -Original Message-
 From: Marius Liebenberg [mailto:mar...@mastercut.co.za]
 Sent: Wednesday, 12 February 2014 6:52 AM
 To: Enhanced Machine Controller (EMC)
 Subject: [Emc-users] Multiple INI files
 
 I dont know if this has been asked before but hear me out please.
 I wondered why we could not have a number of INI files with an #INCLUDE
 type of structure. I would very much like to segment my configuration into
 usable sections like all the AXIS tuning parameters in one file for
instance.
 And then place all the display related stuff into another.
 
 --
 
 Regards /Groete
 
 Marius D. Liebenberg
 +27 82 698 3251
 +27 12 743 6064
 
 


--
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.cl
 ktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] beaglebone linuxcnc MPG

2014-01-20 Thread Frank Tkalcevic
The BBB CPU has internal encoder reading hardware, so that is a low CPU use
option.

Also, a USB pendant is generally a pretty low load.

Frank

 -Original Message-
 From: Jon Elson [mailto:el...@pico-systems.com]
 Sent: Monday, 20 January 2014 12:01 PM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] beaglebone linuxcnc MPG
 
 On 01/19/2014 05:51 PM, Josiah Morgan wrote:
  hey,
  I was wondering if it was possible to use a pendant/mpg with the
  machineKit build.  if so, what encoder/pulse counter would I need to
  use in the touchy HAL file?
  if not, what is the best alternative that would work for machineKit?
 
  thanks in advance
 For an MPG, you don't need to count high pulse rates, so even sampling the
 GPIO pins at the servo rate will work.  I do this on my minimill, as I ran
out of
 hardware encoder counters on that machine.
 The BBB has loads of GPIO pins, but I gather that you'd need some kind of
 HAL driver to read in a bunch of them.  That should be pretty simple to
create
 if it doesn't already exist.  The hardest part is getting the GPIO pins in
the
 right input-vs-output state, then you can just read them as a word in the
 memory space.  Once there's a driver reading in the pins, you can connect
 the software encoder HAL component to them.
 
 Jon
 


--
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical
 Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.cl
 ktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] math in a hal file

2013-12-21 Thread Frank Tkalcevic
Can you do math in a .hal file?

 

I need to set halui.jog-speed, which is just MAX_VELOCITY in the [TRAJ]
section of the ini file.  But MAX_VELOCITY is in machine units (mm/s), and
halui.jog-speed appears to  be in program(?) units (mm/min), so I need to
multiple by 60.  I really need to do this in my hal file.

 

setp halui.jog-speed [TRAJ]MAX_VELOCITY * 60

 

 

Can this be done?

 

Frank

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Beaglebone USB

2013-12-03 Thread Frank Tkalcevic
 I've been fighting with USB port on my BBB for a few month.
 First, I can't connect separate keyboard and mouse - only combo devices.
 USB hubs won't work (I tried a few). Obviously I can't use USB flash
drives
 either.

Strange, I had all these problems with my Raspberry Pi.  It would only work
with 1 USB hub I had.  I haven't had compatibility problems with BBB.

 Second, when I unplug USB keyboard and plug it back, BBB does not see it
 again.

From memory, the BBB doesn't support hot plugging USB devices (or doesn't do
it well).   I spent a day messing with that.  I don't have a problem if
everything is connected at power up.




--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc-users@lists.sourceforge.net

2013-11-28 Thread Frank Tkalcevic
 - There are two STL to GCODE converter programs in the Windows side of
 things:
-  -  Skeinforge
-  -  Slic3r

Slic3r runs on linux too.


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB Camera for edge finder?

2013-11-07 Thread Frank Tkalcevic
I took the lens assembly from a small broken video camera and stuck the
sensor from a usb cam to the end of it.  The sensor had to be mounted about
2cm further back to allow for close up shots.  The lens has 2 small stepper
motors to adjust the 2 lenses.

In version 1, I damaged the stepper motors trying to unsolder them from the
flex cable, so I created small hand wheels from layers of heat shrink
tubing.  That allowed me to zoom and focus, but after time, the vibration
from the machine caused it to drift.

I'm working on version 2 with a new lens assembly.  This time I left the
flex cable on the lens so I can now connect to the stepper motors and the
optical home sensors.  I've got a working prototype, but I still need to
work out how to mount it permanently so I can adjust it to be parallel with
the z-axis, and enclose it.

Frank

-Original Message-
From: Russell Brown [mailto:russ...@lls.lls.com] 
Sent: Thursday, 7 November 2013 10:16 PM
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] USB Camera for edge finder?


I've been playing around with camview and a little 10mm endoscope type USB
camera to see if I could rig such a thing up as an edge finder permanently
mounted my mill's head.

That's OK but you have to get very very close to the workpiece for even a
half decent resolution which doesn't work when there's a collett holder and
tool in the spindle (part of the reason for doing this is to avoid chucking
the edge finder so I don't want a spindle type camera).

I also tried a USB 'microscope' but the depth of field is very small again
you have to get pretty close and twiddle with the focus to get a useful
resolution.

Has anyone found a USB camera with both a high magnification and a decent
depth of field?  (I've a feeling that these are mutually
exclusive) or even one that can focus at a high resolution from a workable
(~200mm?) distance?

TIA
--
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 


--
November Webinars for C, C++, Fortran Developers Accelerate application
performance with scalable programming models. Explore techniques for
threading, error checking, porting, and tuning. Get the most from the latest
Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB Camera for edge finder?

2013-11-07 Thread Frank Tkalcevic
 The only problem is that it does not work through 7 m long usb cable -
that is how long it takes through all the cable chains.

You need an active USB extension cable.  They are powered and I've seen them
available in lengths from 5m to 20m 


--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Touchy with 1024x600 resolution display?

2013-11-01 Thread Frank Tkalcevic
Alexander Rössler mail.aroessler@... writes:

 
 Hi,
 
 I am currently working on some new QML based GUI especially designed for 
 small touchscreen displays to control 3D printers. That kind of thing might 
 be also suitable for your screen as QML is very flexible.
 
 Regards
 Alexander

I'd love to see what you've done so far.  I started build something too, that 
would work with small LCDs (400x240) that would fit in a pendant.  Rather than 
using QML, I used plain QT and parsed my own XML file.


--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Rotary stage

2013-10-29 Thread Frank Tkalcevic
When you import using alibre, you can use the Import File Options, and check
Heal, Make Tolerant and Discard Non-solid Faces.  I don't know which
one fixes it, but without them, it looks like the normals are inverted.

-Original Message-
From: andy pugh [mailto:bodge...@gmail.com] 
Sent: Wednesday, 30 October 2013 6:42 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Rotary stage

On 29 October 2013 13:18, Stuart Stevenson stus...@gmail.com wrote:
 Here is a model of the worm and table using the curve in the previous 
 iges file

 https://www.dropbox.com/s/vq62ky4lmmr1nnc/ballwormex1.igs

Unfortunately Alibre refuses to render any teeth on the wheel, and AutoDesk
Inventor crashes when trying to open the file.
Which is all rather unsatisactory.

--
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto


--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Controlling LinuxCNC externally with C++ program

2013-10-21 Thread Frank Tkalcevic
As has been mentioned before, using linuxcncrsh may do all that you need.
It can open files, start/stop runs, return status etc.

It is a simple telnet interface, so you just need a socket connection and
then send text commands down the line.  There is a Java example in the forum


http://www.linuxcnc.org/index.php/english/forum/21-axis/21678-controlling-li
nuxcncrsh-from-a-java-program

Or, you can look at the linuxcncrsh source to see an example of remote
control.

Be careful though, the linuxcncrsh code has been changed so that it must be
the only GUI.  If you try to run it with axis at the same time, linuxcnc
will eventually fail.  The documentation still says that you can run it with
axis.


-Original Message-
From: Walter Cigana [mailto:walter.cig...@gmail.com] 
Sent: Monday, 21 October 2013 5:22 PM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Controlling LinuxCNC externally with C++ program

Hi all,

I am still Learning LinuxCNC and I again have a few questions.

I am trying to figure out the best way to drive LinuxCNC from a C++
program.

This program would receive general commands from the user, something
like: execute procedure 1 and translate this into telling LinuxCNC to open
a specific file and run the G-code therein.

I saw that there is a Python interface:
http://www.linuxcnc.org/docs/html/common/python-interface.html#_the_linuxcnc
_python_module

The doc states that Programmatic access to NML is through a C++ API;
however, the most important parts of the NML interface to Linuxcnc are also
available to Python programs through the linxuxcnc module.

I do not really feel like learning Python, but I cannot find the C++ way to
do this.  I have seen some documentation, but nothing specific and I cannot
find any examples.

Ideally, I could just use an API from my program.  Can someone point me in
the right direction???

thanks,
Walter

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from the latest Intel processors and coprocessors. See abstracts and
register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135031iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Is LinuxCNC right for me? Basic questions.

2013-10-11 Thread Frank Tkalcevic
 First, is there a way to remotely control LinuxCNC and get feedback from
it to my UI?

As you said, there is linuxcncrsh.  I use it to monitor the status of my
machines (C# windows app).  

Also, linuxcnc uses NML for interprocess communication.  This is supposed to
work between machines just by setting up the correct linuxcnc.nml file, but
I've never tried it.  Theoretically, you can move the gui to another machine
just by changing this setting, but unfortunately most gui apps require
access to the local configuration files.

 Second, I have seen posts mentioning modBus is available with LinuxCNC and
others saying it isn't.  Which one is it?

I don't think there is a Modbus module, but as others have mentioned,
classic ladder uses Modbus, and there are several inverter
controllers/spindle controllers that use Modbus to communicate.  I think
they are built using libmodbus.

Frank


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Trouble with a USB device on Machinekit BBB system

2013-09-26 Thread Frank Tkalcevic
 I have a file /etc/udev/rules.d/99-shuttlexpress.rules whose content is
 SUBSYSTEM==hidraw, ATTRS{idVendor}==0b33, ATTRS{idProduct}==0020,
MODE=0666
 But this does not seem to be applied as there is no hidraw folder
containing the device in /dev or /dev/input
 Does anyone see what I might be doing wrong or how to debug the situation?


I've had similar problems with other usb devices and udev rules on a BBB.  I
can't remember off the top of my head, but if you search for how to create
udev rules, there are descriptions on how to find your device, and there is
a way to test udev rules that provides a lot of verbose debug and will show
you when udev finds your device.

Frank


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Partial helix

2013-08-20 Thread Frank Tkalcevic
I'm using VisualMill to generate helixes.  It generates lines like.

 

G1 Z0.635 F55.5

G17

G3 X3.225 Y-12. Z-0.5 I0.19679 J-0.10232 P4.553186 F222.

 

 

But linuxcnc complains that the P value isn't an integer.

 

P value not an integer with G2 or G3

 

However the G2/G3 documenation in the wiki says partial P values are
supported.

 

To program an arc that gives more than one full turn, use a P word
specifying the number of full or partial turns of arc.

.

Multi turn helical arcs are supported and give motion useful for milling
holes or threads

 

 

Are partial revolutions supported?  Or is that just an incorrect check in
the interpreter code validation?

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Partial helix

2013-08-20 Thread Frank Tkalcevic
Thanks, 

After reading the documentation again, I can see how it says that.



-Original Message-
From: Jeff Epler [mailto:jep...@unpythonic.net] 
Sent: Wednesday, 21 August 2013 10:02 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Partial helix

A 3 1/2 revolution helix can be done like so:

g0 x0 y0 z0
g17 g3 y2 z-4 p4 j1 f100

I think another way to state what is required is that the P-number is the
ceiling (rounded up) of the possibly-fractional number of turns.
In gcode this could be expressed as P[FUP[4.553186]], or you could round up
in your post.

Hopefully someone can come up with a clear wording for the documentation.

Jeff


--
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights, analysis
and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] [Emc-developers] Rename related?

2013-08-19 Thread Frank Tkalcevic
 And one more question - I recall that somebody defined the camera as tool
99 to treat the offset along x and y between camera and spindle.
 I did measure these offsets, but I do not understand, what to do next. I
edited tooltable, added tool, also gave it number 99, entered offsets
  along x, y, z and diameter values set to 0,1 just to have something. How
do I apply them? By running m6 t99 and/or g43 t99? I tried the 
 first and it froze for a while and did not execute any mdi commands. I
would appreciate, if those users, that have did this, could share their
experience.

I use...

G43 H99

Note the H, not the T.



--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] convert g1s to g2/3s

2013-06-19 Thread Frank Tkalcevic
 Frank, did you come up with the algorithm yourself? or is there a
reference (web-link, paper) I could read somewhere?

I just hacked the code.  The original comments say it was based on the
Douglas-Peucker simplification, but because of the way it subdivided the
gcode commands, it would end up with multiple G2/3 commands for the one arc.
It was easier to dumb it down and just process the gcode sequentially
rather than try and join arcs together.

 This would be very useful for opencamlib also. For slic3r G-code I guess
you can assume all arcs are in the XY plane, for opencamlib I'd like to
extend that to XZ and YZ planes also.

 You have two tolerance parameters. From a user perspective only one
tolerance, the maximum deviation from the arc to the programmed g-code lines
would be preferable?

Yes, that makes sense.  The tolerance for segment length could be calculated
from the deviation tolerance.  I added the second tolerance (line length)
because the algorithm didn't work when zig-zagging across a circle (3d print
fill).  Because all the points were on the circle, it created an arc rather
than fill.  

 Is there a maximum and minimum allowed radius for the arc? (a straight
line is in theory just an arc with a large radius :)

There's nothing that prevents that except the tolerances.  I tweaked the
tolerances until I stopped getting curves when I should have got lines.  The
tolerance was made very small. 




--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] convert g1s to g2/3s

2013-06-16 Thread Frank Tkalcevic
I've added my script to the Wiki,
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs

 

It will take a gcode file (only tested with Slic3r output) and convert the
many short line segments back to arcs.  It can make a huge difference to
print speed and file size if there are lots of arcs.

 

It's slow, but has been reliable over the last couple of months.

 

Frank

 

 

From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au] 
Sent: Thursday, 28 March 2013 9:18 AM
To: Enhanced Machine Controller (EMC) (emc-users@lists.sourceforge.net)
Subject: convert g1s to g2/3s

 

Does anyone know of a script that converts G1 line segments into G2/G3
curves?  In the src tree I found author.py which has an implementation of
the Douglas-Peucker simplification algorithm, but I can't see where it is
used.  Is there a script anywhere that uses it?

 

I want to use this to simplify the output of the 3d printer software Slic3r.
It only generates line segments which slows down my router.  Most of my
shapes have circle shapes, so it would be nice to use G2/G3.

 

I've tried a trial version of a program I found on the 'net, but it didn't
work because there are A axis moves on each line (A = extruder).

 

Frank.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Machine slowed to a crawl

2013-06-14 Thread Frank Tkalcevic

 After rebooting, I restarted my job and it completed fine (it took 8 
 hours :( ) without using linuxcncrsh.
   
Hmm, one possibility is there's a memory leak, and it ran the CNC system
out of free memory.  Was the disk busy (swapping)?  But, I'm just guessing.

I don't think so.  The machine was very responsive.  When running normally,
axis uses most of the CPU so all other tasks run slowly.

Are there some performance statistics I can check for if this happens again?
I know the windows environment better - I know where to look for process
memory leaks, resource leaks, etc.




--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Why is LinuxCNC Great?

2013-06-13 Thread Frank Tkalcevic
I started with Mach3, but made bad hardware decisions.  I wait for years for
the G100 to work with Mach3, then I switched to the smooth stepper, but that
also had problems with my gantry hardware.  This was over a period of 3-4
years.

Then I switched to EMC2 with 5i20 hardware.  EMC2 didn't work properly with
my gantry system, but 30 minutes of searching through the code, a quick fix
and I was up and running.  

So for me, it's the opensourceness of it, being able to fix problems myself,
and not wait on others.


-Original Message-
From: Charles Steinkuehler [mailto:char...@steinkuehler.net] 
Sent: Thursday, 13 June 2013 9:07 PM
To: EMC2-Users-List
Subject: [Emc-users] Why is LinuxCNC Great?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Why do you use LinuxCNC and what are the features you like best?  I am about
to introduce some new users to LinuxCNC and I want to make sure I have a
good list of it's strengths.

I was drawn to LinuxCNC because of HAL and programmable kinematics, but I'm
sure there's a lot of features I don't even know about.

Help me out with some talking points!  :)

- --
Charles Steinkuehler
char...@steinkuehler.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlG5p+gACgkQLywbqEHdNFxWtwCg7Os7jOMCYOsG0junv6jR+yW3
TSEAoJsDpB1oM00TfvEbJDLQuPUnJgcG
=eYl8
-END PGP SIGNATURE-


--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Machine slowed to a crawl

2013-06-13 Thread Frank Tkalcevic
I originally posted this on IRC, but my network died so I couldn't discuss
it.

 

I was 4 hours into a 3D print using linuxcnc, and the machine crawled to an
almost complete stop. My job was still running, but it executed 1 line of
gcode, then pausing for 2 seconds. Axis wasn't showing the preview. The DRO
read all 0.  'top' showed CPU at about 5% (it normally 80% or more because
of axis).

 

While the job was running, I was writing a monitoring application (on
windows in c#) that would connect to linuxcncrsh and query the machine
status every 5 seconds.  I noticed the linuxcncrsh code reuses the nml
interfacing code in halui.cc.  Does this mean that linuxcncrsh uses the same
nml channel as axis?  Could this have been my problem?

 

After rebooting, I restarted my job and it completed fine (it took 8 hours
:( ) without using linuxcncrsh.

 

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread Frank Tkalcevic
I have an extruder attached to my cnc router. 

I've never had much luck with G64.  The default settings always round off
sharp corners.  I usually use G64 P0.1, which doesn't make much difference
to the speed.

I managed to get the Douglas-Peucker algorithm working.  It shaved 4 minutes
off a 20 minute print, which was good considering there wasn't a lot of arcs
(the part was a thick washer - round outside with a round hole, but filled
with horizontal and vertical lines).  With a tight tolerance, it's more of
an arc fitting algorithm.  Performance is the reason I wanted to the arcs
fitted.  It's annoying watching the machine move at 2400mm/min in straight
lines, then slowing down to 400 going around curves which I know are part of
a circle.

But, as you say, my fundamental issue is losing the curve information when I
convert my CAD models to STL.  This will go into the too hard basket for
now - the waterline processing sounds interesting, but I'm put off by having
to process a CAD file.

Thanks,
Frank


-Original Message-
From: Kent A. Reed [mailto:kentallanr...@gmail.com] 
Sent: Friday, 29 March 2013 12:52 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] convert g1s to g2/3s

On 3/28/2013 7:56 AM, BRIAN GLACKIN wrote:
 G64 does this for you without changing the code.


 See
 http://www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G64

 for more details.
 On Wed, Mar 27, 2013 at 6:17 PM, Frank Tkalcevic  
 fr...@franksworkshop.com.au wrote:

 Does anyone know of a script that converts G1 line segments into 
 G2/G3 curves?  In the src tree I found author.py which has an 
 implementation of the Douglas-Peucker simplification algorithm, but 
 I can't see where it is used.  Is there a script anywhere that uses it?
 

Frank:

If you are after speed rather than fidelity, then Brian's answer is spot on.

Let's be clear though that both G64 and the Douglas-Peucker algorithm are
just smoothing filters. They neither know nor care that your original curves
are composed of circular-arc segments. If it's important to you to preserve
their circular-arc character then you need to use a toolpath generator that
works from your original 3D model rather than the triangulated surface model
that was extracted from the model and transferred to Slic3r via an STL file.
I seem to recall the subject of recreating circular arcs from line segments
has been discussed on this list in the past but I don't recall any magic
solutions being offered.

I'm intrigued by the juxtaposition of the words Slic3r and router. 
Are you using Slic3r to create 2D contours that you cut with a CNC router or
are you using a CNC router with an extruder as a 3D printer? 
If the former, then you may want to look at so-called waterline milling
algorithms used in CAD/CAM to see if you can generate more efficient
toolpaths. Our very own Anders Wallin has opined on the subject
(http://www.anderswallin.net/category/cnc/cam/waterline-cam/).

Regards,
Kent



--
Own the Future-Intelreg; Level Up Game Demo Contest 2013 Rise to greatness
in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game on Steam. $5K
grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] convert g1s to g2/3s

2013-03-27 Thread Frank Tkalcevic
Does anyone know of a script that converts G1 line segments into G2/G3
curves?  In the src tree I found author.py which has an implementation of
the Douglas-Peucker simplification algorithm, but I can't see where it is
used.  Is there a script anywhere that uses it?

 

I want to use this to simplify the output of the 3d printer software Slic3r.
It only generates line segments which slows down my router.  Most of my
shapes have circle shapes, so it would be nice to use G2/G3.

 

I've tried a trial version of a program I found on the 'net, but it didn't
work because there are A axis moves on each line (A = extruder).

 

Frank.

--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Generic motion.spindle.at-speed pin?

2013-03-17 Thread Frank Tkalcevic
I'm setting up a configuration to use my CNC router as a 3D printer.  I'd
like to be able to use custom M-codes to set the temperature of the extruder
and the heated build platforms.  Is there a way, like
motion.spindle.at-speed, that I can make the gcode automatically pause
until the temperatures are ready? (my user component already returns a
ready signal, so I just need to hook it into linuxcnc somewhere)

 

Thanks,

Frank

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] carbide pcb drills

2012-11-06 Thread Frank Tkalcevic
Another source...

http://drillcity.stores.yahoo.net/680310.html



 -Original Message-
 From: Gene Heskett [mailto:ghesk...@wdtv.com]
 Sent: Wednesday, 31 October 2012 2:15 AM
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] carbide pcb drills
 
 On Tuesday 30 October 2012 11:14:45 jclo...@windstream.net did opine:
 
  Try this
  http://www.ebay.com/itm/New-10pcs-68-Wire-Size-Solid-Carbide-PCB-
 Print
  -C
  ircuit-Board-Drill-Bits-
 /120995129465?pt=LH_DefaultDomain_0hash=item1
  c2
  bdf2879
 
 That is the same link Ed sent, thanks.
 
   Chris Radek ch...@timeguy.com wrote:
   On Tue, Oct 30, 2012 at 10:12:59AM -0400, Gene Heskett wrote:
rapidly.  And I've not found anyone who will sell me carbide #68's
in ten packs w/o a 3 digit price yet. :(
  
   A 10-pack of #68 pcb drills (carbide, 1/8 shank, optional depth
   rings) is $22.55 at www.thinktink.com
  
   The 1/8 shank is nice because you can use an end mill holder or a
   collet.  The depth rings make the stickout somewhat repeatable
   across tool changes.
  
   Looks like they have a minimum order and pretty high shipping costs,
   unfortunately.
  
   
   --
    Everyone hates slow websites. So do we.
   Make your web apps faster with AppDynamics Download AppDynamics
 Lite
   for free today:
   http://p.sf.net/sfu/appdyn_sfd2d_oct
   ___
   Emc-users mailing list
   Emc-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/emc-users
 
  --
  --
  -- Everyone hates slow websites. So do we.
  Make your web apps faster with AppDynamics Download AppDynamics Lite
  for free today:
  http://p.sf.net/sfu/appdyn_sfd2d_oct
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 
 Cheers, Gene
 --
 There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order.
 -Ed Howdershelt (Author)
 My web page: http://coyoteden.dyndns-free.com:85/gene is up!
 Conceit causes more conversation than wit.
   -- LaRouchefoucauld
 


--
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics Download AppDynamics Lite
 for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Intel DN2800MT - possible new LinuxCNC star?

2012-05-23 Thread Frank Tkalcevic
I was in the market for a mini-ITX motherboard at the beginning of the year.
I wanted that board, but it hadn't been released yet.

I ended up getting a D2700 based one...

http://www.mitxpc.com/proddetail.asp?prod=MBNC9KDL2700

I don't remember the numbers, but the latency was good.  

I did have some problems getting some device drivers working - things like
the Sensor monitors.  The CPU/Chipset was too new for the 10.04 kernel to
know about them.

Frank



 -Original Message-
 From: Andrew [mailto:parallel.kinemat...@gmail.com]
 Sent: Wednesday, 23 May 2012 3:10 AM
 To: Enhanced Machine Controller (EMC)
 Subject: [Emc-users] Intel DN2800MT - possible new LinuxCNC star?
 
 Hi everyone,
 
 I just ran into Intel DN2800MT mini-ITX motherboard.
 http://www.intel.com/content/www/us/en/motherboards/desktop-
 motherboards/desktop-board-dn2800mt.html
 It has HDMI, LVDS (can be useful for LCD panels), LPT header, two miniPCIe
 slots (SSD and wifi if necessary) and built-in PSU! (8-19V DC input
required).
 PCIe slot is suitable for 6i25, which is probably very new, it's even not
in
 MESA's price list, I guess the price is compatible to 5i25's.
 Very thin board, all looks perfect. Costs $105. But the most important
 question is:
 Anyone tested the latency?
 
 Regards,
 Andrew


--
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Behavior of Touch-Off Dialog (and Tool Table Editor?)

2012-05-08 Thread Frank Tkalcevic
 More exotic ideas might involve two entry boxes and two submit
buttons...

How about defaulting to the current position in the text box, and adding a
Zero button that zeros and submits in one click.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Unhoming when powered off.

2012-03-23 Thread Frank Tkalcevic
My gantry still has some spring in it.  If I manually cut power, or fault,
the slaved axis move slightly, so when I try to power on again (F1/F2), it
immediately faults.  I need to unhome, go back to joint mode and rehome, but
I can't because Axis disables the unhome menu options.

Is there any technical/safety reason I shouldn't be able to unhome when
powered off?  I've still yet to look at the code to see if it is possible.

Frank


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Strange Sound from Motors when Home Latched

2012-03-14 Thread Frank Tkalcevic
I had a problem similar to this, including intermittent faulting, because I
didn't have HOME_FINAL_VEL set. It was moving from the index position, to 0
too fast.  I can't remember if it was because I hadn't set the maximums yet,
or if it was the bug in joint mode, where an axis can exceed its maximum
velocity.

 -Original Message-
 From: Sebastian Kuzminsky [mailto:s...@highlab.com]
 Sent: Wednesday, 14 March 2012 4:43 PM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] Strange Sound from Motors when Home Latched
 
 On 03/13/2012 09:53 PM, Shabbir Hussain wrote:
  I have set up a lathe machine with analog AC servos and Mesa 7i43 and
 7i33.
  The following error is 0.017 mm at start (acceleration) and then reduced
to
 0.008 mm at 6000 mm/min. Everything is just fine except:
 
  When the machine is homed the axis moves towards home switch, touches
 it and then moves away with latch velocity. As the index pulse is
encoutered
 the axis stops with a DHUCKK sound. The sound only comes in homing
 when the axis are away from home switch ( say 150 mm). The machine runs
 fine rest of the moves. I can jog it at 7200 mm/min, stop it then move it
in
 reverse direction without any sound. The setting for HOME_SEARCH_VEL is
 20 mm/sec and HOME_LATCH_VEL is set at -1.0 mm/sec. The hal scope trace
 of the f-error signal shows an error of 0.06 mm and pid output saturated
for
 very small time.
 
  I am using 2.4.7 on ubuntu 10.04.
 
  Kindly advise?
 
 We used to call this the index homing THUMP problem  ;-)
 
 Chris Radek fixed it back in 2009; the fix is in 2.4.7 but you need to
enable it in
 hal.
 
 The pid component has a pin named index-enable, you should hook it to
 the encoder's index-enable pin to get rid of the thump.  See the pid(9)
 manpage for more details.
 
 
 --
 Sebastian Kuzminsky
 
 


--
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Q re lathe vs axis

2012-03-14 Thread Frank Tkalcevic
 2 identical machines, installed from the same cd, one works, one does not.
 The one that works uses display:10, the newer one that doesn't, tries to use
 display:0.  

display:10 is normally what I see when I ssh to a remote box.  Display:0 is the 
local machine's monitor/video card.

From memory, xhost is the old style security.  You need to look at xauth if 
you are having problems.




--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] State of Wizards/Druids for simple machining.

2012-03-08 Thread Frank Tkalcevic
Don't forget GWiz
(http://wiki.linuxcnc.org/cgi-bin/wiki.pl?GWiz_-_A_Gcode_Wizard_Framework) -
it needs a screen shot - that page doesn't sell it well.

I've build some lathe wizards, and I've just converted my router (although I
usually use visual mill for cam)  It is just waiting for someone to start
adding mill wizards.

If it could be enhanced to easily distribute wizards, maybe python support
(it only does gcode programs at the moment), and It would be super cool if
the linuxcnc preview could be integrated.


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Bringing linuxcnc to its knees, begging for mercy!

2012-03-04 Thread Frank Tkalcevic
I think your program is just doing so too much.  Axis will load your gcode,
then simulate the whole file to get the OpenGL preview.  If you have lots of
little steps, it is going to take a while.  

 -Original Message-
 From: gene heskett [mailto:ghesk...@wdtv.com]
 Sent: Monday, 5 March 2012 3:20 PM
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] Bringing linuxcnc to its knees, begging for mercy!
 
 Amateur that I am, it appears that I have managed to concoct a small,
 nominally 50 line program, that brings linuxcnc to a virtual halt, about 7
 minutes just to load and scan it.  Keyboard response once it is loaded 
ready
 to run, can be 10 to 90 seconds, with gkrellm showing cpu0 at 100%.
 
 But when I turned out the lights  brought my near frozen feet to the
house,
 it was actually running and shaving metal.  Its trying to carve the
tapered
 portion of the hub, but hasn't made enough progress to judge if the angle
is
 correct.
 
 The code, if someone wants to tell me what is wrong, ( there no doubt is
 lots wrong) is at:
 
 http://coyoteden.dyndns-free.com:85/gene/Genes-os9-
 stf/taper_hub.ngc
 
 This is linuxcnc 2.6.0 from master.rt as of about 4 hours ago.
 
 I have seen linuxcnc get sloggy with highly recursive code before, but I
 usually needed 80 or 100 lines of code to do it.
 
 It wasn't into swap the last time I looked.
 
 I also took it several minutes to show the files properties, which
included a
 run time estimate of 2436 and change minutes.
 
 Cheers, Gene
 --
 There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order.
 -Ed Howdershelt (Author)
 My web page: http://coyoteden.dyndns-free.com:85/gene
 Marry in haste and everyone starts counting the months.
 


--
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers is
 just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro
 Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] gremlin.py for a lathe

2012-02-27 Thread Frank Tkalcevic
If you are looking for more bug fixes and enhancements to do...

* The colour of the tool on the lathe is very dark and hard to see.  I've
tried adjusting the colours in gremlin, but I only managed to make it
darker.  
* As an enhancement, moving the font selection string into a function call
so my derived class can override it.  Or add this as a property.  I'm trying
to use gremlin on a small touch screen LCD (480x272 pixels) and the default
font takes up 1/4 of the area.   I'm using FreeMono 10 point now.

I also need to work out how the default view is determined because it comes
up too small.  See link (http://www.franksworkshop.com.au/img_bin/test.png).


 -Original Message-
 From: Chris Morley [mailto:chrisinnana...@hotmail.com]
 Sent: Sunday, 26 February 2012 10:24 AM
 To: EMC
 Subject: Re: [Emc-users] gremlin.py for a lathe
 
 
 
 
  From: st...@pilotltd.net
  To: emc-users@lists.sourceforge.net
  Date: Sat, 25 Feb 2012 23:19:26 +
  Subject: Re: [Emc-users] gremlin.py for a lathe
 
  On Sat, 25 Feb 2012 19:03:35 +, you wrote:
 
 
  What version of EMC ?
  in current 2.5 and above,
 
  2.5 current? Has it been released or still beta?
 
  Steve Blackmore
  --
 
 not released yet.
 but very stable.
 
 current as in the most bug fixes in it.
 Not displaying a lathe config was a bug :)
 
 Chris M
 


--
 Virtualization  Cloud Management Using Capacity Planning Cloud computing
 makes use of virtualization - but cloud computing also focuses on allowing
 computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] gremlin.py for a lathe

2012-02-25 Thread Frank Tkalcevic
Has anyone successfully run gremlin.py standalone (using gremlin-run) with a
lathe?  

When I run it, it is always showing the XY plane, not the ZX plane.  I've
tried setting self.current_view = 'y' (assuming this means view down the y
axis), but no matter what I set this to, it is always shows the XY plane.


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] (no subject)

2012-02-25 Thread Frank Tkalcevic
 The factory of the future:
 http://www.youtube.com/embed/nd5WGLWNllA?rel=0

Almost.  I still see humans on the assembly line.


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] AXIS default jog speed on A-axis

2012-02-07 Thread Frank Tkalcevic
 That sounds like a nice method. I will try to implement that. Setting S to
zero
 to stop material flow is good enough, seems that the dreaded ooze in my
 case starts a few seconds after the extruder is stopped. (Thermal
 expansion?) If I take care to move out of the way before that it seems to
be

I remember reading a technique to stop the ooze was to run the extruder in
reverse a little bit.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] SJ200 VFD and Modbus

2012-02-03 Thread Frank Tkalcevic
 I haven't considered a generic VFD or Modbus device driver, because not
 only do the device functions vary widely, but so do implementations of the
 Modbus standard.

Yes, I found that too.  I built my code based on the GS2 module and
Michael's code.  
 
 Early on, I avoided using the GS2 component as a sample because it
 appeared that it had to be compiled within the LinuxCNC tree. It seemed I
 would need to compile LinuxCNC every time I made a change, but this is
 most likely because I don't understand programming very well.

The idea was to have one user hal module that would be configured by an ini
file, eg

loadusr -W vfdmodule sj2002.ini

All that would change would be the ini file.  My module is driven by the two
tables, currently in the code, but I planned to move the vfd specific part
to the configuration file.  The tables define the Modbus registers and
coils, and which ones you want to appear as hal pins.



--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] SJ200 VFD and Modbus

2012-02-02 Thread Frank Tkalcevic
So which version do you need?  I've made my own revision 2 driver. 

 -Original Message-
 From: Kirk Wallace [mailto:kwall...@wallacecompany.com]
 Sent: Friday, 3 February 2012 2:51 PM
 To: LinuxCNC Users List
 Subject: [Emc-users] SJ200 VFD and Modbus
 
 I'm trying to get my SJ200 VFD connected with Modbus. In preparation for
 this I ported a MVX9000 which I had on the shelf. It turned out to be a
slam
 dunk, almost.
 http://www.wallacecompany.com/machine_shop/EMC2/mvx9000/
 
 The SJ200 is a different story. It turns out Hitachi made a rev. 1 and 2
of the
 hardware, and the register addresses are different. I only found the rev.
1
 manuals on-line, but fortunately had a paper manual, that I finally found,
 which indicated what the problem was.
 
 Plus, there is conflicting information in the application notes about the
 resister addresses being offsets from the register type base address. For
 holding registers, it appears to be 40001. In practice thogh, the Modbus
 query uses only the offset and the query type, read holding register in
this
 case, and the absolute address is handled inside the VFD.
 
 I am able to modpoll the proper registers now, but I have a problem with
 reading more than two holding registers in my component. It looks like
I'll
 need to get into the bowels of libmodbus, unless someone here has dealt
 with this problem and can provide some advise. Thanks.
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/index.html
 California, USA
 
 


--
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homing

2012-01-28 Thread Frank Tkalcevic
In AXIS_1 and AXIS_2 section, you have HOME defined twice.  Once at 0, the
other at 10.0.

 -Original Message-
 From: Viesturs Lacis [mailto:viesturs.la...@gmail.com]
 Sent: Sunday, 29 January 2012 2:08 AM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] Homing
 
 2012/1/28 andy pugh bodge...@gmail.com:
 
  mux2 doesn't work with boolean data, unfortunately.
 
 I do not know, what is boolean, but You are right - it did not want to
work,
 because limit/homing switches are bit pins, mux2 inputs and output are
float.
 
 So I created mux2bit component, where I fixed this...
 
 So that part is working.
 
 2012/1/28 Spiderdab 77...@tiscali.it:
   I have another problem:
  
   Z should home on its upper position and stay there.
   So in INI file I set:
   HOME =                  180.000
   HOME_OFFSET =           180.00
 
   It homes, sets joint coordinates to 180 and goes to 0 ignoring HOME =
 180.
 
  It's been a while, but I think HOME_OFFSET is the distance from the
  switch point to the home position, so if the home switch is at 180
  and the home position is 180 then HOME_OFFSET is zero.
 
 
  For what i know OFFSET should be the same of HOME, if you want the
  joint to stay there. (at least my machine work like this..)
  so:
  HOME = 180.0
  HOME_OFFSET = 180.0
 
 
 
 Yes, I know that it _should_
 But it does not!
 
 Andy, it is working correctly up to the point, where it trips the switch
and sets
 the joint position as stated by home_offset.
 
 The mysterious part is:
 Why on earth it has to move to 0, when HOME is  set to be equal with
 HOME_OFFSET, sho it should just stay there...
 
 I am using 2.5.pre2-18-g799075f
 
 BTW the best part is that both Y joints also are homing in their positive
end
 and they work correctly.
 
 Here are the INI settings:
 
 # Y1
 [AXIS_1]
 
 TYPE =  LINEAR
 MAX_VELOCITY =  66.667
 MAX_ACCELERATION =  120.0
 BACKLASH =  0.000
 FERROR =100.050
 MIN_FERROR =100.010
 
 # INPUT_SCALE =   3276.8
 INPUT_SCALE =   -3276.8
 
 OUTPUT_SCALE =  -71
 OUTPUT_OFFSET = 0.0
 MAX_OUTPUT =66.667
 
 MIN_LIMIT = 0.0
 MAX_LIMIT = 1405.0
 HOME =  1400.0
 HOME_OFFSET =   1400
 HOME_FINAL_VEL =  10
 HOME_SEARCH_VEL =   2
 HOME_LATCH_VEL =-0.5
 HOME_USE_INDEX =NO
 HOME_IGNORE_LIMITS =YES
 HOME_SEQUENCE =   1
 
 # PID tuning params
 DEADBAND =  0.002
 P = 10
 I = 0
 D = 0
 FF0 =   0
 FF1 =   0
 FF2 = 0
 BIAS =  0
 
 
 
 # Z
 [AXIS_2]
 
 TYPE =  LINEAR
 HOME =  0.0
 MAX_VELOCITY =  15
 MAX_ACCELERATION =  60.0
 STEPGEN_MAXACCEL =  70.0
 BACKLASH =0.000
 SCALE =   -400
 
 MIN_LIMIT = -10.0
 MAX_LIMIT = 20.0
 
 FERROR = 0.050
 MIN_FERROR = 0.005
 
 HOME =10.000
 HOME_OFFSET =   10.00
 HOME_SEARCH_VEL =   2.0
 HOME_LATCH_VEL =-0.5
 HOME_USE_INDEX =NO
 HOME_IGNORE_LIMITS =YES
 HOME_SEQUENCE =   0
 
 # these are in nanoseconds
 DIRSETUP   =  4000
 DIRHOLD=  4000
 STEPLEN=  4000
 STEPSPACE  =  4000
 
 
 # Y2
 [AXIS_3]
 
 TYPE =  LINEAR
 MAX_VELOCITY =  66.667
 MAX_ACCELERATION =  120.0
 BACKLASH =  0.000
 FERROR =100.050
 MIN_FERROR =100.010
 
 # INPUT_SCALE =   3276.8
 INPUT_SCALE =   -3276.8
 
 OUTPUT_SCALE =  -71
 OUTPUT_OFFSET = 0.0
 MAX_OUTPUT =66.667
 
 MIN_LIMIT = 0.0
 MAX_LIMIT = 1405.0
 HOME =  1400.0
 HOME_OFFSET =   1400
 HOME_FINAL_VEL =  10
 HOME_SEARCH_VEL =   2
 HOME_LATCH_VEL =-0.5
 HOME_USE_INDEX =NO
 HOME_IGNORE_LIMITS =YES
 HOME_SEQUENCE =   1
 
 # PID tuning params
 DEADBAND =  0.002
 P = 380
 I = 10
 D = 1.9
 FF0 =   0
 FF1 =   0.1
 FF2 = 0
 BIAS =  0
 
 Viesturs
 


--
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers is
 just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro
 Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



[Emc-users] OT: Building kernel modules

2012-01-26 Thread Frank Tkalcevic
I've just got a new motherboard with new generation CPU (Jetaway NC9KDL-2700
with Intel Atom D2700).  Emc works fine, but because the chipset is new, I
can't get the lm-sensors to detect the hardware.  I'd like to monitor CPU
and system temperatures, and control fan speeds.

If I get the latest sensors-detect script, which is module independent, I
detects which modules it needs (coretemp and f71882fg), but the versions in
10.04 are too old.

Is it possible to grab the source for the latest modules (coretemp.c and
f71882fg.c) and build them?  I tried, but had no luck.  

The compiler complained about missing header files, so I specified the
kernel header include paths, but then I got compile errors in the headers.

Any ideas?




--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC: The new name of the Enhanced Machine Controller

2012-01-18 Thread Frank Tkalcevic
Interestingly,  if you google emc opensource, buried among all the
excellent enhanced machine controller articles, there is reference to the
other emc and their foray into open source.  Maybe this is how they get
their google search rating up.

 -Original Message-
 From: Stephen Wille Padnos [mailto:spad...@sover.net]
 Sent: Thursday, 19 January 2012 11:57 AM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] LinuxCNC: The new name of the Enhanced Machine
 Controller
 
 I know it's tongue-in-cheek, but since several people have mentioned this
I
 thought I'd reply.
 
 EMC corp has a trademark in a very related field.  I don't recall the
specific
 area, but it had to do with computer hardware and a particular area of
 computer software (backup most likely).  Though we as a group understand
 the differences, it may seem related or the same to a non-expert observer.
 
 It should be obvious to anyone that PC software and razors are entirely
 unrelated.
 
 I hope this helps.
 
 - Steve
 
 Dave e...@dc9.tzo.com wrote:
 
 Seeing that EMC2 has been stung by the EMC Corporation for trademark
 infringment, why isn't Gillette pursuing Mach3 CNC  ???
 
 Or is it only a matter of time?
 
 
 
 On 1/18/2012 3:05 PM, dave wrote:
  On Wed, 18 Jan 2012 14:46:01 -0500
  Kent A. Reedknbr...@erols.com  wrote:
 
 
  On 1/18/2012 2:39 PM, Jack Coats wrote:
 
  Open Machine Controller or OpenCNC would have been better name.
  Still holding out hope that the software could be supported on
  different platforms.
 
  For now, LinuxCNC is the monniker.
 
  At least it isn't GNUCNC
 
 
 
  Or, in classic Unix fashion, YACNC.
 
  Just to be picky ... yacnc
 
  Dave
 
  But I really like your pun.
 
  yes, at times this group can be pretty punny.
 
 
 
  Regards,
  Kent
 
 
 
 
 
 
 
 
 
 ---
 --- Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
 MVC3, Metro Style Apps, more. Free future releases when you subscribe
 now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers is
 just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro
 Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC: The new name of the Enhanced Machine Controller

2012-01-17 Thread Frank Tkalcevic
Do you think the other mob are in danger of being lawyered by a company that
makes razors?


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] running headless on my ASUS AT5NM10-I MB (Intel Atom D510 cpu)

2012-01-09 Thread Frank Tkalcevic
 I use a D945GSEJT (single core atom 1.6GHz) in that kind of configuration
-
 I've disabled X11, so I always boot to a command prompt.  I have a KVM if
I
 need it.  Jitter - 6873/6755.  When running a desktop it glitches to about
 15000.


Interestingly, if I'm running latency-test then startx, my max jitter hits
700,000.

This is a slow board with a fast SATAII SSD.  I wonder if the disk
interrupts monopolised the CPU?




--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] emc Through ssh

2012-01-09 Thread Frank Tkalcevic
This whole server/client/remote/x11 discussion has got me perplexed.  Maybe
I've missed something, but I've been running my development environment on
headless boxes for years.

I work on a windows 7 box, and use Cygwin/X to connect to the unix boxes.

I run...

ssh -Y -l username hostname

to establish a terminal session to the box.  From there, I can launch any X
application, including axis, and they will pop up on my windows 7 display
without any problems.  Axis pops up in a few seconds, although, as Jon said,
it is generally a bit sluggish because of all the graphics.  

As was mentioned in another post, there are two parts to running an X
application - the X client and the X server.  

The X client is the program - axis, xeyes, glxgears, etc

The X server is the display.

The x client is only linked to the x libraries.  When an x client
application is run, it establishes a connection to the x server (the
libraries contain the connection code) and the server displays the client's
data.  This connection can be local, or remote, over the network.  An X
server does not need to be running on the local box if it is connecting to a
remote server.

Originally, all you needed to do was set the DISPLAY environment variable
and this is where your x windows would apppear...

DISPLAY=hostname:0.0

This has been complicated a bit lately with security, but it is still the
same concept.  If you use ssh, you can set up a X tunnel (or something like
that) and the DISPLAY variable and security are handled transparently.

As I mentioned, I used Cygwin/x on a windows 7 box, but a remote connection
can be to another linux server that is running an X server, that is, running
the gnome desktop.

This means, as Kent discovered, you can create a minimal linux installation,
that is pretty much dedicated to running emc.  Then use a remote connection
to display axis on another machine.

As I write this, I realise there are 2 other ways that one can remote emc.

One is vnc, which allows you to remotely control the box - this is like
providing a virtual keyboard, mouse and monitor.  This is not efficient,
compared to running a local x server.

The other is to use rcs/nml to separate the control and gui parts.  Rcs is
the interprocess communications library, that connects guis and the emc
engine.   This is typically set up to use shared memory to let processes on
the same box communicate, but it can also be set up to use remote
connections.  I'm not sure if axis can work this way because it (or is it
just the plugins) rely on the local machine, eg load gcode, accessing hal
pins, etc.



 -Original Message-
 From: Kirk Wallace [mailto:kwall...@wallacecompany.com]
 Sent: Tuesday, 10 January 2012 6:23 AM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] emc Through ssh
 
 On Mon, 2012-01-09 at 12:40 -0600, Jon Elson wrote:
 ... snip
  Or are you talking about running Axis directly on the remote computer,
  rather than exporting the X display through ssh -X ?  I'm not even
  sure that is possible.
 
  Jon
 
 Oops, I forgot that AXIS doesn't run or run well on the remote PC. tkEMC
 runs fine.
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/index.html
 California, USA
 
 


--
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] running headless on my ASUS AT5NM10-I MB (Intel Atom D510 cpu)

2012-01-08 Thread Frank Tkalcevic
I use a D945GSEJT (single core atom 1.6GHz) in that kind of configuration -
I've disabled X11, so I always boot to a command prompt.  I have a KVM if I
need it.  Jitter - 6873/6755.  When running a desktop it glitches to about
15000.

I still haven't removed all unnecessary daemons.  My plan is to have emc
completely controlled by my pendant so it will be headless.

 -Original Message-
 From: Kent A. Reed [mailto:knbr...@erols.com]
 Sent: Monday, 9 January 2012 10:28 AM
 To: Enhanced Machine Controller (EMC)
 Subject: [Emc-users] running headless on my ASUS AT5NM10-I MB (Intel
 Atom D510 cpu)
 
 Gentle persons:
 
 Recently, I wrote...
 
  I just ran 15-minute latency tests on my ASUS AT5NM10-I board (which is
 equipped with an Intel Atom D510 cpu) first with a stock boot and then
with
 isolcpus=1 as a boot parameter. I've posted my results in the table on the
 Wiki.
 
  In brief, isolating one cpu shaved approximately 6000ns off the max
jitters
 reported for both the base thread and the servo thread.
 
  Of course the latency test should be run much longer but I believe
  these numbers are indicative. YMMV
 
 I had a few minutes this afternoon and decided to try another experiment
 with this board---still running Ubuntu 10.04LTS with the 2.6.32-122-rtai
 kernel.
 
 I disabled Gnome (which shut down X) on the board by running the following
 from the command line:
 
   sudo service gdm stop
 
 (I disabled a few other services too, like Apache, but I don't think this
is
 relevant. The stock Ubuntu/EMC2 install starts up far too many services
for
 my taste. When I want a controller, that's all I want, not a desktop
 computer.)
 
 Then I logged out and disconnected keyboard/mouse/monitor (well, actually
 I just set my KVM switch to another computer; possibly it still imposes
some
 electrical levels at the motherboard connectors.)
 
 Finally, I logged into the board via Ethernet from another computer using
ssh
 -Y and again ran the latency-test for 15 minutes with approximately the
same
 level of stress as before (2 copies of glxgear, web browsing, listing the
 directories of an external USB drive, etc.).
 
 Bottom line: the latency numbers got even better. Max jitter fell to
 3211ns/3222ns.
 
 For some time I have envisioned running my tabletop mill with a headless
 controller and a networked operator console. If anything, the present
result
 says this would be the preferred mode. Of course, I could make it cleaner
by
 stripping down the distribution some more, possible even install RTAI and
 EMC2 over a Ubuntu server distribution to avoid the Gnome/X-server stuff
 altogether, since there's the usual niff-naff about booting Ubuntu desktop
 edition without a monitor attached, etc.
 
 I'm curious if anyone has tried this experiment with other boards and, if
so,
 what results were obtained.
 
 And, yes, I realize I am chasing after diminishing returns. The latency on
a
 stock board is already good enough for practical purposes. Let's just say
my
 home situation causes a form of ADHD were I work furiously on very short-
 term projects.
 
 Regards,
 Kent
 
 
 
 


--
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
desktops
 for less than the cost of PCs and save 60% on VDI infrastructure costs.
Try it
 free! http://p.sf.net/sfu/Citrix-VDIinabox
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


  1   2   3   >