I'm gone... I'll be back later...
hope I didn't miss anything with that commit...
03cradek * 10emc/src/emcplot3d/emcplot3d.cc:
color and line thickness chanes to make dwells, text,
and axes easier to see.
* an0n yawns
I've seen you commited some stuff on emcplot3d
it looks great nowadays
I don't think I ever used it... :(
could you tell me some about it?
I don't understand how anyone can get along without it
you give it gcode, it shows the paths the tools will take
it shows dwells, canned cycles, etc.
independent from emc?
you can zoom and rotate around
it uses the emc interpreter
but emc does not have to be running
exactly what I was gonna ask
it does not require any realtime software
what libs does it require?
just emc + opengl
* alex_joni was thinking it would need opengl...
mesa works fine if you don't have hardware gl support
so build it and try it
* alex_joni just fired up his devel box
let me see now...
missing GL/glut.h gl.h glu.h glx.h
do you have mesa or other gl?
don't think so ;)
get mesa then, no problem
I have mesa installed, but not mesa-devel
ok.. build succesfull
copy scripts/generic/plot into your path somewhere
edit EMCTOPLEVELDIR in it
then run `plot somefile.nc'
programs/3D_Chips.ngc is a good candidate
* alex_joni is excited
but it doesn't have dwells or canned cycles
that's exactly what I opened ;)
translate with the arrows and pageup/down
rotate by the same keys while holding shift
x,y,z give orthographic views from those directions
notice it tells the cut length and rapid length, so if you know your approximate feed rate you can guess the running time
did you get my latest changes (you would probably have to cvs update as a developer)
yup... seen that
I didn't checkout... but I am now...
certainly this is a reason ;)
one question: is there a zoom possibility?
oh yeah.. silly me (translate Z)
if I resize the window the text dissappears...
only from a certain size up
you don't have a recent update then
the text should be cyan, not red
you should get version 1.14
use `cvs status' to check
is it on emc2 too?
I think all emc users should have this program - I never run gcode without checking it first
I don't think so
but configure should check for GL and build it :-)
this is a file with dwells and canned cycles
so you can see those features too
thing is.. does it work with emc2?
don't know, never tried
seems I gotta add that to my DCC...
usually you can use /dcc get
there you go
this is a simple circuit board I made
got it in cyan letters this time ;)
now the text will work right when you resize
when resizing you take in consideration the y size of the window
why not resize to whichever is smaller?
that appears to be what glutReshapeFunc() does
I see.. so it isn't inside emcplot3d.cc
well then .. glut's problem ;)
it's part of glut
and no big deal - it's only a matter of zooming after a resize
I really gotta say... WHY THE HECK DID I MISS THIS TILL NOW?
it did not work for a long time
I've done a lot of fixup
it makes me happy to know you think it is so useful
I've been messing around with CNC Simulator on doze...
I had an old DOS program but it was very bad
I would not have switched to emc without some kind of previewer
I have 2 wishes ...
1. I'm kinda a mouse user... so rotating using a mouse would be great...
(even if I would have to move some sliders)
2. if it's based on the interpreter... could it be used like the backplot?
I agree with #1 but that would require making it depend on gui libraries (and would be LOTS of work)
it does have a "live plot" mode already but it is buggy
try running it with no program specified while emc is going
more a "sim plot" than a live plot
be sure to kill it fast before your machine runs out of memory
hmm, I don't understand what you mean then, please explain
well.. be able to use it outside emc
don't need realtime for simulation
that's already the case
or maybe that could be done with sim.run
I meant the plot stuff...
emcplot3d does not require realtime
I know... but the machine.run does
when emcplot3d is sitting in backgroudn with no .nc file specified
sorry I still don't understand
well... never mind.. seems I'm pretty tired and I'm not getting through ;)
I think it does read .ini and .var files etc., but those do not need to be related to a real emc setup
I don't seem to make it run with no param
the plot script does not do that
go to emc topdir
then hit enter
window appears blank
(this has bugs and I don't use it this way)
window appears with error messages ;)
not for me
well it's because I'm running generic.run
emcplot3d is complaining it can't find emc.nml.. or smthg
* cradek doesn't know how the live plot is supposed to work
it may be "bitrotted"
but emc.run is not ok for me (hardware limits on axis 1-6)
this is exactly what I meant earlier
it would be nice if I can start plot (with an nc file)
and see either the done output (how it does now)
or some kind of simulated run
but that's a lot of code we're talking about...
you mean the final display would be the same but it would draw slowly?
oh now I understand
the answer is: I don't know
I agree that might be nice too
alex_joni: is the hardware limit with emc2 or emc1
I don't really know how it gets drawn...
and it was axis0,1,2
it builds it into a GL display list
probably something in emc.ini
in the proper order from the nc file?
the list would have to be rebuilt each time a new move is drawn
Is this a stepper definition like generic.run?
rayh: let me check
rayh: it's the emc.ini from CVS.. so I've not really used it before
Try running ./generic.run
well.. that runs
but emcplot3d doesn't connect to it
that's the reason I ran emc.run
generic.run is as good a sim on it's real time.
I see now that it's stg2mod
emc.ini that is... so it really can't work here (no stg around, nor other hardware)
rayh: not that important, I was just curious about emcplot3d...
There is a line about 389 in the ini that sets up plot
I'm curious also. That's why I was lurking.
in emc.ini ? (line 389?)
I'm wrong. That's stripchart.
rayh: I always wondered what stripchart is...
That line builds a socket between emc and the gnu stripchart.
cradek: what if emcplot3d get's changed to work with sim.run ?
ok... skipping stripchart ;)
emcplot3d running with sim.run sounds better than a custom machine.run
you can change the line iniLoad(EMC_INIFILE);
there doesn't appear to be support for passing that on the commandline
please add that :-)
I could.. let me try
* alex_joni remembered something
I was looking at some milltask code lately .. from emc2
and I traced where (and how) the inifile is found / loaded
and... I got to emcGetArgs.. which does the trick
so it seems to me it already does that (run emcplot3d -ini sim.ini)
I'd like to try compiling emcplot3d if you don't mind helping a bit?
* alex_joni seems stuck...
I don't get any errors now...
sim.run is running
emcplot3d -ini sim.ini is running
but the interpreter is waiting
* alex_joni found that his machine was not homed.. such a shame ;)
rayh: do a make PLAT=<your not-rt plat> inside the emcplot3d dir
all I needed
is homing working for you guys on sim.run ?
I only use home with NO_SWITCHES set or whatever it is
emcplot3d.cc:10:60: GL/glut.h: No such file or directory
emcplot3d.cc:21:18: rcs.hh: No such file or directory
emcplot3d.cc:22:18: emc.hh: No such file or directory
and about a thousand lines more.
rayh: same problem here
you have no mesa-devel packages
do you have a full source tree?
need to add those..
but rcs.hh and emc.hh need to be in emc/include
I do have a full sf repository.
did you make emc and rcslib?
a bunch of times.
and no make clean...
it's surely the same PLAT?
* rayh tries rc46
I've got at least 3 rt versions with Knoppix on this.
No difference with rc46.
I don't find an emc/include
in the emcplot3d dir do `cvs status'
tell me what versions your two files are
I just updated 1.10 and 1.14
you should see -I[your emc toplevel]/emc/plat/linux_2_4_20/include
in the compile line
there should be include files in there
(whatever your PLAT is)
Got past the emc files not found. Just the glut files now.
what was wrong?
* alex_joni is running generic.run
you need to install mesa-devel or some other GL appropriate to your hardware
* alex_joni is running emcplot3d -ini generic.ini
err, mesa and mesa-devel
emcplot3d.cc:10:60: GL/glut.h: No such file or directory
rayh: right, install mesa and mesa-devel
and it really is drawing the output from emc ;)
alex_joni: for me its ram usage grows until the machine goes crazy
alex_joni: maybe watch it in `top'
top was runing....
and it got to 256MB mem + 512 MB swap
before finishing Chips feet
it should not grow like that
I suspect it is leaking GL display lists
well.. it did
Thanks guys. That update from synaptic will take me a day or two. Get back to you when it's done.
I haven't looked for this bug
what is synaptic?
anyways... I think it should get more advertised...
I have a touchpad from synaptic...
I announced it on the list when I revived it a while back
there was only a tiny bit of interest
I meant linuxcnc.org and documents
someone (coughcough) should fix the live plot problem first
I didn't get a chance to stop the plot...
but I did manage to kill X.. so I recovered control over my humble machine ;)
I told you that would happen :-)
* alex_joni is wondering what happened to emc and realtime stuff...
well.. it's a devel box.. I have no problem in crashing it ;)
no hard feelings... only joy ;)
* alex_joni is attempting to compile it with emc2
cradek: still around?
did you get a chance to follow discussions about autoconf stuff?
and mainly make install..?
(I have watched the discussions on many days)
well.. the last few days
I don't want to voice my opinions about that anymore
I was really hoping I would get together with zwisk...
I think everyone's opinions are different, and most are reasonable
but seems we've been unable to meet on IRC...
yeah I think he comes later in the day after you leave
* alex_joni is stuck with Makefile
* alex_joni is starting to compile stuff... stll getting errors
hmmm... seems that RCS_LINKED_LIST got removed
* alex_joni takes that back.. it got renamed
I could use some help with the Makefile .. :(
cradek: still around?
* alex_joni got emcplot3d to compile with emc2
even with live preview from a running emc2
I think I'll commit the changes to emc2
You wanting to commit emcplot3d ?
well.. I was gonna ask first... but yes
Is it GPL or LGPL ?
only that it was written by Jeff Molofee
So it could have a restrictive license
The licence needs to be confirmed befor committing to emc2
ok.. should I drop an e-mail to him?
Would be nice to get it confirmed in writing
* paul_c is checking the Debian pool for similar packages...
don't seem to find an e-mail addy though...
don't know if the one inside emcplot3d.cc is still useable (almont at bellsouth dot net)
gettin ready to ship some of these little black box testers to Chicago
take one on a plane...they'll put you in the little room for sure
For some reason all my stuff looks like IEDs
put one in a lead lined box...
flashing lights...mYsterious switches
alex_joni: Found Jeff Molofee
actually I made part of the box x-ray transparent
hoping it would help
[09:02:34] <paul_c> http://nehe.stumbleupon.com/
well.. yes, but no addy there...
or I'm too sleepy right now to see one
Also found his name linked with Richard Campbell in an OpenGL tutorial
same linkage in emcplot3d.cc
* alex_joni is running low on battery... (Laptop dying soon)
well.. it's 1 a.m. ..I'll go to sleep
Yup - I'd email Molofee first thing in the morning
Sorry Les - Got wrapped up with some stuff Alex was proposing....
I am Nick the mighty, and I wield Fake Tivo the Slayer Of Comercials!
* paul_c has the ultimate power
to ban or kick minions off the channel <big grin>
Pukka pukka squeetily boink.
what's so exciting tonight?
New lens mount [made by me], 20 PSI assist air, and I can cut 1/4" oak with 0.010" kerf!
Gawd, I love being a machinist.
what does the edge look like?
char, but straight
If my machine has good alignment, I think I could cut finger joints for small boxes.
that would be totally cool
It IS totally cool
can you show us a pic?
That would take a little while [begging camera off of my brother]
Too bad I don't have an optical comparator
does the air blow up or down?
The guy I bought the laser off of, he had things bolux'd up
He had the lens reversed, for starters
And he didn't have an air assist...he only had an air feed to prevent lens fouling
does air assist do something other than just blow the smoke and dust out?
I almost said `chips'
I made a new lens mount/nozzle, which extended down to the focal zone, and just clears the beam
so what kind of speed can you cut?
I don't just have anti-fouling, I have a air jet directly into the cutting
2 ipm through 1/4" red oak
ah, I was thinking it would move fast
(don't know anything about this)
Well, I don't have a high wattage laser - mine's 30W, tops
The guy also had the power supply messed up, as well
it's nice when you get a good deal on something that's "broken" and then you can fix it easily
* asdfqwega is a human Swiss Army knife - machinist, electrician, carpenter, mechanic, computer programmer...
can you put up plaster?
Easily?...who said it was easy? :P
uh, it was hypothetical
Spackling, or lath-n-plaster?
Ooo, that's hard...not something I could learn in weekend
It'd take me a couple weeks, at least :)
I just paid someone to do it and now I think "that shouldn't be too hard"
good thing it's done now or I'd try it
No...lath-n-plaster take a real eye for straightness
Well, I'm off to find a camera...I'm going to update my little gallery page with stuff
I found the bug in live plot
03cradek * 10emc/src/emcplot3d/emcplot3d.cc:
This caused GL lists to be leaked, making the process grow
VERY fast when using the live-plot feature.
hello .. anybody around?
I'm pretty tired.. just got to work :(
I stayed up till 2 a.m., now it's 9...
heard about your laser...congrats
9am, huh? You must be pretty far around the globe from here
It's only 2:30am here
* alex_joni set lurking mode...
* alex_joni sets lurking mode...
trying to assemble these robotic testers here
also...looks like I found a Bridgeport cnc to retrofit with emc
as soon as I can get to it
that will be the second emc machine in the shop
nice... what robotic testers?
oh for a throttle position sensor product I invented here
the testers use a stepper system to analyze and calibrate the sensors by writing to non volatile memory on the sensor
it's a living
grr dropped a resistor on the floor
no thank god...just a leaded one...have to increase the series resistance to the stepper a bit
too much torque
I see... I have troubles myself when I drop SMD's on the floor...
usually those tiny ones ;)
I want the stepper to slip when it hits and end stop
yeah 603s are fun
did you get a chance to play with emcplot3d?
I have not used it much since my cam programs do a nice simulated cut
I had mentioned that I would look at it again but no time yet
I never used it myself, until yesterday
cradek adviced me to do so
and I must say I really loved it :)
the earlier ones did not scale (or I did not know how to get it to)
it does scale now...
didn't find it either.. but it's Z-move
alex_joni: I fixed its live-plot last night
it's a problem when the work space is 1.75x1.75x.5 meters
Z+ it gets bigger
cradek: seen the commit, didn't get a chance to try it out...
I got it to compile/link/run with emc2
I saw that
any news on the license?
but... paul is waiting for a license info..
I want to try 4 axis if I get that Bridgeport
don't know really
if it really works...
I have a 4 axis machine
cradek: what kind?
alex_joni: maxnc (very small)
* alex_joni is still dreaming about building his own...
but I don't seem to find the time / materials, etc.
does emc do 4 axis properly these days?
oh sort of
either I haven't got it tweaked right yet, or there are problems with acceleration
it's tricky to have one axis do 10 units/min and another do 1000 units/min
I am playing with steppers here right now...
I have it working, but the rotary axis accelerates very slowly
on the tools I use servo
cradek: you need IO .. right?
* alex_joni was thinking about emc2... but it's still on simio
alex_joni: what do you mean?
alex_joni: oh right
alex_joni: yes I have one bit of io (spindle control)
that can be done with parport...
1 parport should be enough
emc2 doesn't seem to work right for my steppers yet
do you have limitswitched?
I only have semi spindle control
I have on/off only
I use spindle/brake on/off
I did run emc2 with an small stepper (4-phase, directly connected to parport...)
made a little circuit that checks for proper rpm
estop if rpm drops below a certain value
stalling the spindle from too heavy feeds is common with routers
and then breaking it... if not stopped...
In my case it will keep right on feeding..with 12 kilonewton force
it's good to have a wimpy machine
with little tools that snap off easily
running the following close to the limit also helps with it
(now that Ferror is fixed!)
les: how do you get feedback to emc?
is it CL?
optical encoders to servo to go
STG then... nice
yes closed loop
I was thinking about writing a driver for emc2
would you be interested?
will use the Vital systems card on the Bridgeport
not sure about what STG version...
but the Vital card is half the price
I don't have one myself...
not sure about the driver status though
might work...might not
[23:33:13] <alex_joni> http://vitalsystem.com/motion/index.htm
I use newstgmod and newstgsegmod for the STG II with the trap and segmentqueue planners respectively
Yup I see the linux driver there...who knows if it works properly
les: The vital driver is functional - To link to segmot is fairly easy.
Paul, I found a Bridgeport cnc locally...
So I see
What model ?
If it looks ok I will get it and retrofit with emc
old series 1
BOSS or Interact
BOSS I think
I would just rip out the steppers and control of course
Make sure you get some tooling with it
If the ballscrews are good I will prob get it
tooling is good
Without tooling, you will end up spending a fortune
yeah...but we are looking at only about $1000 here
good deal if the machine is sound
say $250 per collet chuck
what collet type?
You might find some cheaper
* paul_c paid �125 for an ER25 body
and then found some for �25
Prices are a bit lower here
40 taper holders about $80
Plenty of INT30 tooling around that is going cheap
that is cheap enough to not bother making them
but very little will fit the BP QC spindle
The flange is a different size...
I had better check in to that
possibly modify it...
With all this engineering work I need a second mill
the big cnc can do metal with a spindle change...
but it is busy with wood
so two vertical milss for the metal stuff and keep the router making wood and plastic stuff is the plan
Will the power line be up to it ?
yes..I got a new transformer with 200 amps
at some point I will separate the wood and metal shops though
running out of room
paul_c: do you have time for some questions ?
ok. I've been able to find a place where to put my function to print the output pin
but the results are a little discording with documentation.
* paul_c pulls up the listings
* paul_c has the listings pulled up..
if I move the Y axis forward I get 00001000 00000000.