[Emc-users] motor to spindle gear ratio

2015-08-25 Thread Mark Johnsen
>
> Message: 3
> Date: Tue, 25 Aug 2015 19:57:24 -0400
> From: Tom Easterday 
> Subject: [Emc-users] motor to spindle gear ratio
> To: "Enhanced Machine Controller (EMC)"
> 
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
>
> I was working on some issues with the lathe today and discovered that what
> I thought was a 1:1 relationship between the pulley on my spindle motor and
> pulley on the spindle head - is not.  The diameter of the spindle pulley is
> 4.2125? while the spindle itself is 5.175? (they are probably actually
> 107mm and 130mm or thereabouts).  This give a 0.833 ratio and explains why
> 3500rpm is actually spinning at about 3000rpm according to my tach.  I am
> wondering the best way to let Linuxcnc know that this is the case so that
> commanding 3000 gives me 3000.
>
> -Tom
>
>
Tom,

On my mill, my GS2 VFD speed was 'off' (not to mention backwards), and I
used the loadrt scale count=1 in my cutom.hal file to accommodate for
that.  You can read about it here in the docs:
http://linuxcnc.org/docs/html/examples/spindle.html

Not sure that's what you're looking for, but maybe it helps.  Good luck,
Mark
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC controlling inudction heater

2015-08-25 Thread Marius Liebenberg

>Hello to all!
>
>I don't recall showing to the list how the machine works with an actual
>part on it so here it is: A short video showing how it heats, quenches 
>and
>then goes to the next position.
>
>https://youtu.be/xyWUCGUbUaY
Wow man now that is impressive. What is the power rating of the 
induction heater?

>
>As always thanks for your support!
>
>
>--
>*Leonardo Marsaglia*.
>--
>___
>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] LinuxCNC controlling inudction heater

2015-08-25 Thread Sebastian Kuzminsky
On 8/25/15 10:17 PM, Leonardo Marsaglia wrote:
> https://youtu.be/xyWUCGUbUaY

Very cool.  What part does linuxcnc do?  How is it hooked up in hal?


-- 
Sebastian Kuzminsky

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


[Emc-users] LinuxCNC controlling inudction heater

2015-08-25 Thread Leonardo Marsaglia
Hello to all!

I don't recall showing to the list how the machine works with an actual
part on it so here it is: A short video showing how it heats, quenches and
then goes to the next position.

https://youtu.be/xyWUCGUbUaY

As always thanks for your support!


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


Re: [Emc-users] motor to spindle gear ratio

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 21:06:26 andy pugh wrote:

> On 26 August 2015 at 02:01, Gene Heskett  wrote:
> > If there is a general "rule of thumb" for setting the PWMGEN SCALE,
>
> Yes, it is as simple as using the number that represents the spindle
> speed at 100% PWM.
> That should be all there is to it.

Humm, pncconf set it for 1.00 and I've not changed it. I'll have to play 
with that in real time.

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

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


Re: [Emc-users] motor to spindle gear ratio

2015-08-25 Thread andy pugh
On 26 August 2015 at 02:01, Gene Heskett  wrote:
> If there is a general "rule of thumb" for setting the PWMGEN SCALE,

Yes, it is as simple as using the number that represents the spindle
speed at 100% PWM.
That should be all there is to it.

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

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


Re: [Emc-users] motor to spindle gear ratio

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 19:57:24 Tom Easterday wrote:

> I was working on some issues with the lathe today and discovered that
> what I thought was a 1:1 relationship between the pulley on my spindle
> motor and pulley on the spindle head - is not.  The diameter of the
> spindle pulley is 4.2125” while the spindle itself is 5.175” (they are
> probably actually 107mm and 130mm or thereabouts).  This give a 0.833
> ratio and explains why 3500rpm is actually spinning at about 3000rpm
> according to my tach.  I am wondering the best way to let Linuxcnc
> know that this is the case so that commanding 3000 gives me 3000.
>
> -Tom

I can't help you, Tom, other than to say that the revs commanded vs revs 
obtained seem to be rather arbitrary on both my lathe and my new mill.

