SWPadnos_ is now known as SWPadnos
EMC: 03jepler 07v2_2_branch * 10emc2/src/emc/usr_intf/stepconf/stepconf.py:
EMC: * correction to fix for SF#1906641: the first fix caused a TypeError exception
EMC: * do not warn that a file was 'modified' when it doesn't exist
I wonder if I should set dither-pwm by default in stepconf's spindle speed control
or maybe use pdm?
cradek_ is now known as cradek
well -- there's a spot to enter the carrier frequency; the box says next to it "enter 0 for PDM mode" or something like that
no user will know what that means, of course
but these spindle interfaces that are intended for mach seem to specify a frequency, I dunno what they would do with PDM. throw a fit, maybe
checkbox for pdm grays out the box
EMC: 03jepler 07v2_2_branch * 10emc2/src/emc/usr_intf/stepconf/stepconf.py: fix 'offset' value calculated by stepconf for spindle speed control
EMC: 03jepler 07v2_2_branch * 10emc2/debian/changelog: fix 'offset' value calculated by stepconf for spindle speed control
EMC: 03jepler 07v2_2_branch * 10emc2/src/emc/usr_intf/stepconf/stepconf.py: dithered pwm is generally preferable since the pwm signal is so low-resolution
EMC: 03jepler 07v2_2_branch * 10emc2/debian/changelog: dithered pwm is generally preferable since the pwm signal is so low-resolution
EMC: 03jepler 07TRUNK * 10emc2/src/emc/usr_intf/stepconf/stepconf.py: merge spindle speed fixes from branch: pwmgen offset, dither-pwm
I hope I got all that right :-P
steves_logging is now known as steve_stallings
Guest931 is now known as skunkworks_
Just awakening to the PWM discussion. The PMDX-106 spindle interface does not directly filter the PWM signal, rather it is measured by a microcontroller.
Since the PWM is often too low in frequency for effective analog filtering, we measure it and recreate a higher frequency equivalent that is more easily filtered.
steve_stallings: in that case, will dither-pwm be beneficial or harmful?
is a high/low ratio measured (which would make all the pwm/pdm tricks work), or is it some other thing that is more dependent on the particular features of the signal?
I don't know what dither would do to this approach, but it could be interesting because we consider sequential values that vary too much to be a possible injection of noise and suppress the "invalid" readings.
hmm, I would have never thought of this
True, it is not obvious. It evolved from trying to work with low frequency software generated PWM signals.
with dither-pwm, 100 microsecond base thread, and 100Hz carrier, you might have 2.5ms on + 7.5ms off in one cycle then 2.6ms on + 7.4ms off in the next cycle, if the actual desired duty cycle is about 25.5%.
yeah, all these schemes try to work around that same problem; no surprise that they may be incompatible with one another
As long as dither is user selectable, things should be OK.
I wasn't adding a user interface check button, so a user wishing to change the dither-pwm setting would have to put a line in the custom.hal file.
The I would beg for no dither to be the default, for my own selfish reasons of course.
dither is not the same as pdm mode -- it's clear enough from the datasheet that the pdm mode wouldn't work, but I'm not sure what problem dither poses
you could get aliasing
at certain speeds
(I assume the uC doesn't time every pulse)
I see that you can choose between a 1-second and 3-second PWM filter response on the pdmx-106, that should be enough time for things to even out
Our approach to the resolution problem is to recommend running higher resolution and lower frequency, with 10 bits resolution at 10 Hz being the extreme.
cradek: depending on the micro, it's probably quite easy to count the "high" and "low" time of an input signal using pin change interrupts and free-running counters
The filter response is on the output side in the analog integrator. Its purpose is to prevent blowing fuses in Seig DC motor controls that do not like sudden speed changes.
Jelper - that is exactly what we attempt to do.
seems like you would get all the benefit from dither then...?
or I am missing something.
if the micro correctly sees a 25% duty cycle and generates a 20kHz carrier, 25% PWM output for 10ms; then sees a 26% duty cycle and generates a 20kHz carrier, 26% PWM output for 10ms, and you filter *that* with a 1-second time constant it seems like you'd get a pretty good 25.5% filtered output.
We measure EACH pulse and compare to the previous history. If it varies too much it is declared invalid and ignored. If Two pulses fail the test we "re-acquire".
ah, I see
and +- 100 microseconds length difference might be too different?
However, I think the "fail" threshold is 10% or more. I will have to ask Bob.
You ask the Break Out Board directly? ;)
Normal S word changes will trigger the fail and re-acquire sequence.
I wonder how this would work with lathe CSS
yeah I was wondering that too
Good question. I was thinking that the treshold for fail would allow slow tracking without a re-acquire.
I have a second or so response on mine. In some places I've had to put pauses to let the spindle come up to speed
can't just rapid in to a very small radius and start cutting
I suppose you need some serious spindle acceleration for good CSS response
That is normal, even on big iron.
I hate to ask an off-topic question but do you know if mach does CSS? If not, it's probably not well tested on the various spindle controls people sell
skunkworks - can you rephrase your question, we just monitor a control signal, typically a pin from the parallel port, or breakout board
"Indeed, the G96 command will tell Mach 3 to vary the speed continuously with diameter"
ah. wonder if people use it. (I have not seen it on youtube videos, but that's a very small sampling)
the duty cycle differences from dither-pwm are the smallest possible, so if continuously varying the duty cycle for css works, then varying it by +-1 BASE_PERIOD for dither-pwm should too
cradek: that's from http://www.cncathome.com/vfd.html
which apparently has a video (I didn't try to view it)
I think Mach does it, but like the threading it is considered to work if it seems to, instead of being checked with gauges.
hey, don't set the bar too high. I've still not bought any go-nogo thread gauges although I think about it every once in a while.
jelper - OK, guess I was over-reacting because I was thinking of PDM initially.
steve_stallings: did you see this? http://www.youtube.com/watch?v=ACvRilmIKDQ
I could bring some to the next Fest... 8-)
steve_stallings: if I have my lathe, that would be great
steve_stallings: if you have emc near one of your -106 boards and it's set up to use pwmgen for speed control you should be able to test it real easy. Run emc, open a terminal, run 'halcmd -kf', then 'setp pwmgen.0.dither-pwm 1'.
Remind me as time nears. I plan to be there, and Matt says he is coming this year.
cool. haven't seen matt for a while.
Currently everything is near everything, as we have finally started moving into our new offices and it is all in a big pile. 8-(
steve_stallings: oh .. that makes it a bit complicated then
Todays task is to get the phone system alive at the new place.
steve_stallings: sorry - I was trying to be funny.. BOB = Break Out Board.. you said you needed to ask bob about the 10% diviation.
Ok, need more coffee...
Bob is our software guru, and becoming a CNC weenie slowly but surely.
cradek: does css work with threading - like - could it be used on jmkasunich variable dia/pitch threading?
I think so
although he would have to switch belts during the cut :-)
I am pretty sure we did a css+threading demo at fest
That is a wild part being cut in JMK's video. Is it the one that raised the question about velocity bumps?
Evil problem. Did you figure it out?
well, it's considered to work because it seems to. I am trying not to look at the plots. (haha)
not really. (it's a hard problem)
is it still looking like there needs to be more pid than just p?
Adding PID to the slaved axis could get interesting.
my gut says that would help. but what a pain.
currently it's pretty easy to get "ringing" around the target, especially on a sluggish machine that can't really keep up very well
I'm too used to watching the sherline turn parts -- compared to that, jmk's lathe can really take off material
Especially since most software PID routines assume constant sample interval time. Art overlooked that with his PID spindle speed control and it is awful.
jepler: the sherline can easily do that (but not in steel)
I noticed PID spindle control on the screenshots on that cncathome.com page I pasted earlier and wondered how well it worked
actually I watched a guy cut 0.1" radius off steel, all day long, at a NAMES demo
the slow response time of spindle motors makes it hard to have much "P"
he was selling his indexable tooling
(says the guy in the room who has the least experience at tuning any PID loops)
The I and especially the D go crazy when delta-T is not a constant. Art was using one revolution as delta-T because that is what was available with index only.
sounds very hard to do with what's available
i'm not really understanding why you need PID to slave one axis to another, why not just instantly set the commanded position to where you want it to be and let individual joint PID take care of it?
fenn_: because you'll get following errors if you don't keep within (near) the axis constraints
it's normal to take some time to catch up - that's why you start outside the thread - and you don't want to generate FEs or trip your amps whenever you start a threading pass
(and also, steppers don't have pid)
this is nice (and emc can do it): http://www.youtube.com/watch?v=DHlmkRnVdUs&NR=1
but we don't have a rigid tapping with peck cycle
hahah the comment says "it doesn't have any music!"
no, you'd have to use one G33.1 for each peck
(would be very simple to program that cycle)
i'm going to strangle this dsl modem
fenn: I know how you feel
looks like the modem is winning
steve_stallings is now known as steves_logging
jepler, I tried to fix that offset issue in stepconf last night, and I was going to do something else with the UI (like put in a selection for the PWM type), but I couldn't load the glade design
using glade-3 I got a coredump
SWPadnos: meh, you need to do that by hand
using glade-2 it loaded, but there was just one window and one dialog, very small size with no controls in them
alex_joni, no way man, that's a visual design thing!
I'm not going back to the mid '80s for GUIs :)
err - or GUI design
suite yourself.. do it the mid 2000's way
keep trying to load it in a GUI designer for 4-5 days, then going back to the 80's way
I didn't look at the contents of the file, it may be simple enough to change
SWPadnos: huh that's not good news
I use dapper, glade-gnome /usr/bin/gnome-2 to edit the stepconf.glade and I don't think it's ever crashed on me
if you have the non-gnome glade-2 that could explain why it doesn't load right
dunno about glade-3
glade-2 didn't crash, but there were obvious issues with the loaded data
I'm not sure if it's the glade-gnome-2 or glade-2 package. I'll check later
I should mention that this is on 7.10, just so you know it isn't your fault :)
fwiw I am sure it's not my fault
but if the gtk/gnome people can't write decent software to save their lives, that can still make things uncomfortable for me
hours later, and I *finally* figured out what steves_logging meant when he talked about pid with a varying time step
we can't all be the quickest one, jepler
luckily, we also can't all be the slowest one :)
and thank goodness for that
I like to keep that one on a rotation
mach is evil. ;)
Word is evil. mach can't compete
(my wife and I just tried and failed to find a way of having a header/footer on page 1, but not on other pages)
Heh - I 'dislike' work
I dislike working with word
I always get formating questions for word and excel at work... I send my helper.
hmmm. I'm not sure that works in Word ;)
I did recently find out how to do it in OpenOffice, and it's easy once you get used to it
he is fresh out of the university.. Knows all that useless stuff
what is university for if not to learn the minutia of microsoft products
hmmm - need more coffee
heh. the band "Was, Not Was" had a single called "I Feel Better Than James Brown" :)
SWPadnos: you need a section break
insert->break->section break (at the end of page 1)
then on the second page you can look at header/footer and uncheck a thingie which says connect to header/footer from page 1
(I think it says previous section)
yeah, in Word
I was just surprised that there was no "Page Layout" menu/dialog (other than the one in the File menu, which we assumed was for printing)
let's move this from #emc-devel .. it's not really on topic :P
and we'll end up with jeff contributing to openoffice eventually :P