RayAcayan1 is now known as RayAcayan
good night all
Hi, do you have any guide for Gecko 540 drive setups? I can't make it work with stepconf, and I can't find a working config either.
god what an awful website
There is a long thread in CNCzone about the charge pump... but I don't have a 'fault' LED when I load my config. Could this be a real problem?
[01:52:19] <hugomatic1> http://cnczone.com/forums/showthread.php?t=72003
it requires EPP mode - does this mean the drive receives more than just step/dir signals?
I have set the EPP mode in the BIOS according to the docs
anyway, you need to have a charge pump in the config somewhere
But in stepconf I set all the pins to unused, except the dir/steps and the charge pump
In stepconf I cannot move the motoers, because the fault LED is on (probably because of the charge pump). In EMC, the Fault goes away when I power the machine.
you have a red LED right?
and it turns green when you run EMC?
exactly, but its always red instepconf
well, i guess that's a bug
I thought I was getting a box that was popular with EMC users :-(
hugomatic1, can you accept dcc?
i've never heard of G540
most of us don't have a G540. I do, and I made a config for it
dcc is a file sharing protocol that never works
dcc is a file transfer scheme through irc
just use pastebin
this is irc, not dcc :)
I'm using pidgin, and I can give you my email if you want
I'll send a dcc request - we'll see if it works
if not, I'll just stick the file on the web
* fenn mumbles something about sample configs
definitely let me know if it works though, I need to send it to Mariss so he can stick it on their website
I promise :-)
you will need to get accurate latency test times though, accuracy isn't guaranteed unless you put good data in :)
also you'll need to set the scale correctly (steps/inch or cm)
the latency numbers are probably pretty low in there, I did the testing on a pretty low latency system :)
SWPadnos: amazing! it works like a charm
What motors are you using? I have Sherline 2 Amp motors... are yours similar?
I have 3 Keling KL23H284-35-4B
they're the ones that are "made for hte G250" - more or less exactly the same specs as the driver
my pins were not inverted as yours were (didn't get that from the doc). I get a RTAPI ERROR: Unexpected realtime delay each time I load EMC.
did you enter the correct latency times for your PC?
and a realistic maximum velocity
I'll get to the tuning... haven't done any latency tweeking yet
that's not tuning, it's basic stuff
I only have my rotary table here...
like I said, the numbers in there now are probably pretty aggressive
maybe change the latency number to 15000 or so (instead of the 6000 or 7000 it's at now)
the released version of the config will have low performing but "less likely to die" numbers :)
i thought stepconf wouldnt allow an unrealistic maximum velocity
max velocity: 1/9 * c
it won't exceed timing that's figured from the latency numbers, but if the latencies are wrong by a factor of 2, it will allow more than the computer can actually do
(well, if they're wrong at all ...)
toastydeath: but your lathe does warp 6
those numbers are directly in the ini file, right? not in stepconf ...
to... THE FUTURE
no, stepconf lets you enter them
hmmm. I have a "New540.stepcon" file
I wonder what that is :)
toastydeath: so that would be 392.49805 * c
i am both amazed and appaled at your knowledge
15000 is good
ok, the only change is that the file paths don't have my user name in them in New540.stepconf :)
SWPadnos: thank you very much
so I am trying to setup emc2 to drive some stepper motors, and for some reason there seems to be no signal coming out of my parallel port
i put loadrt probe_parport in my .hal file
was wondering if anyone had a clever idea
note that I got it working once before on a live install, but yhave sense changed computers, so I am fairly sure that all of my wiring, etc etc is working
bleh, restarting brb
need help guys, I am new to emc and keeps on getting the following message:
need help running 3-axis_turning-machine. 4-axis works fine but 3-axis has errors
please help people
ask the real question
i am new but please look at the following error:
use a pastebin eg http://pastebin.ca
never paste in irc
okay i did not know
i have pasted it? what do i need to do now
normally you hand back the full url eg http://pastebin.ca/1366061
near the end core_stepper.hal:83: setp requires 2 arguments, 3 given
how do i fix that?
how did you create the setup
leonard: usually that's a problem with the ini file
you have something like INPUT_SCALE = 800 0
you need to remove the second part of the INPUT_SCALE
loaded ubuntucnc, then i run install file from cooltool. when this did not work i updated emc2.1.5 to emc2.28
leonard: the next (2.3.0) emc2 will have cooltool configs in it
How do i remove input_scale? please be patient with me as i am a begginer from south africa
you probably just need to correct the line as it has 1 argument too many
use an editor
which file do i need to edit "3-axis_turning-machine.ini"
is the second part of the INPUT_SCALE THE 0
it is working
does emc2 run lathe?
how do i add lathe to emc2?
[10:50:40] <alex_joni> http://www.linuxcnc.org/content/view/28/13/lang,en/
Alex: thank you very much and will let you know how it went
how do i see what version of emc2 i have ?
piasdom: AXIS -> about
Alex: i looked at the content and it does not mention which ini file to add the lathe
make a new ini
leonard: what machine do you have?
unimat 1 lathe
those configs run with emc2-2.3.0
but with a minor change they can be made to run with 2.2.8 too
is emc2-2.3.0 available for downlaods
what is cooltool?
leonard: only beta versions
[12:16:31] <skunkworks> http://www.cnczone.com/forums/attachment.php?attachmentid=77025&d=1236386181
[12:16:54] <skunkworks> http://www.cnczone.com/forums/showthread.php?t=75035
skunkworks, that thread doesn't mention all that it does, which is a lot
Here's what Mariss wrote last night: http://pastebin.ca/1366134
I like "The G380 will not be damaged if the motor is run into a hard-stop (crash into brick wall). This kills the G320 every time."
yeah, that's a good one
that list just makes me think the G320 must have been terrible :-P
what I don't like is that the encoder fault detection only detects a broken wire/disconnect - it doesn't detect things like a broken ehncoder wheel, bad LED/bulb, bad (stuck) transmitter, etc.
I wonder if that's the most common encoder failure
I bet it is
at least for new encoders :)
ebay specials it's hard to tell though
Mariss has been using these for testing: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=102-1308-ND
he loves them
pretty cheap, and programmable resolution
it is still going to have atleast 256 count error.
before the drive faults ...
that may be useful to mach users ;)
CPLD design. The G380 can be programmed and customized to behave differently without any hardware changes. Example: Need CW/CCW inputs instead of STP/DIR? No problem.
or quadrature, which several people have suggested
actually, that's also in the plan
he doesn't seem to want to go there.
he has floated the idea of providing more or less a FET front end
several of us have also asked for an analog output representing current, for loading measurements
and also outputs for those LEDs, so you could (a) connect them to a visible panel or (b) connect them to the control
I don't know how much of that will ever get released, but those have all been suggested
<- friend of optic... been lurking
i wonder what portion of this channel is hacklabbers
an open-source (gpl hdl + schematic + reference layout) velocity-mode servo amp would be cool
that would be my fault
hyp: you're here too?
* hypa7ia hides
we has laz0r
(and more relevant to emc than a step-input one)
jepler: what exactly do you want?
i missed the beginning
jepler: what feedback? encoder?
the drive would need velocity feedback
whether that comes from an encoder or a tach is left as an exercise for the designer :)
right - could a high count encoder work?
(but an encoder won't be as good at low speeds)
unless you compare it to a bad analog tach design :)
elmood: I don't think you missed much. I was just thinking about G380 which was talked about above, and imagining what would be more interesting for emc
jepler: maybe that's the servo drive skunkworks designed
alex_joni: it's not velocity-mode. it would make a good power stage, though (and as we've seen, emc works pretty well with voltage-mode servo amps anyhow)
has anyone tried doing velocity and postion from the same encoder? (pid for velocity and position?)
would you gain anything?
other than complexity ;)
you'd have to talk to someone who uses control theory. :-P if you can run the velocity loop faster (or continuously, as with all-analog amps) it seems like there's going to be some benefit. If you're running them both at the same rate it seems more likely that there's not much benefit (just more tuning parameters).
I have the book on the theory but it looks horrid
too much maths and not enough coffee
with the masa card you could run the velocity loop at close to base period times..
* skunkworks still doesn't like analog
on an unrelated topic, what is the kind of switch used in digital camera shutter releases called? It has two contacts, and the first closes before the second one does.
btw - dad found he has an old heathkit analog computer trainer..
skunkworks, some would kill to get that
I thought I'd found them called "double action switches" before, but that doesn't get me any items on mouser
archivist: ebayable item?
skunkworks, sure the classic computers crowd will like it
ah, here are some on digikey. they call them "Off-Mom-Mom" switches
mom is momentary(spring does not latch) if thats what you want
probably it doesn't make sense for my application..
the specific AVR I've been working with recently is a bit of a pain to put into programming mode: pull HWB low and then strobe RESET low. My first board design uses two separate tactile switches, one for HWB and one for RESET. I was thinking that one of these dual action switches would make that easier, but then you couldn't use the button to reset without going into bootloader mode..
(you can also jump to the bootloader from your firmware, but that assumes you didn't write a buggy firmware..)
I would expect the programmer to be pulling pins to get into the mode not a switch
those modes are available too, I'm just not using them
this is the DFU mode of at90usb-family chips, which allows a firmware upload over USB. It doesn't replace the low-voltage serial programming, it's another alternative
it's very convenient right up to the moment that you write a firmware that is too buggy to automatically reenter the DFU mode
then you have to press the buttons or use a different programming mode
I use pics and just stuff new code in when its buggy :)
I've only got experience with AVRs, so I dunno why I'd switch
dont switch if you dont need to
either is ok, imho
skunkworks, reply to value of heathkit "<LordNLptp> archivist: if it works, probably a fair bit, but i don't know values offhand"
skunkworks: If Dad finds a Heathkit Atomic clock, let me know
not a chance
if anyone know their stepper drivers and how they work here, http://mech.vub.ac.be/teaching/info/mechatronica/finished_projects_2005/PICROCK/l298drv.gif
<-- the diodes at the output from th eL298, they arent realy needed right ?
sure they are
energy dump, I think
see data sheet for the L298 , required iirc
see the ... yeah, what he says
else things break
good evennig.one question.when i command m3 s1000 and i have spendle at sppet = false because the red line actual line cnc run not is on m3 s100 partprogram line ?
archivist, seen schemas where they arent used also
excuse for error spindle at speed = false
MrSunshine, it does NOT have internal diodes so you do need them
i use the cvs version
have to fins myself some that isnt so damn big as the ones i got home thne
ordered the wrong ones, packages were huge :P
they need to be fast. do not try to use rectifier diodes.
do they need to take alot of amparage also ?
rectifier diodes get very hot when abused
aw, its a rectifier diode ive bought :P
motioncontrol, I don't understand your question. can you say what you are doing, what you expect EMC2 to do, and what you see EMC2 do?
what type of diodes do i need then? :/
(that looked a lot like a line from ELIZA, didn't it? :) )
VF ≤ 1.2 V @ I = 2 A D1 to D8 = 2 A Fast diodes trr ≤ 200 ns
yes i repeat and excuse for my english
MrSunshine: according to your gif, you need FR301 diodes
no problem, just trying to get the question so you can get the answer :)
for more information see the L298 data sheet. you can find it online.
i write i my partprogram go xo after m3 s1000 after m2
google ST L298 and the datasheet is a click away
i guess i could use the ones ive bought anyways, its a prototype card just to test how it works, wont abuse it to much =)
motioncontrol, do you have spindle speed feedback? (or a signal that tells when the spindle is up to speed)
be careful - wrong diodes will cost you the price of a L298 plus the price of the correct diodes...
schcotsky diodes according to datasheet
what diodes did you get
cradek, well they can take 3A 400V
il check name
i start cnc emc2 and the maschine go at xo , on the display the line go xo is red (the actual line read at cnc), when the x axis at 0 position the emc2 read m3 s1000 and the splindle is run.i have low the pin spindle at speed , but on display the red line for actual line cnc read not is presente.because?
motioncontrol: when motion continues, the line will move to the active motion line
MrSunshine, that diode is a slow rectifier
you have asked this before - the answer is that the line only shows lines that cause motion
archivist, was a page i found that he used them on, so i got them :)
no if you have the spindle at speed = false the motion is stop
MrSunshine: not every electronic circuit on the internet is a good circuit
yes motion will wait for the spindle to be at speed
this fuction only in cvs version
first priority should be the datasheets and application notes from the company that makes the chips
jmkasunich, nah i know :)
motioncontrol: maybe I still don't understand your question
UF5407 DO-41 800V 3A ultrafast
that one then :P
jmkasunich, the part on his circuit is ok, he bought a substitute
you probably don't need 800V ;-)
I bet you do want more than 100 though - maybe 200
cradeck excuse, nornaly on another cnc, when cnc read the m3 s1000 the cnc wait the spindle revolution ok(spindle at speed = true) , and display at operation m3 s1000 in line evidence
jmk-st, hehe :)
motioncontrol, are you asking if the M3 S1000 line will be hilighted in the G-code window while the spindle is accelerating?
yes the question is correct
motioncontrol: do you have any problem other than the highlighting of the line is missing?
turn off on the UF5407 is faster than required and ok
no only spindle command and g4 p10 command
yes then the answer is the same as before - the lines that do not cause motion do not get highlighting
MrSunshine, UF5404 would be better it has a lower VF
archivist, thing is that i do not what to buy components from 20 diferent places
as i have to order everything
but the m3 s1000 in acceleration is a motion in velocity mode
VF is above the L298 spec for the UF5407
M3S1000 does not cause any axis motion (on XYZABC...)
so it doesn't get hilighted
the motion controller will (optionally) wait until the spindle is at speed before performing axis motion, but that pause is not motion
yes i undurstand , but i thing is correct for spindle acceleration the m3 s1000 is hightlighting
I agree that would be better - unfortunately it's hard to fix
archivist, where do you find a spec of Vf value for it ?
the L298 that is
because for eample i use the pin spindle at speed for feed enable signal low , when the spindle velocity encoder is equql at spindle command i set true the spindle at speed and the motion is on
< 1.2 V ?
found one with 0.57V Vf at the same place i buy everything else, rated to 40V 3A
thats from the L298 datasheet
in the moment the ffed enable is low the cnc is stop on m3 s1000
but is it fast as well
and says "high frequency operation"
what is the speed of them named in the datasheet?
MrSunshine, download the data sheet and read the number ...
SWPadnos, cant find any number of speeds :)
and then search somewhere like DigiKey for some diodes that have all the right numbers ...
archivist, is it named in hz etc or what? .. cant find anything more then dv/dt that seems like a speed incidcator of the diode?
no trr rating
trr is the reverse recovery time quoted in ns in the UF5401 series data sheet
archivist, still i dont want to throw away huge money in chipment cause i need to buy diodes from another place then the one i buy everything else on :P
I understand hence look at others, and check makers data
cant find a rating of trr for the diode anywhere
its just a "-" in all places that sells it
the one that takes 800V 3A has 75nS trr, but 1.7 Vf
Vf was supposed to be low right? :)
"as low as posible at the worst case of the current load"
i dont get it, why doesnt some datasheets specify stuff like trr?
the diode does not carry the steppers normal forward current only a pulse
alex_joni: Did you see the electric car?
the one from yesterday?
yup, seen it
(like I said yesterday ;)
alex_joni: Well, if you didn't prepend my nick, I wouldn't have known
MrSunshine: the ones that don't specify the trr are the slow ones that you don't want
for 50/60Hz rectifier duty, trr doesn't matter
so any diode with no trr means it was designed for low frequency rectifier duty
diodes for use in switching power supplies will have trr specified
23:24 < JymmmEMC> alex_joni: did you see it?
23:28 < alex_joni> JymmmEMC: shortly
shortly makes no sense though
that's about 23.5h ago
who said I had to make sense anyways?
if you had said "JymmmEMC, briefly", then he would have known ;)
excuse my crappy english
I'll take a crash course :)
well, you're better than 93.22% of this country already, so I wouldn't sweat it
it is still better than mine..
that still means I would probably flunk a 5th grade test in england :)
yes, of course
1.7GB ram lol
No, wait... down to 1.6GB now =)
jmkasunich, the latest one i looked at did not specify and said high frequency
url for datasheet?
according to another channel they dont specify cause schottky is supposed to be so fast it doesnt mater?
[20:15:52] <MrSunshine> http://parts.digikey.ca/1/1/1037228-diode-schottky-40v-5a-smc-mbrs540t3g.html<--
there it says 0ns
you didn't say it was schottky before (or at least, not clearly)
"they" are right - schottkys technically don't have a reverse recovery time, and most are damned fast
ahh, well it says preferably that in the L298 datasheet :)
however, schottkys tend to be low voltage - like the 40V part you just listed
jmkasunich, ye, but its never going to be used above 30 - 35
the diode voltage rating needs to be somewhat more than the maximum supply voltage you will ever use
oh, this isn't gecko class 48-80V drives?
for a 30V supply, a 40V schottky will be OK, IF (and only if) you have a decent layout and bypass capacitors
at high currents, you can get voltage spikes across stray inductance
[20:18:38] <skunkworks> http://www.cnczone.com/forums/showthread.php?t=76233
but the L298 is only 2A, isn't it?
does this look right?
[20:18:46] <skunkworks> http://pastebin.ca/1366473
a bypass in parallel with the diodes ?
a bypass across the power supply
(near the L298's and the diodes)
jmk-st, rated to 2A per h-bridge
jmkasunich, ye thats what i mean
well this layout i have now doesnt :/
but it was built to find the bugs =)
and i find more and more
lack of bypass capacitors IS a bug!
found a 60V 5A shcottky now, i guess ill go with that one then :)
jmkasunich: how are the jobs coming?
the bypass capacitor, any minimum uF on that? :)
type is important
skunkworks: hope to finish this weekend
jmkasunich: cool :)
ST recommend a 100nf
MrSunshine: you should have a bulk cap - electrolytic, several hundred to a few thousand uF, and high-speed caps, 0.1uF ceramic
hmm ok :)
they bulk cap may already exist as part of your power supply
got a huge one in the power supply im going to use
ST has 470uf on the appnote
I must be channeling ST today
the one in the powersupply is 22000uF
too far away
but i should put one by the L298 also then :)
if you have more than a few inches of wire between the supply and the drive, yes
the ceramic caps, should they go betwene the outputs (output0 - 1, then output 2 - 3) or should it be output1 -> GND, output2 -> GND etc? :) Seen some datasheets having ceramic caps straight over the supply lines like that (0 - 1, 2 - 3)
no no no
you have no idea what a bypass cap is, do you?
bypass caps are applied between power supply and ground
bypass caps are from VCC to GND to level out the dips in the voltage
or, power or whatever its named :)
as close as possible to the chips and diodes
(sorry for delay, phone)
have to see what i can do =)
jmkasunich, humm, one more more ceramic caps ? ... more and it just adda sto capacitance right ?
different value (and different material) caps are used for different purposes
for bulk caps (the big electrolytics in the power supply), you just add them together
for filtering higher frequencies, you use a small value cap, ideally with low ESR (like a tantalum or electrolytic)
(these are usually in the 0.1 uF range)
multiple caps in parallel add
if you use 4 caps of 0.1uF each, you will get 0.4uF
but the four caps (if properly located) will have less lead inductance than one larger cap
that is why you use the small ceramic caps in the first place - the large electrolytic cap has too much inductance to be usefull for very high frequencies
for filtering, you can't just look at the totals and be happy, you have to look at layout and other things that are often not considered
and the small ceramic caps don't have enough capacitance to be usefull for low frequencies
reboot ... computer acting up )
there, 1 big elyt, new diodes, 2 ceramic 0.1uF capacitors added .. anything more? :)
you need to catch the magic smoke
OT: I was wondering what google was going to come up with next: http://www.theregister.co.uk/2009/03/20/gmail_undo_email_option/
they sell glass devices you can fill with water to catch that
alex_joni, hehe if there comes magic smoke out of it i guess ive done something wrong ;P
generally speaking, tiny endmills are relatively strong for plunge operations, right?
ds3 they are ok but for 'nice' holes your machine has to be very rigid or they have a tendancy to wobble a little
they need to be senter cutting
Guest374 is now known as skunkkworks
hello everyone! anyone have time to answer what I hope will be a quick question?
skunkkworks: we know you can't spell ;)
Acidshock: don't ask to ask.. just ask
ok... well I am trying to mill out a pcb board and the program I use exports to ISO gcode. I believe its trying to quest a tool change(T4 M06) EMC2 seems to not like this. Is there any way to make it prompt for a tool change?
in that case, I wonder how quick will I blow through 1/8" EM's in ABS
emc2 surely likes T4 M6
wells its telling me invalid gcode at line 5, which is that
depending how you set up your config, it's possible to get a prompt for a tool change
anything else on that line?
maybe it doesn't like M06 .. try changing it to M6
nope... however it is being save on a windows machine.. Maybe trailing carriage return?
no, that should be fine
ok I can try that
and even if it wasn't.. it shouldn't go to line 5 ;)
Am I right in thinking that is a tool change? I am not familiar with Gcode but it seems logical
T4 specifies the tool to be loaded next
and M6 is the actual toolchange
Txx stands for tool prepare
ok im gonna test it out really quick.
Acidshock: no problem, hope it works
if it doesn't put the first 10 lines or so online somewhere
maybe on pastebin.ca, so we can take a looksy
hey alex... no luck :(
I did post the code
[22:52:49] <Acidshock> http://www.pastebin.ca/1366614
well some of it
lol first few lines
emc says unknown g code at line 5
with it being m06 or m6
Acidshock: the unknown code is G71 on line 4
if I remove it and add M2 as the last line, it loads in my emc2.2.8 using configs/sim -- it looks like two circles that overlap partially
if the distance units are millimeters, add G21 before any motions in your file
the internet suggests that some control treats g71 and g21 the same, but in emc g71 is an undefined code. use g21 for mm.
thanks jepler! now I am not very familiar with gcode. I am relatively new to the processes :) Where would I add this G21 again? Is it just in that 4th line or before each line instead of the g01 and g00?
Acidshock: I think you want to put G21 right where G71 is now
just once will do
and add M2 after the last line -- emc requires M2 at the end of all files (*slight oversimplification, but treat it as a rule anyway)
will do! thanks so much again. I also found an article on wiki talking about the change, etc. I will read up on this to try to prevent further questions like this
best of luck
this is the most helpful single page to refer to when trying to figure out what is and is not in emc2's gcode: http://linuxcnc.org/docs/html/gcode.html
good night all