Back
[20:50:01] <ChanServ> [#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/"
[20:50:19] <alex_joni> it's usually only down when they restart the machine where linuxcnc.org is hosted
[20:51:36] <dgarr> thanks
[21:07:49] <maddash> .
[21:28:50] <dareposte> hi all
[21:29:07] <alex_joni> hi dgarr
[21:29:11] <alex_joni> hi dareposte
[21:29:22] <alex_joni> (stupid autocomplete ;)
[21:29:34] <dareposte> i have a question about cutting with g33...
[21:29:41] <dareposte> i'm trying to cut some pipe threads 1/8-27
[21:29:49] <dareposte> using g33 to cut the tapered thread
[21:30:03] <dareposte> the program runs great, but stops right on the g33 line and won't continue
[21:30:08] <dareposte> like it's waiting for something...
[21:30:17] <alex_joni> spindle encoder
[21:30:25] <dareposte> i have a index pulse only
[21:30:40] <dareposte> which i thought the 2.3-head version now supported
[21:31:07] <dareposte> i checked halscope and it seems to be at the proper speed
[21:31:27] <alex_joni> the 2.3 encoder has an interpolated position output
[21:31:37] <dareposte> do I need to enable that?
[21:31:38] <alex_joni> and I think that one needs to be connected to the motion controller
[21:31:52] <alex_joni> dareposte: sorry, I've never used it.. so I'm mostly guessing
[21:32:08] <alex_joni> maybe you can wait for someone who does know how it's supposed to work :D
[21:32:10] <dareposte> thanks
[21:32:15] <dareposte> at least its a starting point..
[21:32:31] <dareposte> maybe my hal configuration needs to "simulate" a real encoder some how
[21:33:07] <archivist> I would get a real encoder
[21:33:26] <dareposte> i plan to do that
[21:33:46] <dareposte> but at the moment I only have an index pulse
[21:34:25] <dareposte> (open to suggestions for a good spindle encoder, if anybody knows what works well)
[21:34:53] <BigJohnT> depends on your input device AFAIK
[21:35:04] <dareposte> parallel
[21:35:09] <BigJohnT> parallel port 100 ppr or so
[21:36:03] <dareposte> okay, any vendors you know of?
[21:36:14] <dareposte> i do want to get one fitted
[21:36:29] <BigJohnT> I like Automation Direct
[21:37:22] <dareposte> what duty? they have light, medium, and heavy
[21:37:51] <BigJohnT> I guess it depends on the application...
[21:38:15] <dareposte> heh
[21:38:22] <BigJohnT> * BigJohnT looks at them a bit
[21:38:27] <dareposte> i was just reading there
[21:38:35] <dareposte> they are cheaper than I imagined they would be
[21:38:39] <SWPLinux> dareposte: you need to connect the single puls to spindle index and spindle phase A
[21:38:42] <SWPLinux> pulse
[21:39:13] <dareposte> okay
[21:39:27] <dareposte> i'm guessing stepconf won't do that, so i have to learn about this hal thing finally I guess
[21:40:04] <dareposte> BigJohnT: These look like they would get in the way of my spindle's through hole?
[21:40:18] <dareposte> bummer
[21:40:43] <BigJohnT> you mount a toothed belt pulley over your spindle and on your encoder so it sits beside your spindle
[21:40:56] <hugomatic> Hi, is there a ini file available for a Sherline metric lathe?
[21:41:21] <dareposte> stepconf has one as the default
[21:41:23] <dareposte> err
[21:41:27] <alex_joni> hugomatic:
http://cvs.linuxcnc.org/cvs/emc2/configs/SherlineLathe/
[21:41:28] <dareposte> not default, my brain is fried
[21:41:30] <dareposte> as an option
[21:41:43] <hugomatic> alexsweet
[21:41:44] <BigJohnT> 2.3 has one
[21:41:50] <alex_joni> hugomatic: if you want to run that with 2.2.8 you need to add some things to it
[21:42:03] <alex_joni> there used to be a SHMEM_KEY = 111 in the ini file
[21:42:04] <dareposte> yeah don't try using stepconf between 2.2.8 and 2.3
[21:42:11] <alex_joni> and a reference to it int he hal file
[21:42:25] <alex_joni> hugomatic: look at any 2.2.x config, and you'll see
[21:42:35] <hugomatic> I have a stepconf one, but I get following errors... so I'll use your numbers only. Thanks
[21:42:43] <alex_joni> http://cvs.linuxcnc.org/cvs/emc2/configs/SherlineLathe/SherlineLathe_mm.ini.diff?r1=1.2;r2=1.3;f=h
[21:42:53] <alex_joni> that's the reverse of the operation you need to do
[21:43:18] <hugomatic> You mean I'm backwards ;-)?
[21:43:44] <alex_joni> hugomatic: nope, not yet
[21:44:34] <dareposte> hey I noticed a new feature in 2.3... now when you touch off it has the option to touch off to the tool file ???
[21:44:41] <cradek> yes
[21:44:43] <dareposte> that is the best idea ever whoever came up with it
[21:44:51] <cradek> thank you thank you
[21:44:58] <dareposte> talk about a time saver
[21:45:08] <dareposte> is that your doing cradek?
[21:45:15] <cradek> yep that's my fault
[21:45:20] <dareposte> nice work
[21:45:36] <dareposte> it has encouraged me to actually set up my tool angles and orientations
[21:45:37] <cradek> thanks, I like it very much too
[21:45:41] <ebo_> cool cradek. I did not know that that functionality was added!
[21:45:59] <alex_joni> hi ebo_
[21:46:06] <ebo_> Hi Alex
[21:46:26] <ebo_> Just poping over for a little before taking a nap...
[21:46:37] <alex_joni> ebo_:
http://cvs.linuxcnc.org/cvs/emc2/debian/changelog?rev=1.59
[21:48:08] <ebo_> Alex: I just took a quick look at that link, but am not sure what I am supposed to be looking at...
[21:48:28] <alex_joni> you said you didn't know the functionality was added
[21:48:38] <alex_joni> that's a list of all the latest things that got added ;)
[21:48:50] <ebo_> Ahhhh.... ;-)
[21:49:06] <dareposte> SWPLinux: I should hook motion.spindle-index-enable to index-enable pin?
[21:49:09] <alex_joni> not related to NURBS ;)
[21:49:21] <alex_joni> dareposte: I would expect so
[21:51:12] <dareposte> and motion.spindle-revs
[21:51:31] <hugomatic> alex_joni: its going too fast... it moves 10mm but only shows 2.25mm. Is there a param i can tweak? I copied the axis section into my file so there must be something else to change...
[21:51:40] <ebo_> Alex: you or Jeff might want to take a look at the hal_find/get_device fixes in the patch. I discovered that hal_find_device is depricated.
[21:51:47] <alex_joni> hugomatic: SCALE
[21:52:04] <hugomatic> Sounds exactly like what I need
[21:52:26] <alex_joni> hugomatic: I would have expected the scale to be ok, but probably you used a different microstep setting
[21:53:04] <hugomatic> alex_joni: I'm not using the Sherline box, I have a custom thing that a friend gave me
[21:53:14] <alex_joni> ah, that might explain things :)
[21:53:26] <alex_joni> but then again the step timings might be off for the custom box
[21:53:54] <alex_joni> I see in SherlineLathe_mm.ini
[21:54:00] <alex_joni> in the [AXIS_0] section
[21:54:01] <hugomatic> Should I change the output scale as well? currently I have -800 for scale and -800 for output scale
[21:54:03] <alex_joni> SCALE = -800
[21:54:11] <alex_joni> OUTPUT_SCALE is irrelevant
[21:54:16] <alex_joni> it shouldn't be in there
[21:55:20] <dareposte> I added "net spindle-revs <= parport.0.pin-15-in-not
[21:55:22] <dareposte> "
[21:55:33] <dareposte> but i'm stabbing in the dark
[21:55:45] <alex_joni> heh, pitch black
[21:56:00] <ebo_> bye...
[21:56:05] <alex_joni> see you later
[21:56:15] <BigJohnT> close your eyes it is easier to see in the dark
[21:59:20] <dareposte> well that didn't work at all
[22:00:05] <alex_joni> dareposte: obviously not ;)
[22:01:09] <dareposte> hm
[22:01:15] <alex_joni> spindle-revs needs to come from the encoder component in your case
[22:01:26] <dareposte> obvious to you maybe :)
[22:02:19] <hugomatic> alex_joni: the distances are right, but the z axis is much faster than the x and the stepper stalls. Any other pointer?
[22:02:50] <hugomatic> alex_joni: forget that, I'm testing again
[22:02:51] <alex_joni> hugomatic: adjust MAX_VELOCITY
[22:02:59] <alex_joni> and MAX_ACCELERATION
[22:03:00] <hugomatic> yes:
[22:03:04] <alex_joni> for the Z-axis
[22:04:02] <dareposte> i guess i am reading the old documentation, because it doesn't have any encoder component
[22:04:13] <alex_joni> man encoder
[22:04:44] <dareposte> ahh there it is
[22:04:48] <dareposte> i found the 2.3 docs
[22:05:26] <BigJohnT> http://www.linuxcnc.org/docview/html//man/man9/encoder.9.html
[22:05:35] <hugomatic> alex_joni: thank you very much... it seems to be working perfectly
[22:06:07] <dareposte> so i need to "loadrt encoder"
[22:06:52] <BigJohnT> that is step one...
[22:07:59] <dareposte> then maybe a "net encoder.0.phase-A <= parport.0.pin-15-in-not"
[22:08:00] <dareposte> ?
[22:09:26] <alex_joni> dareposte: seems your slowly getting there ;)
[22:09:31] <alex_joni> hugomatic: cool, glad it works
[22:09:36] <dareposte> nope that wrecked it for me
[22:09:40] <alex_joni> the sherline configs will be part of 2.2.9
[22:09:56] <BigJohnT> you gotta addf the encoder to a thread
[22:10:30] <SWPLinux> dareposte: if you use stepconf to connect spindle-phaseA to a parport pin, then you can add a net command to the custom.hal file, something like "net spindle-phaseA encoder.0.index"
[22:10:50] <SWPLinux> the encoder will be loaded and partially connected by stepconf, you only have to add the additional connection
[22:10:58] <dareposte> brilliant
[22:11:24] <SWPLinux> have fun. I'm heading out for a walk on Waikiki beach :)
[22:11:33] <alex_joni> SWPLinux: enjoy ;)
[22:11:34] <BigJohnT> take pictures
[22:11:49] <SWPLinux> heh. see you later
[22:11:49] <alex_joni> any CNC machines around there?
[22:11:54] <SWPLinux> probably
[22:11:57] <alex_joni> heh
[22:12:09] <SWPLinux> lots of big shipping stuff, so they probably need repairs from time to time
[22:12:12] <SWPLinux> seeya
[22:15:07] <dareposte> SWPLinux: thanks for the tip
[22:22:16] <BigJohnT> * BigJohnT ponders shoveling snow or relaxing with a glass of cognac...
[22:24:56] <JymmmEMC> BigJohnT: Drink while riding the lawn mower with snow blower attachemnt
[22:26:36] <BigJohnT> I'm just wondering about the deck it is 1200 sq feet and the lawn mower won't climb the stairs
[22:27:10] <JymmmEMC> Got Winch?
[22:27:17] <BigJohnT> kinda hard to enjoy cognac on a lawnmower
[22:27:25] <BigJohnT> got backhoe
[22:27:30] <JymmmEMC> Not if you drink enough of it =)
[22:27:41] <JymmmEMC> Eh, back ho would work
[22:27:51] <BigJohnT> If I drink enough of it I forget my name
[22:27:58] <JymmmEMC> Who are you?
[22:28:10] <BigJohnT> dangedifiknow
[22:28:31] <JymmmEMC> If you wait long enough, it will melt
[22:29:02] <BigJohnT> that's what I'm hoping for :)
[22:29:39] <JymmmEMC> Have any pink prima-cord? 24K FPS =)
[22:30:33] <BigJohnT> all out but we have some tannerite
[22:30:43] <dareposte> all right, it seems to be one step further along now, but its running extremeeeely slow when its cutting the threads
[22:31:07] <dareposte> maybe it thinks the phase A has more than 1 ppr
[22:31:23] <alex_joni> right
[22:31:29] <alex_joni> you need to set the scale right
[22:32:09] <dareposte> would that be encoder.count?
[22:32:33] <alex_joni> man encoder
[22:32:37] <alex_joni> the use "/ scale"
[22:32:55] <alex_joni> encoder.N.position-scale float rw
[22:33:09] <JymmmEMC> Use the Force Luke!
[22:33:35] <dareposte> oh that's handy, all this time i didn't realize emc had its own man pages
[22:33:58] <alex_joni> they are even in a pdf for people who don't use man
[22:34:06] <alex_joni> or want to read them offline
[22:34:22] <alex_joni> dareposte:
http://www.linuxcnc.org/docview/devel/html
[22:34:26] <dareposte> man is glorious
[22:37:42] <dareposte> i set it to 1.00
[22:37:49] <dareposte> thanks
[22:38:00] <dareposte> i think i have to do something with position-interpolated too
[22:38:08] <dareposte> encoder.0.position-interpolated
[22:39:10] <dareposte> it runs now but is extremely jerky
[22:50:53] <JymmmEMC> No, rsync & ssh is glorious, man is nice.
[22:51:01] <JymmmEMC> s/is/are/
[22:52:22] <dareposte> holy cow it worked
[22:53:32] <dareposte> maybe need a bigger stepper
[22:56:13] <alex_joni> good night all
[22:56:20] <JymmmEMC> night alex