If there is a general "rule of thumb" for setting the PWMGEN SCALE, (and 
other stuff in the signal chain between the spindle PID and the pwmgen 
input, it would be helpful to me if someone either wrote the tome that 
explains that, or perhaps supplies a link to an already valid method to 
contain the madness.

I have something that does approximately what I ask, but it was turning 
knobs in the dark for sure.

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

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


Re: [Emc-users] computing max acceleration for an actuator

2015-08-25 Thread TJoseph Powderly
Jerry I didnt answer your question.
to measure acceleration there's an industry standard 'step' test.
The 'step' is to apply the voltage required to achieve max velocity.
This voltage **instantly** rises from 0 to the value needed for max 
velocity.
Thats where the name 'step' comes from,
Its a square edge on a scope.

A second measurement is now needed,
Some way to determine _when_ the
maximum velocity is actually achieved.

Old school dc motors gave us Tachos so this was easy.
I dont know what you can put together.
You could attach a voice coil to the end, I suppose.
Measure when the output voltage goes constant ( at max vel )
A scope should show a 'knee' starting at 0Volts.

But if you measure time from the 'step' until the max vel,
you have the precise acceleration _time_.

The acceleration time divide by time is the acceleration

( example  .240 Sec accel time to achieve 800mm/minute velocity
   is .24 sec to achieve 13.333mm/sec
   is 55.555 mm/s/s

  3.15"/sec  / 0.02ec = 157.5in/s/s )

HTH
TomP
tjtr33
On 08/25/2015 04:09 PM, Jerry Scharf wrote:
> Hi,
>
> My quick scan of the docs didn't find an explanation for how to calculate
> this from manufacturer specs rather than experimentation. I want to make
> sure I am doing this right.
>
> The actuator is rated a 3.15 inches per second and it can reach full speed
> in under .02s for the load I will be putting on it. If I use a = v/t, this
> comes out to about 150 inches per second square. Does this look right?
>
> The actuator is a SMC LXPB2BD-50S that I picked up used.
>
> jerry
>


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


[Emc-users] motor to spindle gear ratio

2015-08-25 Thread Tom Easterday
I was working on some issues with the lathe today and discovered that what I 
thought was a 1:1 relationship between the pulley on my spindle motor and 
pulley on the spindle head - is not.  The diameter of the spindle pulley is 
4.2125” while the spindle itself is 5.175” (they are probably actually 107mm 
and 130mm or thereabouts).  This give a 0.833 ratio and explains why 3500rpm is 
actually spinning at about 3000rpm according to my tach.  I am wondering the 
best way to let Linuxcnc know that this is the case so that commanding 3000 
gives me 3000.

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


Re: [Emc-users] computing max acceleration for an actuator

2015-08-25 Thread TJoseph Powderly
Jerry
please keep us informed of your project.
I have a SMAC ( not SMC) thats rated 5G's
but only 15mm stroke and 1um renishaw scale ( also ebay find)
It uses a voice coil to get the speed and accel, no screw involved.
The acceleration we're playing with makes control difficult.
the counts are just ... fast!
https://www.youtube.com/watch?v=TIAtV84g-xU
i am not affiliated

regards
TomP
tjtr33

On 08/25/2015 04:09 PM, Jerry Scharf wrote:
> Hi,
>
> My quick scan of the docs didn't find an explanation for how to calculate
> this from manufacturer specs rather than experimentation. I want to make
> sure I am doing this right.
>
> The actuator is rated a 3.15 inches per second and it can reach full speed
> in under .02s for the load I will be putting on it. If I use a = v/t, this
> comes out to about 150 inches per second square. Does this look right?
>
> The actuator is a SMC LXPB2BD-50S that I picked up used.
>
> jerry
>


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


[Emc-users] computing max acceleration for an actuator

2015-08-25 Thread Jerry Scharf
Hi,

My quick scan of the docs didn't find an explanation for how to calculate
this from manufacturer specs rather than experimentation. I want to make
sure I am doing this right.

The actuator is rated a 3.15 inches per second and it can reach full speed
in under .02s for the load I will be putting on it. If I use a = v/t, this
comes out to about 150 inches per second square. Does this look right?

The actuator is a SMC LXPB2BD-50S that I picked up used.

jerry

-- 
Jerry Scharf
FINsix IT
650.285.6361 w
650.279.7017 m
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg

  On 25.08.15 14:27, Marius Liebenberg wrote:
>>Erik
>>  I am getting to old to be a purist any more. I always use the 
>>platform
>>  or chip with the best or most intuitive dev environment.
>>  Short piece of code using a Teensy 3.0. I use the Visual Micro 
>>debugger
>>  in Microsoft Visual Studio 2015 all running on the latest Arduino
>>  environment.
>
>. Marius, I've feared I'm too old to learn the newfangled
>Arduino environment, so I'm thrilled to see how you've leveraged it.
>The speed of getting it going is very impressive. I should take a 
>closer
>look at the environment - I think I've seen somewhere that it can be
>used with the gnu toolchain.
>
>Erik
>
You can do that but the native system is so easy to use and install that 
it is hardy worth the pain of trying to use another tool chain. They all 
use winavr or a derivative of that tool chain anyway.
Try the Arduino once, you will be surprised how good you get at coding 
all of a sudden :)

>
>--
>___
>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] Max spindle PWM frequency

2015-08-25 Thread Erik Christiansen
On 25.08.15 14:27, Marius Liebenberg wrote:
>   Erik
> I am getting to old to be a purist any more. I always use the platform 
> or chip with the best or most intuitive dev environment.
> Short piece of code using a Teensy 3.0. I use the Visual Micro debugger 
> in Microsoft Visual Studio 2015 all running on the latest Arduino 
> environment.

