[#emc] "This is the #emc channel - talk related to the Enhanced Machine Controller and general machining. Website: http://www.linuxcnc.org/,
wiki at http://wiki.linuxcnc.org/"
MediumJohnT is now known as jthornton
WEEEE the base for the tower is now in concrete
Valen1 is now known as Valen
sound about right? http://cnczone.com/forums/showthread.php?p=652739#post652739
skunkworks: yeah. the 'charge pump' signal is usually more like 12 Khz or so though
you can get all kinds of noise on the parport when booting. I don't know if it polls the port or what, but if you have relays and stuff connected they'll go wild!
when Windows boots, it may mess with the parallel port during its scan for new devices
also, I think the only way to detect a port is to write to some registers and check the readback value, so Linux does the same thing if you load parport_pc (or whatever)
tom2 is now known as tom3p
SWPadnos: What if I successfully run EMC2-RTAI in cegeda in, for example, MS Windows XP -- It seems it could drive the motors, but RTAI advantages will not be used, right?
it will be terrible, but may appear to function
SWPadnos: OK, I thought it could be a solution for nebooks
there's no point to doing that, unless you're developing a parallel port driver
drivers are the only reason to use RTAI on a PC like that, since it can't run a real machine
if you want to do testing, training, or other development, then sim is a better way to do that
SWPadnos: I mean PCMCI-to-Par on netbooks (if it have pcmci)
you will not be able to run any machine worth running when using RTAI inside a virtual machine
SWPadnos: Can /etc/laptop-mode/laptop-mode.conf help if I thin tese are cache write which enlarges the latency from 15 ms to 100 at the first 10th or 15th minute?
I saw what you posted regarding laptop-mode, and it looked like interesting data
but I don't know that you can completely disable ACPI/APM, which is usually necessary in notebooks (for battery and heat management)
SWPadnos: right, but I had to repair RAM module last time I used RTAI... One laptop with the Athlon XP 1600 GHz hadn't worked a minute in RTAI kernel
RTAI is unlikely to cause damage, but its usage pattern amy make existing problems show up
(a bit like running prime96 or similar as a burn-in test)
SWPadnos: my laptop works in RTAI perfectly well -- but I fear that turned off ACPI support heats up the CPU, motherboard and RAM
yes, that is a problem
you meed to leave ACPI on (and may not be able to disable it completely) for a laptop
this is why they're usually not sutable as realtime machine controllers
110 fan plugged into ac outlet for my hp laptop w acpi biod defeated... overheats/shutdown anyway, cant reverse airflow thru it well
tape it to the case in an exhaust configuration :)
(just unplug the original fan first, you can blow the drivers if you spin them too fast)
SWPadnos: And since I do not compile new RTAI kernel, I can not tune it up to use ACPI, what isn't a default behaviour.
what I'm trying to explain is that if ACPI is enabled, there is no point in using RTAI, since you will not get acceptable latency all the time
and you must get good latency all the time to make a reliable machine - if there's a 0.001% chance of something going wrong, you'll get about 1 error every minute and a half (using the standard 1 kHz servo thread)
OK. Old PC with stsndard radiators will work stable either with acpi disabled or enabled.
OK. Another question.
Xemc vs AXIS interfaces. I know I can try it, but Xemc probably uses less CPU timings? Or is it exactly a consistency of the signals at the first order what makes the CPU to work?
the time consuming stuff isnt in the gui, its in the common underlying control, so cpu burden isnt (very) gui dependant
it needs something like 500 or more KHz for EMC2 routine
you could turn acpi off perhaps and underclock the cpu
oh on boot some motherboards use the parallell port to output "port 80" info
so expect lots of random weirdness as it starts until the OS takes over the port, then perhaps more weirdness until it gets going
LawrenceG: yesterday you talked of using dspic33 fro encoder in & pwm out. i saw theres an rtos for it. would emc2 benefit by offloading tasks to rt objects?
tom3p, well... I have several projects running with the servo loop in the pic.... the biggest hassle with external devices is getting an easy reliable, real time high speed interface to the PC.
the mesa stuff is the best I have seen so far for off loading the PC
realtime network would be nice, but it has not really materialized.... not sure what is happening with the new pci-e serial bus.. it could be an easier way in/out of the PC, but the electronics is probably beyond the hobbyist
USB still cant get it right in the PC world... I dont have any hopes for it in the real time end of things
I really like the servo loop inside the PC... it makes tuning easier using halscope... the main issue is getting encoder information into the PC.... really only 2 choices.. hardware on the PP or the mesa card on PCI bus
so synchronation is needed between the rt objects? async rt is not useful?
a dedicated microcontroller has very good RT performance when doing 1 task like a servo loop... it is the realtime communications with the PC that sucks
Pid tuning M5i20?
5i20 is a very clean communication route in and out of the PC and is already supported (yay)
its getting to the point that it could be possible to port emc to a cell phone and run a 5 ton cnc machine.... but its not high on my list of things to work on
I have a question about tkemc if someone has time - I am trying to get it to run 640x480
but the docs that I found online are outdated
The "Editing the GUI" page is what I am referring to
I am trying to work on the PID tuning. I am having trouble with Halscope triggering on PID*error. any advice?
I would like to change the font size to 8 for everything
Guest229: i dont think tkemc or its directory specify the default font, i think tk does that. IF so, then this may be of help http://www.tkdocs.com/tutorial/fonts.html
cool man, thanks
I am hoping there is a way to globally change the font, rather than resizing each component tho
that page talks about the global ( default ) font used by all tcl/tk apps
bummerl... ebay rip off of my work ! http://members.shaw.ca/swstuff/esrmeter.html http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=320378624786
direct copy of my website description.... likely his meter is totally different inside... poor unsuspecting ebayers
likely ripped off the circuit as well, except for the display
interesting "any ripple current through the capacitor causes the capacitor to heat up due to the resistive loses." i'm sitting here with 6pcs 300amp 105Vdc, i oughtta check my cap bank. tho i never felt 'em warm up
someone just pointed this cap on fleabay in ##electronics http://cgi.ebay.com/_W0QQitemZ350230250951QQcmdZViewItem
now that is a cap.. ( 3 I suspect)
oil filled caps ;) big time
I have question: did any of you saw lathe with more axes than XZ ?
power factor correction caps... they sit right across the bus bars in a motor control center
like XZBC or sometning?
micges, there are plenty of the sliding head lathes with multiple axes
[18:33:18] <tom3p> http://www.bardonsoliver.com/machines/4axislathes.html
micges, if I can get the hardware I will retro fit one
me too :)
but I'm asking becouse of modifcations of emc that will be made
this needs a home when we close http://www.archivist.info/cnc/works2008/P1010226.JPG
and with some live tooling
8 axis lathe? i never saw the workpiece spin! http://www.youtube.com/watch?v=vGEOY9aGJF8
archivist: when we close?
we are shutting here
* archivist out of a job
micges, what limitations do you see in emc2 for multiaxis lathes?
archivist: sorry, hope you find work
it could be worse, i have work and no pay!
[18:39:47] <archivist> http://www.youtube.com/watch?v=weJQS0WkqdY
archivist: I hope you find work too
may work from home depends what toys I take from here
tom3p: I'm reworking mapping of joints<-> axes
archivist: cool vid, now mount the headstock on an a&B to get those bosses drilled at any angle :)
micges: trivkins or more complex?
I keep looking at sliding head vids for inspiration
tom3p: I'm actally writing that part of emc (branch joints_axes3 in git source) ;)
don't have any lathe so I'm asking
ah, i'm not a lathe user
I do use lathes, Im also milling round to save second op now
its a tooling v speed issue
and, spindle motor capable being rigid for milling against and fast for turning
archivist: are you using emc ?
yes, 5 axis mill
set up trunnion style
A mounted on B mounted on XY
its a scruffy object
let me upload recent from the camera
archivist: any lathes with emc?
anyone try pncconf?
micges, pic from 5 minutes ago http://www.collection.archivist.info/archive/djcpd/PD/2009/2009_08_15/102CANON/IMG_0277.JPG
swarf made on it http://www.collection.archivist.info/archive/djcpd/PD/2009/2009_08_15/102CANON/IMG_0274.JPG
it is built from scrap and oddments
swarf is 2.4 mm od
not so nice it has some serious problems, backlash, rigidity of the rotary and restricted XY travel
join the club in the backlash department
so one cannot use cam software on it, you have to program the gcode unidirectionally
i gotta replace/rebuild my ball screw in the x axis
you must not have a ball screw, huh
no not yet
best part of £350 each needed for X and Y
thats slides and ballscrew
wow, that's a bit much
oh, slides too.. not bad
you dont have room for a full size machine like a bridgeport, huh?
not worth fixing just one problem, need to fix travels and backlash
for 700 i'm sure you can get an old bridgeport cnc with a boss control that will have a fairly solid mechanical side
probably but the cost is way out of reach
i dunno, around here they basically give them away
usually they have some old outdated controller and noone wants to deal with them
perfect cadidate for EMC2
the cost of retrofit, transport etc put them out of my reach
i hear ya
i need to change my stepper outputs to open drain
i dont think my stepper drives like the 3.3v my mesa i/o board is putting out
the manual says 4-5v
I use a buffer
like an amplifier?
a chip more capable of driving
7414 iirc off my parport
so a transistor should work, huh?
i really need to learn how to design and build circuits
im new to transistors and all that stuff
i understand how it all works, i just dont understand much as far as specs go
a transistor solves one pin's problem, a chip solves 6 or 8, use a chip
never dealt with a chip before
but i suppose i can look into it
some are even designed as level translators 3.3 to 5v logic
[20:28:29] <tom3p> http://www.fairchildsemi.com/ds/74%2F74LCX244.pdf
3.3 to 5v xl8r
what stepper drives are you using?
those are optoisolated, aren't they?
thanks tom3p and archivist
i believe so
just double checked and they are
are there +/- terminals for both step and direction, or are they commoned?
seperate for both
ok, so you can do common + and have the FPGA pull low
which most logic is prett ygood at
yea, the manual for the drivers confirm that
i was reading the emc2 manual today trying to figure out how to configure the hal for it
no idea, but it should be possible :)
you'll probably need to invert the output in HAL, and then set up whatever the Mesa card needs (is-opendrain or something)
yea, that sounds about right
so its not a 3.3v or 5v problem, the opto needs ~<20mA current and the prob is setting up mesa?
the driver needs between 7 and 16 ma
then ignore all the stuff about trx and chips
i guess i can do it the hardware way with a chip, or i can do it with an opendrain setup
the chip wont work?
not needed afik, if the mesa can drive 16mA per output, its just setup and wiring
ugh i'm confused lol
if you were dealing with inputs to the FPGA, or outputs to 5V logic, you might need a level shifter
? mesa cant drive an opto?
since the input to the stepper drive is actually a current (to turn on the LED in the optoisolator module), and you can configure it so that the inputs need current "sunk) (ie, they get pulled to ground), you don't need any external hardware
now just gotta figure out how to configure it for that
does the mesa card have a series R to limit current
no, I don't think so
but the drive should have a current limiting resistor
archivist: very cool
i think there is one in the drive according to the manual
archivist: I'll try to build XYZAB myself
micges, ,ost of my work is round with a regular feature eg gear or escape wheel etc
hey the max input frequency of my drives is 300khz, how would i know if i'm exceeding that?
archivist: now we 're building XYV machine with two heads
Danimal, you wont be
two heads welder
the Mesa card can, but not if you set up the step length and space correctly
at that speed your steppers would stall
unless you set the drive to bazillion-microstep mode :)
2 bazillion. is that bad?
i dont see any parameters for the stepgen to change it to open drain
in the hal part of the manual
it's not the stepgen
it's a GPIO setting
[20:57:48] <tom3p> http://en.wikipedia.org/wiki/Open_drain
oh i didnt know the gpio settings would effect the stepper outputs
yes, the GPIO settings affect how the pin interfaces to the real world, but the output value is taken from the stegen (when the stepgen is enabled)
you can still read the GPIO -in pin too, which will show you (sloely) the stepgen output
I/O pins on the board which are not used by a module instance are exported to HAL as "full" GPIO pins. Full GPIO pins can be configured at run-time to be inputs, outputs, or open drains, and have a HAL interface that exposes this flexibility. IO pins that are owned by an active module instance are constrained by the requirements of the owning module, and have a restricted HAL interface.
from the manual
(bit r/w) is_opendrain: This parameter only has an effect if the "is_output" parameter is true. If this parameter is false, the GPIO behaves as a normal output pin: the IO pin on the connector is driven to the value specified by the "out" HAL pin (possibly inverted), and the value of the "in" and "in_not" HAL pins is undefined. If this parameter is true, the GPIO behaves as an open-drain pin. Writing 0 to the "out" HAL pin drives the IO pin l
hmm so it looks like you're right
note the last sentence of the is_opendrain paragraph
if im understanding it correctly
"Only full GPIO pins and IO pins used as outputs by active module instances have this parameter."
and stepgen is an active module
if you don't activate it, then the pin will be a full GPIO, and will still have the parameter
it's only pins that are shared with input finctions (like encoders) that don't have the setting when the function is active
(since the encoder function needs inputs)
ok makes sense
so if i change the opendrain parameter for 1 gpio, will it set the rest like that as well?
each is separate
just copy/paste the line in the HAL file, and change the numbers
ok i think i get it...
cool, thanks for the help, i deffinately have a better understanding of it all now
cant wait till i can rapid with this machine
it will save me tons of time
i finally fixed my power drawbar this week
damn rectifier was bad on one of the logic boards
well i'm off to the store to get some connectors... thanks again for the help
work time here
SWPadnos_ is now known as SWPadnos