. Marius, I've feared I'm too old to learn the newfangled
Arduino environment, so I'm thrilled to see how you've leveraged it.
The speed of getting it going is very impressive. I should take a closer
look at the environment - I think I've seen somewhere that it can be
used with the gnu toolchain.

Erik

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg


>On Tuesday 25 August 2015 09:19:15 Marius Liebenberg wrote:
>
>>  Thanks all for the help. I used a Teensy 3.0 bord from the drawer and
>>  it works great. I am reading a 2khz signal from the parport and
>>  converting it to a 40khz signal. Duty cycle is from 0% to 99%.
>
>And this is what I love about this list. I have long since given up
>trying to count how many ways a cat can be skinned.  So the education
>continues apace. I  would not have thought of that because I didn't 
>have
>a suitable bit of hardware laying around.
>
>I have to give credit where inguinuity (my speal cheeker fails this 
>one)
>solves the problem in an unusual way that makes perfect sense.
>
>Deserves a tip of the hat.
>
>Thanks Marius.
>

Dont know how much is intuitive and how much is "in trouble". Man must 
do what a man must do :)
I am busy building a massive laser cutting machine for a customer and I 
am a bit late as per usual. Now I discover the quirks of integrating 
unknown parts.


>>  >I have not checked the AVR but most micro controllers have timers
>>  > with hardware support or duty cycle measurement. XMC4xxx or STM334
>>  > devopment boards have high resolution timers equal to a frequency
>>  > about a few gigahertz.
>>  >
>>  >
>>  >On Tue, 25 Aug 2015 21:09:08 +1000
>>  >
>>  >Erik Christiansen  wrote:
>>  >>  On 25.08.15 10:30, Marius Liebenberg wrote:
>>  >>  > I have a couple of Teensy 3.0 boards in the drawer here and 
>>they
>>  >>
>>  >>are
>>  >>
>>  >>  > pretty fast enough I think.
>>  >>  > I am a bit allergic to the USB interface when one uses high
>>  >>  > current switching devices on the machine. The USB interface is
>>  >>  > not that reliable.
>>  >>
>>  >>  It would not be hard to use one Arduino timer in capture mode to
>>  >>measure
>>  >>  M/S ratio of a low frequency PWM input (from LinuxCNC), then
>>  >>replicate
>>  >>  the ratio on a higher frequency output on another timer. If the
>>  >> ratio of
>>  >>  input and output frequencies were a binary multiple, then 
>>dividing
>>  >>the
>>  >>  input mark to fit the higher frequency output would only be a
>>  >> right shift of the requisite number of bits. (The AVR does not 
>>have
>>  >> hardware
>>  >>  multiply, but software multiply would be OK, if preferred, if the
>>  >> PWM ratio doesn't change at a crazy high rate.)
>>  >>
>>  >>  An interrupt on "capture complete" would be infinitely more
>>  >> efficient than any polling hack, for input PWM measurement. The
>>  >> output timer would
>>  >>  just run with auto-reload, responding to a new M/S ratio in the
>>  >> next cycle
>>  >>  after it is written to the hardware register.
>>  >>
>>  >>  A 20 MHz part could run 10 bits of count at 20 kHz, giving 0.1%
>>  >>  resolution. Go for something like 9 bits, 40 kHz, and 0.2%, 
>>maybe?
>>  >>
>>  >>  But mebbe you have all that figured, already.
>>  >>
>>  >>  Erik
>>  >>
>>  >>  --
>>  >>  Since late last year, Saudi Arabia has been flooding the world
>>  >> with cheap oil in
>>  >>  an attempt to squeeze the life out of America's nascent shale oil
>>  >>industry,
>>  >>  sending crude to six-year lows around $US40 a barrel.
>>  >>  -
>>  
>> >>http://www.abc.net.au/news/2015-08-20/qantas-profit-propelled-by-low
>>  >>er-fuel-prices/6711174
>>  >>
>>  >>
>>  
>> >>
>>  >>-- ___
>>  >>  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
>
>
>Cheers, Gene Heskett
>--
>"There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
>-Ed Howdershelt (Author)
>Genes Web page 
>
>--
>___
>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] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg
  Erik
I am getting to old to be a purist any more. I always use the platform 
or chip with the best or most intuitive dev environment.
Short piece of code using a Teensy 3.0. I use the Visual Micro debugger 
in Microsoft Visual Studio 2015 all running on the latest Arduino 
environment.
const

int ledPin = 11;
#define

MainPeriod 100 // measurement frame duration, milliseconds
#define

pulseInput 2 // input pin for pulseIn
#define

pulseOutput 4
long

previousMillis = 0;
unsigned

long duration = 0; // receive pulse width
unsigned

long outDuration = 0;
long

pulsecount = 0;
 

 

void

setup()
{

pinMode(

pulseInput, INPUT);
Serial.begin(19200);

pinMode(ledPin,

OUTPUT);
analogWriteFrequency(4, 4);

//set the pwm frequency
analogWriteResolution(12);

// use the highest resolution
}

void

loop()
{


unsignedlong currentMillis = millis();

if (currentMillis - previousMillis >= MainPeriod)
{

previousMillis = currentMillis;

outDuration = (duration / 23.95);

analogWrite(

pulseOutput, outDuration);
 


// write current time and F values to the serial port

// not implimented for production but handy to see the frequencies

//Serial.print(currentMillis);

//Serial.print(" "); // separator!

//float Freq = 0.5e6 / float(duration); // assume pulse duty cycle 0.5

//Freq *= pulsecount;

//Serial.print(Freq);

//Serial.print(" ");

//Serial.print(pulsecount);

//Serial.print(" ");

//Serial.print(duration);

//Serial.print(" ");

//Serial.println(outDuration);
duration = 0;

pulsecount = 0;

}


// instead of single measurement per cycle - accumulate and average
duration += pulseIn(

pulseInput, HIGH, MainPeriod * 900);
pulsecount++;


}


>On 25.08.15 13:19, Marius Liebenberg wrote:
>>  Thanks all for the help. I used a Teensy 3.0 bord from the drawer and
>>  it works great. I am reading a 2khz signal from the parport and
>>  converting it to a 40khz signal. Duty cycle is from 0% to 99%.
>
>That was quick! Using the arduino environment, or just the gnu
>toolchain? (It'd take me a good bit longer than you did, to write the
>ISR, and figure the mode bitpatterns for the timers, from the
>datasheet.)
>
>Erik
>
>--
>"Ben and Paddy (police officers from Ramingining, about 20 kilometres 
>away) came
>over and took it away from me." - Damien Lumsden referring to an 
>unexploded WW2
>bomb he'd been carting around in the backof his ute.
>http://www.abc.net.au/news/2015-08-25/wwii-bomb-loaded-on-ute-for-nt-show-and-tell-before-detonation/6723614
>
>--
>___
>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] Max spindle PWM frequency

2015-08-25 Thread Erik Christiansen
On 25.08.15 13:19, Marius Liebenberg wrote:
> Thanks all for the help. I used a Teensy 3.0 bord from the drawer and
> it works great. I am reading a 2khz signal from the parport and
> converting it to a 40khz signal. Duty cycle is from 0% to 99%.

That was quick! Using the arduino environment, or just the gnu
toolchain? (It'd take me a good bit longer than you did, to write the
ISR, and figure the mode bitpatterns for the timers, from the
datasheet.)

Erik

-- 
"Ben and Paddy (police officers from Ramingining, about 20 kilometres away) came
over and took it away from me." - Damien Lumsden referring to an unexploded WW2
bomb he'd been carting around in the backof his ute.
http://www.abc.net.au/news/2015-08-25/wwii-bomb-loaded-on-ute-for-nt-show-and-tell-before-detonation/6723614

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 09:19:15 Marius Liebenberg wrote:

> Thanks all for the help. I used a Teensy 3.0 bord from the drawer and
> it works great. I am reading a 2khz signal from the parport and
> converting it to a 40khz signal. Duty cycle is from 0% to 99%.

And this is what I love about this list. I have long since given up 
trying to count how many ways a cat can be skinned.  So the education 
continues apace. I  would not have thought of that because I didn't have 
a suitable bit of hardware laying around.

I have to give credit where inguinuity (my speal cheeker fails this one) 
solves the problem in an unusual way that makes perfect sense.

Deserves a tip of the hat.

Thanks Marius.

> >I have not checked the AVR but most micro controllers have timers
> > with hardware support or duty cycle measurement. XMC4xxx or STM334
> > devopment boards have high resolution timers equal to a frequency
> > about a few gigahertz.
> >
> >
> >On Tue, 25 Aug 2015 21:09:08 +1000
> >
> >Erik Christiansen  wrote:
> >>  On 25.08.15 10:30, Marius Liebenberg wrote:
> >>  > I have a couple of Teensy 3.0 boards in the drawer here and they
> >>
> >>are
> >>
> >>  > pretty fast enough I think.
> >>  > I am a bit allergic to the USB interface when one uses high
> >>  > current switching devices on the machine. The USB interface is
> >>  > not that reliable.
> >>
> >>  It would not be hard to use one Arduino timer in capture mode to
> >>measure
> >>  M/S ratio of a low frequency PWM input (from LinuxCNC), then
> >>replicate
> >>  the ratio on a higher frequency output on another timer. If the
> >> ratio of
> >>  input and output frequencies were a binary multiple, then dividing
> >>the
> >>  input mark to fit the higher frequency output would only be a
> >> right shift of the requisite number of bits. (The AVR does not have
> >> hardware
> >>  multiply, but software multiply would be OK, if preferred, if the
> >> PWM ratio doesn't change at a crazy high rate.)
> >>
> >>  An interrupt on "capture complete" would be infinitely more
> >> efficient than any polling hack, for input PWM measurement. The
> >> output timer would
> >>  just run with auto-reload, responding to a new M/S ratio in the
> >> next cycle
> >>  after it is written to the hardware register.
> >>
> >>  A 20 MHz part could run 10 bits of count at 20 kHz, giving 0.1%
> >>  resolution. Go for something like 9 bits, 40 kHz, and 0.2%, maybe?
> >>
> >>  But mebbe you have all that figured, already.
> >>
> >>  Erik
> >>
> >>  --
> >>  Since late last year, Saudi Arabia has been flooding the world
> >> with cheap oil in
> >>  an attempt to squeeze the life out of America's nascent shale oil
> >>industry,
> >>  sending crude to six-year lows around $US40 a barrel.
> >>  -
> >>http://www.abc.net.au/news/2015-08-20/qantas-profit-propelled-by-low
> >>er-fuel-prices/6711174
> >>
> >>
> >>
> >>-- ___
> >>  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


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

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg
Thanks all for the help. I used a Teensy 3.0 bord from the drawer and it 
works great. I am reading a 2khz signal from the parport and converting 
it to a 40khz signal. Duty cycle is from 0% to 99%.



I have not checked the AVR but most micro controllers have timers with 
hardware support or duty cycle measurement. XMC4xxx or STM334 devopment 
boards have high resolution timers equal to a frequency about a few 
gigahertz.



On Tue, 25 Aug 2015 21:09:08 +1000
Erik Christiansen  wrote:


 On 25.08.15 10:30, Marius Liebenberg wrote:
 > I have a couple of Teensy 3.0 boards in the drawer here and they 
are

 > pretty fast enough I think.
 > I am a bit allergic to the USB interface when one uses high current
 > switching devices on the machine. The USB interface is not that
 > reliable.

 It would not be hard to use one Arduino timer in capture mode to 
measure
 M/S ratio of a low frequency PWM input (from LinuxCNC), then 
replicate
 the ratio on a higher frequency output on another timer. If the ratio 
of
 input and output frequencies were a binary multiple, then dividing 
the

 input mark to fit the higher frequency output would only be a right
 shift of the requisite number of bits. (The AVR does not have 
hardware

 multiply, but software multiply would be OK, if preferred, if the PWM
 ratio doesn't change at a crazy high rate.)

 An interrupt on "capture complete" would be infinitely more efficient
 than any polling hack, for input PWM measurement. The output timer 
would
 just run with auto-reload, responding to a new M/S ratio in the next 
cycle

 after it is written to the hardware register.

 A 20 MHz part could run 10 bits of count at 20 kHz, giving 0.1%
 resolution. Go for something like 9 bits, 40 kHz, and 0.2%, maybe?

 But mebbe you have all that figured, already.

 Erik

 --
 Since late last year, Saudi Arabia has been flooding the world with 
cheap oil in
 an attempt to squeeze the life out of America's nascent shale oil 
industry,

 sending crude to six-year lows around $US40 a barrel.
 - 
http://www.abc.net.au/news/2015-08-20/qantas-profit-propelled-by-lower-fuel-prices/6711174


 
--

 ___
 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] Max spindle PWM frequency

2015-08-25 Thread Karlsson & Wang
I have not checked the AVR but most micro controllers have timers with hardware 
support or duty cycle measurement. XMC4xxx or STM334 devopment boards have high 
resolution timers equal to a frequency about a few gigahertz.


On Tue, 25 Aug 2015 21:09:08 +1000
Erik Christiansen  wrote:

> On 25.08.15 10:30, Marius Liebenberg wrote:
> > I have a couple of Teensy 3.0 boards in the drawer here and they are 
> > pretty fast enough I think.
> > I am a bit allergic to the USB interface when one uses high current 
> > switching devices on the machine. The USB interface is not that 
> > reliable.
> 
> It would not be hard to use one Arduino timer in capture mode to measure
> M/S ratio of a low frequency PWM input (from LinuxCNC), then replicate
> the ratio on a higher frequency output on another timer. If the ratio of
> input and output frequencies were a binary multiple, then dividing the
> input mark to fit the higher frequency output would only be a right
> shift of the requisite number of bits. (The AVR does not have hardware
> multiply, but software multiply would be OK, if preferred, if the PWM
> ratio doesn't change at a crazy high rate.)
> 
> An interrupt on "capture complete" would be infinitely more efficient
> than any polling hack, for input PWM measurement. The output timer would
> just run with auto-reload, responding to a new M/S ratio in the next cycle
> after it is written to the hardware register.
> 
> A 20 MHz part could run 10 bits of count at 20 kHz, giving 0.1%
> resolution. Go for something like 9 bits, 40 kHz, and 0.2%, maybe?
> 
> But mebbe you have all that figured, already. :-)
> 
> Erik
> 
> -- 
> Since late last year, Saudi Arabia has been flooding the world with cheap oil 
> in
> an attempt to squeeze the life out of America's nascent shale oil industry, 
> sending crude to six-year lows around $US40 a barrel.
> - 
> http://www.abc.net.au/news/2015-08-20/qantas-profit-propelled-by-lower-fuel-prices/6711174
> 
> --
> ___
> 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] Max spindle PWM frequency

2015-08-25 Thread Erik Christiansen
On 25.08.15 10:30, Marius Liebenberg wrote:
> I have a couple of Teensy 3.0 boards in the drawer here and they are 
> pretty fast enough I think.
> I am a bit allergic to the USB interface when one uses high current 
> switching devices on the machine. The USB interface is not that 
> reliable.

It would not be hard to use one Arduino timer in capture mode to measure
M/S ratio of a low frequency PWM input (from LinuxCNC), then replicate
the ratio on a higher frequency output on another timer. If the ratio of
input and output frequencies were a binary multiple, then dividing the
input mark to fit the higher frequency output would only be a right
shift of the requisite number of bits. (The AVR does not have hardware
multiply, but software multiply would be OK, if preferred, if the PWM
ratio doesn't change at a crazy high rate.)

An interrupt on "capture complete" would be infinitely more efficient
than any polling hack, for input PWM measurement. The output timer would
just run with auto-reload, responding to a new M/S ratio in the next cycle
after it is written to the hardware register.

A 20 MHz part could run 10 bits of count at 20 kHz, giving 0.1%
resolution. Go for something like 9 bits, 40 kHz, and 0.2%, maybe?

But mebbe you have all that figured, already. :-)

Erik

-- 
Since late last year, Saudi Arabia has been flooding the world with cheap oil in
an attempt to squeeze the life out of America's nascent shale oil industry, 
sending crude to six-year lows around $US40 a barrel.
- 
http://www.abc.net.au/news/2015-08-20/qantas-profit-propelled-by-lower-fuel-prices/6711174

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


Re: [Emc-users] Debian Wheezy login

2015-08-25 Thread Mark Wendt
On Tue, Aug 25, 2015 at 6:58 AM, Marius Liebenberg
 wrote:
> Does anyone know how to make the logon for Wheezy automatic? Can't seem
> to find a system setting :(
>
>
>
> -
> Regards / Groete
>
> Marius D. Liebenberg

Marius,



Mark

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


Re: [Emc-users] Debian Wheezy login

2015-08-25 Thread Rick Lair
Here are my notes Marius,

ENABLE AUTO-LOGIN

To install lightdm in Wheezy, run as root

 aptitude install lightdm

Configuration

LightDM configuration file is found at /etc/lightdm/lightdm.conf. Making 
a backup of the original configuration file is recommended.

To change the current default Display Manager, run

 dpkg-reconfigure lightdm

If you're new to LightDM, it's recommended to have GDM, slim or another 
Display Manager installed as a backup.

Enable autologin

Look up these lines in lightdm configuration file, uncomment them and 
customize to your preference.

[SeatDefaults]
#autologin-user=
#autologin-user-timeout=0



Rick



On 8/25/2015 6:58 AM, Marius Liebenberg wrote:
> Does anyone know how to make the logon for Wheezy automatic? Can't seem
> to find a system setting :(
>
>
>
> -
> Regards / Groete
>
> Marius D. Liebenberg
> +27 82 698 3251
> +27 12 743 6064
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

-- 

Thanks


Rick Lair
Superior Roll & Turning LLC
399 East Center Street
Petersburg MI, 49270
PH: 734-279-1831
FAX: 734-279-1166
www.superiorroll.com


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


[Emc-users] Debian Wheezy login

2015-08-25 Thread Marius Liebenberg
Does anyone know how to make the logon for Wheezy automatic? Can't seem 
to find a system setting :(



-
Regards / Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg

  On 25 August 2015 at 10:43, Marius Liebenberg  
wrote:
>>  Yes I though as much. I am running at 15us at the moment. I am 
>>thinking
>>  to use a MCU or a small FPGA to read the low frequency PWM and then
>>  translate that to a 40khz PWM signal.
>
>The most expedient solution might be an Arduino (you can buy a Nano
>for £5 on eBay, and that's a cheap way to get a uC and programming
>interface on a board)
>There is an interface to HAL for Arduino via USB, but that isn't
>real-time so might not work for your application. Reading one PWM
>frequency and outputting another is definitely possible, I have even
>done it once to bypass a misunderstanding between suppliers at work.

I have a couple of Teensy 3.0 boards in the drawer here and they are 
pretty fast enough I think.
I am a bit allergic to the USB interface when one uses high current 
switching devices on the machine. The USB interface is not that 
reliable.
>
>--
>atp
>If you can't fix it, you don't own it.
>http://www.ifixit.com/Manifesto
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Will make new shaft for jackshaft

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 05:32:29 andy pugh wrote:

> On 25 August 2015 at 10:26, Gene Heskett  wrote:
> > That will regain some of the spindle speed lost with the existing
> > kits metal pulley, but will require a longer XL belt.  I am thinking
> > that because I added 6 teeth to the small pulley, I should add 6
> > cogs to the belt length too, but a hair over half of the added teeth
> > will not be engaged & that says I need a belt 3 cogs longer.
>
> See what the calculator here says:
> http://www.hpcgears.com/n/left_menu/calc/calc.php

That seems to want to give pulley center to center. I think # of cogs can 
be extracted from the belt length suggested for a fixed center to center 
distance, but the selection of belt lengths doesn't see to be fine 
grained enough.  I need to be closer to awake to grok all that.

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

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread andy pugh
On 25 August 2015 at 10:43, Marius Liebenberg  wrote:
> Yes I though as much. I am running at 15us at the moment. I am thinking
> to use a MCU or a small FPGA to read the low frequency PWM and then
> translate that to a 40khz PWM signal.

The most expedient solution might be an Arduino (you can buy a Nano
for £5 on eBay, and that's a cheap way to get a uC and programming
interface on a board)
There is an interface to HAL for Arduino via USB, but that isn't
real-time so might not work for your application. Reading one PWM
frequency and outputting another is definitely possible, I have even
done it once to bypass a misunderstanding between suppliers at work.

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

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


Re: [Emc-users] How do I move program, but not machine co-ords?

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 05:25:45 andy pugh wrote:

> On 25 August 2015 at 03:25, Gene Heskett  wrote:
> >> There is a sample G-code file that does that already.
> >> see probe-hole.ngc in the "Examples" in nc-files.
> >> I use that, which finishes the moves with the machine at the centre
> >> of the circle, then I touch-off X and Y to zero there.
> >
> > And it zeroed me about .55 mm to the right of center.
>
> Something wrong there then. (And not, I am fairly sure, with the code)

I ran it one more time, giving the #1 half again as much wiggle room but 
it had already carved one wall, so I wound up centering it with the butt 
end of a digital caliper, reading the outside of the hub to the nearest 
flute of the bit.  That seemed to work but I needed to make it 
about .08mm bigger, its quite hard to drive onto the shaft, which is 
about 9.04mm and holds the 9mm plastic pulley nice & tight.

I have 2 more of those plastic pulleys, so I'll pull this one back off & 
use up the plastic ones making a new shaft for the 10mm bore pulleys I 
just bought.  Those only come with setscrews, so I'll try dimpling the 
shaft to give them a better grip, or something.  I am not equipt to 
broach a 3mm keyway, darn it. But since I have some mills in that size 
range, I can at least slot the shaft, and I'll look around for a 
suitable needle file for keying the pulley.

But not till late this afternoon as I'm going to get some shots in my 
back today.

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)
Genes Web page 

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Karlsson & Wang
The micro controllers STM334 or XMC4xxx have high resolution timers equal to a 
frequency of up to a few gigz hertz.



On Tue, 25 Aug 2015 09:43:38 +
"Marius Liebenberg"  wrote:

>   Yes I though as much. I am running at 15us at the moment. I am thinking 
> to use a MCU or a small FPGA to read the low frequency PWM and then 
> translate that to a 40khz PWM signal.
> 
> 
> >On 25 August 2015 at 10:16, Marius Liebenberg  
> >wrote:
> >>  I am trying to generate a pwm signal to drive a laser power source 
> >>using
> >>  the spindle pwmgen. The minimum frequency must be 20khz. I read in 
> >>the
> >>  manual that pwmgen is not good on higher frequency. The question is 
> >>will
> >>  it reach 20khz or must I rather try using a stepgen?
> >
> >Stegen won't work either, that's a variable rate output, not a
> >variable duty-cycle,
> >
> >The problem at high frequencies with pwmgen isn't with the component,
> >it is with the base-thread frequency.
> >What is your base-thread frequency? The output can turn on and off at
> >that frequency for 50% duty cycle.
> >As you drop the base frequency the number of possible duty-cycles 
> >increases.
> >
> >--
> >atp
> >If you can't fix it, you don't own it.
> >http://www.ifixit.com/Manifesto
> --
> ___
> 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] Max spindle PWM frequency

2015-08-25 Thread Karlsson & Wang
It is implemented by a counter so then frequency is increased resolution go 
down. Som micro controllers have high resolution timers which get resolution 
equal to a counter at about a few giga hertz although I get the impression the 
extra high resolution is implemented a little bit different.

On Tue, 25 Aug 2015 09:16:02 +
"Marius Liebenberg"  wrote:

> I am trying to generate a pwm signal to drive a laser power source using 
> the spindle pwmgen. The minimum frequency must be 20khz. I read in the 
> manual that pwmgen is not good on higher frequency. The question is will 
> it reach 20khz or must I rather try using a stepgen?
> 
> 
> 
> -
> Regards / Groete
> 
> Marius D. Liebenberg
> +27 82 698 3251
> +27 12 743 6064
> --
> ___
> 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] Max spindle PWM frequency

2015-08-25 Thread Gene Heskett
On Tuesday 25 August 2015 05:16:02 Marius Liebenberg wrote:

> I am trying to generate a pwm signal to drive a laser power source
> using the spindle pwmgen. The minimum frequency must be 20khz. I read
> in the manual that pwmgen is not good on higher frequency. The
> question is will it reach 20khz or must I rather try using a stepgen?
>
A mesa 5i25 card can do PWM at as high as 60KHz.  But 20 to 25 would 
probably be better because the optos in the output chain to get to your 
laser may good for much more than that.  I just had to pull the opto and 
bypass it on that pin of a cheap 1205 BoB.  It was too slow even for a 
20 KHz signal.
>
> -
> Regards / Groete
>
> Marius D. Liebenberg
> +27 82 698 3251
> +27 12 743 6064
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


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

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg
  Yes I though as much. I am running at 15us at the moment. I am thinking 
to use a MCU or a small FPGA to read the low frequency PWM and then 
translate that to a 40khz PWM signal.


>On 25 August 2015 at 10:16, Marius Liebenberg  
>wrote:
>>  I am trying to generate a pwm signal to drive a laser power source 
>>using
>>  the spindle pwmgen. The minimum frequency must be 20khz. I read in 
>>the
>>  manual that pwmgen is not good on higher frequency. The question is 
>>will
>>  it reach 20khz or must I rather try using a stepgen?
>
>Stegen won't work either, that's a variable rate output, not a
>variable duty-cycle,
>
>The problem at high frequencies with pwmgen isn't with the component,
>it is with the base-thread frequency.
>What is your base-thread frequency? The output can turn on and off at
>that frequency for 50% duty cycle.
>As you drop the base frequency the number of possible duty-cycles 
>increases.
>
>--
>atp
>If you can't fix it, you don't own it.
>http://www.ifixit.com/Manifesto
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Will make new shaft for jackshaft

2015-08-25 Thread andy pugh
On 25 August 2015 at 10:26, Gene Heskett  wrote:
> That will regain some of the spindle speed lost with the existing kits
> metal pulley, but will require a longer XL belt.  I am thinking that
> because I added 6 teeth to the small pulley, I should add 6 cogs to the
> belt length too, but a hair over half of the added teeth will not be
> engaged & that says I need a belt 3 cogs longer.

See what the calculator here says:
http://www.hpcgears.com/n/left_menu/calc/calc.php

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

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


Re: [Emc-users] Max spindle PWM frequency

2015-08-25 Thread andy pugh
On 25 August 2015 at 10:16, Marius Liebenberg  wrote:
> I am trying to generate a pwm signal to drive a laser power source using
> the spindle pwmgen. The minimum frequency must be 20khz. I read in the
> manual that pwmgen is not good on higher frequency. The question is will
> it reach 20khz or must I rather try using a stepgen?

Stegen won't work either, that's a variable rate output, not a
variable duty-cycle,

The problem at high frequencies with pwmgen isn't with the component,
it is with the base-thread frequency.
What is your base-thread frequency? The output can turn on and off at
that frequency for 50% duty cycle.
As you drop the base frequency the number of possible duty-cycles increases.

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

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


[Emc-users] Will make new shaft for jackshaft

2015-08-25 Thread Gene Heskett
I just bought a triplet of some 16 tooth, 10mm bore, 11mm wide XL pulleys 
on fleabay.

And because I need to re-arrange the shaft locking into the bearings by 
remachining the output bulkhead to put the retaining screws on its end 
flange on the outside face so I can do a tru-arc ring for positive shaft 
location, (superglue is too fragile) I will make a new shaft with a 10mm 
nose for these pulleys.  I'll have to assemble it with this to be able 
to do that however.  And as I said last night, that is being a bitch.

That will regain some of the spindle speed lost with the existing kits 
metal pulley, but will require a longer XL belt.  I am thinking that 
because I added 6 teeth to the small pulley, I should add 6 cogs to the 
belt length too, but a hair over half of the added teeth will not be 
engaged & that says I need a belt 3 cogs longer.

Which is correct?

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

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


Re: [Emc-users] How do I move program, but not machine co-ords?

2015-08-25 Thread andy pugh
On 25 August 2015 at 03:25, Gene Heskett  wrote:
>> There is a sample G-code file that does that already.
>> see probe-hole.ngc in the "Examples" in nc-files.
>> I use that, which finishes the moves with the machine at the centre of
>> the circle, then I touch-off X and Y to zero there.
>
> And it zeroed me about .55 mm to the right of center.

Something wrong there then. (And not, I am fairly sure, with the code)

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

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


[Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg
I am trying to generate a pwm signal to drive a laser power source using 
the spindle pwmgen. The minimum frequency must be 20khz. I read in the 
manual that pwmgen is not good on higher frequency. The question is will 
it reach 20khz or must I rather try using a stepgen?



-
Regards / Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Max spindle PWM frequency

2015-08-25 Thread Marius Liebenberg
I am trying to generate a pwm signal to drive a laser power source using 
the spindle pwmgen. The minimum frequency must be 20khz. I read in the 
manual that pwmgen is not good on higher frequency. The question is will 
it reach 20khz or must I rather try using a stepgen?



-
Regards / Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users