#linuxcnc | Logs for 2012-11-15

Back
[00:00:26] <mevon> I get a "joint 0 following error" just before that
[00:00:35] <andypugh> mevon: Is the Arduino still sending pulses?
[00:00:38] <JT-Shop> stepper?
[00:00:39] <mevon> I read that theres deboucing that could help
[00:01:00] <Loetmichel> mevon: did the machnie EVER run with this setup?
[00:01:02] <abetusk> I believe I am having problems with my X accuracy. You can see there is variable width on the vertical lines (but the horizontal lines look fine) here: http://imgur.com/LBEHT
[00:01:02] <andypugh> This would be so much easier if you had chosen known-good hardware
[00:01:08] <abetusk> any suggestions on how to debug this?
[00:01:31] <Loetmichel> sounds to me like a endswicht/limit switch set to wrong polarity or open
[00:01:49] <mevon> Loetmichel, it is running if I send the command on serial link
[00:02:15] -!- Simooon has quit [Remote host closed the connection]
[00:02:15] -!- logger[mah] has quit [Remote host closed the connection]
[00:02:22] -!- logger[mah] [logger[mah][email protected]] has joined #linuxcnc
[00:02:22] <JT-Shop> abetusk: that looks like a mechanical issue like back lash
[00:02:50] <andypugh> Or possibly flex.
[00:02:59] <abetusk> JT-Shop, It's a lead screw system on two linear rails with an anti backlash nut installed
[00:03:11] <JT-Shop> did you test it?
[00:03:13] -!- racycle has quit [Quit: racycle]
[00:03:22] <mevon> andypugh, Im gonna try a longer distance to move see if it stops at the same moment but I'm guessing the panic/estop state is cutting out the power
[00:03:36] -!- ybon has quit [Quit: WeeChat 0.3.8]
[00:03:37] <abetusk> JT-Shop, test it how?
[00:04:02] <andypugh> mevon: f-error is because the arduino is not reporting back position.
[00:04:30] <mevon> oh
[00:04:40] <JT-Shop> put an indicator on the axis and move in one direction till the indicator moves then make small moves in the other direction till the indicator starts to move
[00:04:47] <andypugh> Do you know for a fact that anyone has used this system? Everything I have ever believed about LinuxCNC indicates that a buffered USB device won't work.
[00:05:03] <abetusk> JT-Shop, ok, let me try
[00:05:22] <pfred1> I always thought LinuxCNC was anti-USB
[00:05:27] <mevon> andypugh, I know
[00:05:35] <mevon> pfred1, youre right
[00:05:38] <JT-Shop> I use USB with LinuxCNC
[00:05:52] <pfred1> JT-Shop for your keyboard and mouse?
[00:06:01] <andypugh> So do I, but not to control the steppers
[00:06:03] <JT-Shop> joypad
[00:06:08] <pfred1> OK that too
[00:06:43] <pfred1> PS/2 forever!
[00:06:52] <mevon> but parallel ports don not report their position on a step/dir
[00:07:15] <pfred1> that is my big quest anymore PS/2 optical wheel mice are rarer than hens teeth anymore
[00:07:38] <mevon> im hijacking this "net xpos-cmd axis.0.motor-pos-cmd => arduino.axis0-cmd"
[00:08:22] <andypugh> mevon: No, but the stepgen keeps track of the pulses it has made, and reports that back as feedback. You don't know that the motor has moved, but you know the correct number of pulses have gone.
[00:08:40] <andypugh> What do you have connected to axis.0.motor-pos-fb ?
[00:09:00] <mevon> its a python script
[00:09:07] <mevon> fb^
[00:09:09] <mevon> ?
[00:09:11] <mevon> humm
[00:09:15] <mevon> ill check
[00:10:04] <mevon> i thought since im running off the sim .hal it would be wired by default
[00:11:31] <mevon> I have Xpos
[00:12:11] <mevon> afk brb maybe we can discuss this another time thks anyways
[00:12:35] <mevon> when wife makes dinner i better eat...
[00:14:10] <andypugh> I wonder how it is possible to get an f-error with xpos wired directly back to the fb?
[00:15:30] <pfred1> forget USB for stepper control
[00:18:06] <JT-Shop> http://www.youtube.com/watch?v=soCh9U2TU48&feature=related
[00:18:35] <JT-Shop> seems the tool is always below center
[00:22:05] -!- rob_h has quit [Ping timeout: 246 seconds]
[00:26:55] <mevon> pfred1, what you just invested in old crippled PC that can barely handle ubuntu 8.04 ?
[00:27:18] <pfred1> mevon I don't run Ubuntu
[00:28:43] -!- mattions has quit [Ping timeout: 246 seconds]
[00:31:08] <mevon> in this forum post http://www.linuxcnc.org/index.php/english/forum/38-general-linuxcnc-questions/21127-getting-cannot-unhome-while-moving-errors-withou?start=12 "setp debounce.0.delay 25" is debouncing what actually?
[00:32:33] <mevon> I can put code in the arduino to send feedback, it knows where it is at all times, but what needs debouncing in the precedent example?
[00:32:38] <pfred1> all switch contacts bounce
[00:33:12] <pfred1> digital logic circuits see it as thousands of contact openings and closings
[00:33:16] <andypugh> JT-Shop: Did you see this tool? http://www.youtube.com/watch?v=IkFdJwW_0GI&feature=share&list=UUV_oqll5MjoOlQb-FJc8W5g
[00:33:48] <mevon> pfred1, on what signals?
[00:34:13] <pfred1> mevon any switch on any signal
[00:34:25] <pfred1> all mechanical switches have bounce
[00:34:29] <andypugh> mevon: I see no need for any debounce with your system
[00:34:33] <mevon> all switches are arduino strings sent over usb
[00:34:47] <pfred1> well those aren't mechanical switches
[00:35:39] <pfred1> that doesn't mean an arduino cannot transmit signal bounce though
[00:35:41] <mevon> I believe JRhode in the link had no mechanical switches neither
[00:35:57] <pfred1> because it can
[00:36:15] -!- asdfasd has quit [Ping timeout: 240 seconds]
[00:36:22] <mevon> pfred1, i wrote the code i know it doesnt send rogue random string on the usb serial com
[00:36:48] <pfred1> mevon so you've debounced your inputs with software?
[00:37:21] <mevon> i wonder if the simulation without my custom.hal reacts the same way
[00:37:50] -!- Fox_Muldr has quit [Ping timeout: 260 seconds]
[00:38:06] <mevon> pfred1, since its usb com, I only send new state of switches when it changes
[00:38:33] <pfred1> mevon switch bounce is by nature a state change
[00:38:36] <andypugh> If you can write Arduino code then you ought to be able to write a 1-step HAL to do what you want.
[00:38:54] <pfred1> off and on high and low
[00:38:57] <mevon> I know arduino, idk linuxcnc hal
[00:39:13] <andypugh> There are only 3 commands, how hard can it be?
[00:39:30] <pfred1> andypugh binary is only 2 states and that gets complicated
[00:40:20] <mevon> sry to in a situation where everyone dropped the ball
[00:40:44] <mevon> didnt want to make you irritated
[00:41:40] <andypugh> I am not irritated tonight. I might have been last night :-)
[00:41:48] <mevon> hal is not complicated, its all the sub module and inner workings that I dont understand
[00:41:58] <mevon> or the week before :P
[00:42:20] <andypugh> You don't need them. All you need is all the stuff that is in your two HAL files put into one rational HAL file.
[00:43:15] -!- Fox_Muldr [[email protected]] has joined #linuxcnc
[00:43:23] <pfred1> all you need is HAL
[00:43:41] <pfred1> mevon andypugh is the 5th Beatle
[00:44:09] <mevon> I bet your a big star too :P
[00:44:21] <pfred1> nah i wanted to be but I have a tin ear
[00:45:00] -!- Valen has quit [Quit: Leaving.]
[00:47:48] <mevon> andypugh, you think the links made and remade with the simulation machine is what somehow creates a need for feedback and since i do not update or know how to update Xpos, it doesnt work
[00:48:36] <andypugh> Xpos is a signal. I assume that is connected to axis.0.motor-pos-cmd?
[00:49:01] <andypugh> But if it is also connected to motor-pos-fb an f-error should be impossible,
[00:49:13] <andypugh> do you still have stepgens being loaded?
[00:51:40] <mevon> andypugh, its not connected: axis.0.motor-pos-cmd ==> xpos-cmd
[00:51:51] <andypugh> Ah
[00:52:08] <andypugh> That would do it
[00:52:49] <mevon> then I have arduino.axis0-cmd <== xpos-cmd
[00:52:56] <andypugh> Every net command has a signal immediately after "net" That can be called anything you like.
[00:53:45] <andypugh> You can then have zero or more "pins" but only one pin connected to any signal can be a "writer" or output pin.
[00:53:51] <mevon> so the feedback is not wired to the right signal
[00:53:59] <andypugh> The signal can appear in as many net commands as you want
[00:54:01] -!- LeelooMinai has quit [Remote host closed the connection]
[00:54:40] <andypugh> arduino.axis0-cmd <== xpos-cmd isn't right. It needs to have the signal first.
[00:55:07] -!- ynos_ [[email protected]] has joined #linuxcnc
[00:55:14] <ynos_> Hello all
[00:55:19] <mevon> somewhere i should have axis.0.motor-pos-cmd-fb <== xpos-cmd
[00:55:22] <mevon> ?
[00:55:44] <mevon> where is Xpos from?
[00:55:47] <andypugh> Yes, but no. The signal name is the forst thing after the net command.
[00:55:56] <mevon> ok
[00:56:13] <andypugh> xpos is just a signal. Possibly an unused one
[00:56:34] <andypugh> As I keep saying, you need to rationalise and sort out your HAL file.
[00:56:57] <pfred1> KISS
[00:57:00] -!- adb has quit [Ping timeout: 252 seconds]
[00:57:15] <pfred1> Keep It Simple Silly
[00:57:20] <mevon> :P
[00:59:09] <ynos_> Hey, i just came into a haas TM1 and was wondering if LinuxCNC can copy gcode over the serial port via xmodem? i am looking for something to use as a toolpath designer and someone said i should give this a look.
[01:00:10] <mevon> linuxcnc interprets gcode
[01:00:18] <ynos_> it is building right now, but thought i'd come pester y'all for a few and re-familiarize myself with the irc undebelly
[01:00:28] <ynos_> ahh, so it doesnt generate gcode?
[01:00:33] <pfred1> ynos_ there are a number of terminal applications in Linux I'm not sure if xmodem is the best
[01:00:45] <mevon> it can i believe from DXF
[01:03:25] <ynos_> hmm.
[01:03:41] <ynos_> wow.. how many GUIs are there..
[01:03:56] <andypugh> It's possible that parts of LinuxCNC could send G-code over serial, but there are probably far simpler ways.
[01:04:00] -!- asdfasd [[email protected]] has joined #linuxcnc
[01:04:24] <andypugh> LinuxCNC normally reads G-code and controls the machine.
[01:04:27] <pfred1> I thought he just wanted to process then send data over the serial line
[01:04:50] <ynos_> my options right now are manual entry(ugh), floppy drive(would have to install one on a machine somewhere) and serial.
[01:05:02] <pfred1> serial is your best bet
[01:05:05] <ynos_> yup
[01:05:22] <andypugh> pfred1: Yes, quite. You could use Axis for the preview, then get rid of just about everything downstream.
[01:05:25] -!- ve7it [[email protected]] has joined #linuxcnc
[01:05:32] <pfred1> yeah LInux can control serial lines like nobody's business
[01:05:44] <pfred1> best in class
[01:06:09] <ynos_> i copied a little prog down using hyperterm today.
[01:06:18] <ynos_> was stoopid easy
[01:06:31] <pfred1> was a long time ago I messed around with any of that though back in the dial up days
[01:06:34] <ynos_> i am just a bit intimidated by creating toolpaths
[01:07:33] -!- mutilator has quit [Ping timeout: 248 seconds]
[01:08:01] <andypugh> There are some toolpath generation packages (it's generally called CAM )
[01:08:03] <pfred1> I kind of recall a program called minicom though
[01:08:09] -!- mutilator [[email protected]] has joined #linuxcnc
[01:08:19] <pfred1> it might do what you want
[01:08:49] <ynos_> yup, the only reason i used hyperterm is the only laptop with serial i had with me at the time was running xp
[01:08:53] <andypugh> I would think you could just copy the file to the LPT device?
[01:09:19] <mevon> on linux you can use screen command
[01:09:28] <mevon> in terminal
[01:09:35] <ynos_> cli isnt an issue, would just be badass if it could be easy enough my grandpa(old machine shop guy) could come over and not have to use cli.
[01:10:05] <pfred1> minicom is pretty clunky
[01:11:05] <ynos_> looks like a simple script tied in with 'sx' would work.
[01:12:05] <ynos_> sx and cu
[01:12:42] <kwallace> Does tool orientation, front and back angle in the lathe tool table do anything, or is it just to improve the tool graphic in AXIS?
[01:13:21] <andypugh> Just preview AFAIK. No gouging detection or anything.
[01:17:02] <kwallace> andypugh: That's what I'm thinking also. I'm wondering if orientation could be handy to detect whether to auto-create g-code on the near or far side of the workpiece.
[01:17:11] -!- asdfasd has quit [Ping timeout: 255 seconds]
[01:17:17] -!- sumpfralle has quit [Ping timeout: 268 seconds]
[01:17:18] <ynos_> hmm.. am i missing something here? i run linuxcnc and it comes up with a configurator.. then nothing, should it be starting something after that?
[01:17:25] <andypugh> Possibly, yes.
[01:18:21] <andypugh> ynos_: Ignore the configurator initially, start LinuxCNC and then choose one of the "sim" demo configs
[01:18:28] <ynos_> ahh, was the configurator setting something other than coms?
[01:18:28] <mevon> andypugh, how can I load AXIS in the first place, seems if I take my files from stepconf wiz, everything from axis is missing
[01:18:42] <ynos_> i was using the sim/axis demo config
[01:19:05] <ynos_> there we go
[01:19:06] <andypugh> ynos_: Then you should get a GUI and stuff.
[01:19:24] <ynos_> i had to run it 3 times.. then it worked.
[01:19:28] <andypugh> mevon: I don't even understand the question
[01:19:34] <ynos_> are there any services it relies on?
[01:19:57] <andypugh> ynos_: Well, it needs the right kernel. How did you install?
[01:20:46] <mevon> somehow HAL is not loading any AXIS components
[01:20:47] <ynos_> used this - http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually
[01:21:17] <andypugh> Ah, OK, that ought to work (at least a bit)
[01:21:39] <andypugh> mevon: What do you mean by AXIS components?
[01:22:02] <mevon> i get this error at startup "custom.hal:85: Pin 'axis.0.neg-lim-sw-in' does not exist"
[01:22:08] <andypugh> Do you mean AXIS (the GUI) or "axis" the motion pins?
[01:22:22] <pfred1> that is confusing
[01:22:51] <andypugh> Why do you persist on messing about with a custom.hal?
[01:23:07] <mevon> why not
[01:23:14] <pfred1> some moths are just drawn to the flames
[01:23:21] <mevon> if i want to learn i need something to learn on
[01:23:36] <mevon> how have you leanr HAL?
[01:23:45] <andypugh> I am going to say this one more time and go to bed. Go through the HAL by hand making one, consistent, functional HAL file
[01:23:49] <pfred1> I ask andy :)
[01:24:00] <mevon> andypugh, where can I learn to do that
[01:24:29] <mevon> cmon stop being negative
[01:25:06] <andypugh> The HAL manual would be a reasonable start. http://www.linuxcnc.org/docs/html/hal/basic_hal.html and http://www.linuxcnc.org/docs/html/hal/tutorial.html
[01:25:08] -!- dway has quit [Quit: dway]
[01:25:48] <mevon> ok so where are listed all the components and links I need to make a machine?
[01:25:54] -!- the_wench has quit [Ping timeout: 264 seconds]
[01:25:54] -!- archivist has quit [Ping timeout: 264 seconds]
[01:26:23] <mevon> I dont think anyone is born knowing these things
[01:26:28] <kwallace> At one time there was a HAL tutorial that started at the command line and had one load a thread, load a component, attach function to the thread and so on. It may still be around. ... looking.
[01:27:18] <andypugh> All the components and links you need should be in the two HAL files. I am just saying that you need to combine them and delete the parallel port cruft.
[01:27:41] <mevon> Im trying to do just that now
[01:28:08] -!- andypugh has quit [Quit: andypugh]
[01:28:17] <mevon> thing is i get error about things i dont even know of
[01:28:32] <mevon> or even knew they existed
[01:28:48] <pfred1> google is your friend
[01:29:11] <mevon> and sry but I come here when my friend fails me
[01:31:45] <kwallace> http://linuxcnc.org/docs/LinuxCNC_Integrator_Manual.pdf and http://linuxcnc.org/docs/HAL_User_Manual.pdf
[01:32:07] <mevon> kwallace, thks really appreciated
[01:33:58] <pfred1> andy is still the god of HAL
[01:34:08] <kwallace> the "axis.0 " message says it can't find an axis.0. It may for non obvious reasons because the axis.x stuff is created, guessing off hand, by "loadrt motion"?
[01:35:48] <kwallace> I haven't had to mess with this for a while. The [AXIS_x] sections in the .ini also help create the axis.x's.
[01:36:16] -!- Newtonianb has quit [Ping timeout: 246 seconds]
[01:38:09] <mevon> ok
[01:38:42] <pfred1> grep -n axis.x *.ini
[01:38:54] <mevon> so its from a motion component?
[01:39:24] <kwallace> Oops I think motion and axis functions are loaded by "loadrt [EMCMOT]EMCMOT base_period_ns..." then the .ini file is checked for [AXIS_x] entries.
[01:39:55] <pfred1> then grep -in
[01:40:33] -!- archivist [[email protected]] has joined #linuxcnc
[01:41:15] <mevon> ok kwallace i see that in core_sim.hal too
[01:41:33] <mevon> got some ddt hypot comp and or2
[01:41:44] <mevon> bet those are for calculating
[01:42:46] <mevon> ok so I was using servos
[01:42:50] <mevon> this is bad
[01:42:55] <mevon> i have steppers
[01:43:07] <mevon> they dont give feedback
[01:43:08] -!- LeelooMinai [[email protected]] has joined #linuxcnc
[01:43:45] <pfred1> there is that
[01:43:50] <kwallace> I'm not sure it's bad. The motion setup is the same for servos and steppers.
[01:44:28] <kwallace> In that with steppers the feedback is linked back the the feed back input to motion.
[01:45:32] <kwallace> With servos the feedback loop goes through encoders/encoder component first.
[01:48:05] <mevon> ok so if I have no good feedback signal created, its normal that I get errors
[01:48:32] <mevon> loadrt stepgen step_type=0,0,0
[01:48:46] <mevon> creates 3 stepmotors?
[01:49:09] <kwallace> In the core stepper.hal :
[01:49:11] <kwallace> # connect position feedback from step generators
[01:49:12] <kwallace> 26 # to motion module
[01:49:12] <kwallace> 27 net Xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
[01:51:33] <mevon> hummm
[01:51:34] <kwallace> loadrt stepgen creates three step generators. These need to get input from motion and output goes to the motors and also to position feedback.
[01:51:49] <mevon> ok
[01:52:02] -!- pfred1 has quit [Quit: Lost terminal]
[01:52:26] <kwallace> The more I recall the trickier it gets, it may take a while to get a hang of it.
[01:57:50] <kwallace> I'm looking at this:
[01:57:52] <kwallace> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=configs/common/core_stepper.hal
[02:01:20] <kwallace> Two loadrt's are used to load motion and the step generators. Then the functions in the components are connected to threads using addf's.
[02:01:41] <kwallace> See at the bottom what the functions are:
[02:01:48] <kwallace> http://www.linuxcnc.org/docs/2.5/html/man/man9/motion.9.html
[02:02:18] -!- theos [theos!~theos@unaffiliated/theos] has joined #linuxcnc
[02:03:27] -!- FinboySlick [[email protected]] has joined #linuxcnc
[02:03:56] <kwallace> Also here:
[02:03:59] <kwallace> http://www.linuxcnc.org/docs/2.5/html/man/man9/axis.9.html
[02:06:32] <mevon> my trouble is, Im doing this
[02:06:52] <mevon> net Xpos axis.0.motor-pos-cmd => axis.0.motor-pos-fb ddt.0.in
[02:06:55] <mevon> then i do that
[02:07:12] <mevon> net xpos-cmd axis.0.motor-pos-cmd => arduino.axis0-cmd
[02:07:25] <mevon> theres an unlink between
[02:07:42] <mevon> #unlinkp axis.0.motor-pos-cmd
[02:07:47] <mevon> but i commented it out
[02:08:17] <mevon> I should end up with
[02:08:32] <mevon> net Xpos axis.0.motor-pos-cmd => axis.0.motor-pos-fb ddt.0.in arduino.axis0-cmd
[02:08:33] <mevon> ?
[02:12:55] <kwallace> I haven't been following what you are doing with the Arduino.
[02:16:50] <mevon> i will not tell you sry because if i do you will stop helping me :P
[02:17:15] <mevon> specially if I say Im making an usb cnc controller
[02:17:24] <mevon> with an arduino
[02:18:39] <kwallace> I looked at the core-sim.hal,
[02:18:44] <kwallace> 28 # create HAL signals for position commands from motion module
[02:18:45] <kwallace> 29 # loop position commands back to motion module feedback
[02:18:45] <kwallace> 30 net Xpos axis.0.motor-pos-cmd => axis.0.motor-pos-fb ddt.0.in
[02:18:45] <kwallace> 31 net Ypos axis.1.motor-pos-cmd => axis.1.motor-pos-fb ddt.2.in
[02:19:31] <mevon> so if I have a custom.hal in my .ini and I have this line
[02:19:35] <kwallace> So it looks like you are tapping the Arduino to an existing signal.
[02:19:46] <mevon> net xpos-cmd axis.0.motor-pos-cmd => arduino.axis0-cmd
[02:20:15] -!- educasoft has quit []
[02:20:16] <mevon> think it messes up my axis.0.motor-pos-cmd
[02:20:31] <mevon> and feedback is lost
[02:21:08] <kwallace> Do you have "xpos" and "xpos-cmd" ?
[02:21:49] <mevon> yes i just did blindly what was told to do
[02:23:36] <mevon> and also because the example is with stepgen not servo-thread
[02:24:13] <mevon> but Im guessing itd make more sens with servos
[02:24:44] <mevon> since Im not really stepping but sending a position command
[02:25:14] <mevon> im not with step/dir drivers
[02:25:32] <mevon> I have l298 hbridge
[02:25:44] <mevon> directly on the arduino
[02:28:19] <mevon> guess id have to send feedback when pos is reached or something like that
[02:29:20] <kwallace> The command doesn't care if it is commanding a stepper or servo at this point.
[02:30:38] -!- theos has quit [Read error: Operation timed out]
[02:31:34] -!- theos [theos!~theos@unaffiliated/theos] has joined #linuxcnc
[02:31:50] <kwallace> I would tend to just try to send the command to the Arduino and either also connect the feedback to the axis feedback or have the Arduino send feedback. But I supposed that is what you have tried to do.
[02:34:33] -!- kmiyashiro has quit [Quit: kmiyashiro]
[02:37:07] <kwallace> Can you get a stock sim or stepper configuration running? Then just add the Arduino command input pin to the end of the existing xpos signal line?
[02:40:36] <mevon> kwallace, exactly what Im working on
[02:41:04] <mevon> I started off the EMC2Arduino project
[02:41:20] <mevon> mod it to add my own stepper drivers
[02:41:32] <mevon> now working off the switches
[02:41:56] <ynos_> thanks for your help earlier, i am off to bed! i will likely be in here again some other time.
[02:42:13] -!- ynos_ has quit [Quit: leaving]
[02:42:16] <mevon> in the project, its said to stepconf wiz an ordinary parallel port config with your settings
[02:42:24] <mevon> then add the custom.hal et voila
[02:42:28] <mevon> but not really
[02:42:43] <mevon> ynos_ np gn
[02:43:01] <mevon> too late lols
[02:43:59] <mevon> but then the custom.hal doesnt work with the configs generated by stepconf
[02:44:22] <mevon> seems no motion module is created by default
[02:44:46] <mevon> but then again maybe Im wrong about that
[02:45:18] <mevon> maybe because I didnt unlink before
[02:45:29] <mevon> as I commented it out
[02:46:21] <mevon> but to me seems more logic getting the simulation
[02:46:39] <mevon> then modify to work with arduino hijacks
[02:46:46] <mevon> I mean HAL
[02:47:45] <mevon> Im still wondering what are things like servo-thread and CYCLE_TIME
[02:48:39] <kwallace> I don't know anything about the EMC2Arduino project, but adding a custom.hal doesn't seem to be a problem if you know how it fits in.
[02:48:59] -!- skunkworks [skunkworks!~chatzilla@str-broadband-ccmts-ws-26.dsl.airstreamcomm.net] has joined #linuxcnc
[02:51:04] <mevon> need to read more on the net command
[02:51:34] <kwallace> Everything starts with the .ini file, it has a section to call .hal files. If you want to add custom.hal just add the call out to the .ini.
[02:53:24] <kwallace> As far as threads go, thy are the clock ticks that cycles the functions. The functions may be loaded, but fi thy are not addf'd to a servo or base thread they won't get run.
[02:54:54] <kwallace> net ties a single signal name to one output pin and any input pins.
[02:55:00] <kwallace> See, simple.
[02:55:47] <mevon> lol really thks
[02:55:55] <mevon> need info on unlinkp
[02:56:15] <mevon> its unlinks every net containing the signal?
[02:56:57] <kwallace> I think it only unlinks a single pin.
[02:57:59] <mevon> so every other pins formerly connected to it remains the same?
[03:01:06] <mevon> ill figure that out
[03:01:54] <kwallace> I don't know for sure. I see something about "Unlinkp <pin name 1> <pin name 2> " by searching the wiki.
[03:02:13] <kwallace> I haven't used it.
[03:07:19] <kwallace> I'd pastebin your .ini, .hal and any error messages and link it to a message on the e-mail list. This way we can see the context the problem lives in.
[03:07:30] <kwallace> Gotta go eat.
[03:07:35] <mevon> ok thks man
[03:07:41] <mevon> np take it easy
[03:07:59] <kwallace> Good Luck
[03:08:01] <mevon> ill temper the isht out of it
[03:08:15] <mevon> :P
[03:15:36] -!- Brandonian has quit [Quit: Brandonian]
[03:22:24] -!- FinboySlick has quit [Remote host closed the connection]
[03:36:54] -!- theos has quit [Read error: Connection timed out]
[03:37:39] -!- joe9 has quit [Quit: leaving]
[03:38:04] -!- theos [theos!~theos@unaffiliated/theos] has joined #linuxcnc
[03:48:43] <r00t4rd3d> http://i.imgur.com/6ZEbv.jpg
[03:50:56] <mevon> gn everyone thanksfor the help
[03:51:00] -!- mevon has quit [Quit: Ex-Chat]
[03:52:58] -!- Keknom has quit [Quit: Leaving.]
[04:14:23] <abetusk> JT-Shop, still around?
[04:19:03] <r00t4rd3d> i highly doubt it
[04:20:22] <r00t4rd3d> he is normally afk by 8/9
[04:20:36] <abetusk> so I've put a dial indicator on the spindle bit and have set it to go back and forth between x0 and x-0.254 and I'm noticing a "drift"
[04:21:45] <abetusk> it goes from 0 to 10-11mils (which is already bad if it goes beyond 10) but then it starts drifting from the 0 mark. I've been running it for a minute and it's already 1.5 mils further away from 0 then when it started
[04:21:52] <jdh> https://picasaweb.google.com/m/viewer?dc=gorganic&source=mobileproducts#photo/112430417093824344570/5754485947799001697/5810889733017829058
[04:21:56] <jdh> craigslist $50
[04:22:11] <r00t4rd3d> nothing pictured
[04:22:24] <r00t4rd3d> Scrapbook Photos (0)
[04:22:37] <abetusk> what's up with that jdh?
[04:23:32] <jdh> https://picasaweb.google.com/m/zoom?dc=gorganic&source=mobileproducts&uname=112430417093824344570&aid=5754485947799001697&id=5810889733017829058&viewportWidth=320&viewportHeight=416
[04:23:42] <Tom_itx> abetusk, are you loosing steps?
[04:23:44] <jdh> how about that?
[04:24:09] <abetusk> jdh, did you do some exif snooping?
[04:24:14] <jdh> weird tablet cut paste
[04:24:25] <abetusk> Tom_itx, I'm going slow, but otherwise I'm just not sure
[04:24:36] <jdh> no. I bought them.
[04:24:39] <Tom_itx> scale set right?
[04:26:12] <Tom_itx> it should at least return to the start point even if it doesn't make it to the destination. the difference in the destination value is your backlash compensation value
[04:26:32] <abetusk> Tom_itx, so you suspect I'm loosing steps?
[04:26:47] <Tom_itx> no idea
[04:26:54] <Tom_itx> maybe something is loose
[04:27:17] <Tom_itx> make sure the axis is tight when you set the zero point
[04:27:46] <Tom_itx> ie, move in a positive direction then set it then move away from it in a negative direction and take the measurement
[04:28:50] <Tom_itx> if it still drifts, you are loosing steps or something is amiss in the axis setup
[04:29:07] <Tom_itx> pulley driven, it could be a loose pulley
[04:37:09] <abetusk> it's lead screw
[04:37:52] <Tom_itx> couplers good and tight?
[04:39:31] <abetusk> I just retightened them...
[04:40:06] <abetusk> I'm also getting drift in the y direction. It's not as bad, only .5 mil and it seems to be holding steady, but still...
[04:40:09] <Tom_itx> dial indicator secured tight?
[04:40:41] <abetusk> I have two metal vises on them...
[04:40:50] <abetusk> tried to make it tight as I could
[04:41:02] <Tom_itx> tied to the spindle?
[04:41:18] <Tom_itx> is the spindle turning slightly when you measure it?
[04:41:56] <abetusk> the dial indicator is tied to the table
[04:42:07] <abetusk> The spindle does not appear to be moving
[04:42:38] <abetusk> arg...maybe it is the dial indicator not secured tightly enough. I just pushed it a little and it threw it out of whack
[04:42:49] <Tom_itx> :)
[04:43:01] <Tom_itx> doesn't take much
[04:43:17] <abetusk> how "should" one secure the dial indicator to test?
[04:43:46] -!- eclaesson has quit [Quit: Page closed]
[04:43:52] <Tom_itx> i put my last word in the spindle when i did mine
[04:44:05] <Tom_itx> used a block secured in a vise to butt up against it
[04:44:17] <Tom_itx> backed off from it and told it to return then measured the difference
[04:58:45] -!- psha [[email protected]] has joined #linuxcnc
[05:02:27] -!- the_wench [[email protected]] has joined #linuxcnc
[05:06:29] -!- kb8wmc has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121025205401]]
[05:07:46] -!- Theta9 [[email protected]] has joined #linuxcnc
[05:33:51] -!- Aero-Tec has quit [Read error: Connection reset by peer]
[05:34:49] -!- Aero-Tec [[email protected]] has joined #linuxcnc
[05:42:22] -!- psha has quit [Quit: Lost terminal]
[05:50:17] -!- mhaberler [[email protected]] has joined #linuxcnc
[06:02:10] -!- Fox_Muldr has quit [Ping timeout: 260 seconds]
[06:03:17] -!- Thetawaves [[email protected]] has joined #linuxcnc
[06:03:36] -!- Fox_Muldr [[email protected]] has joined #linuxcnc
[06:27:30] -!- Thetawaves has quit [Quit: This computer has gone to sleep]
[06:31:29] -!- vladimirek [[email protected]] has joined #linuxcnc
[06:44:12] -!- ve7it has quit [Remote host closed the connection]
[06:47:20] -!- theos has quit [Disconnected by services]
[06:47:41] -!- theos [theos!~theos@unaffiliated/theos] has joined #linuxcnc
[06:57:12] -!- kwallace [[email protected]] has parted #linuxcnc
[06:59:09] -!- ewidance has quit [Quit: ewidance]
[07:04:13] -!- DJ9DJ [DJ9DJ!~Deejay@unaffiliated/dj9dj] has joined #linuxcnc
[07:04:35] <DJ9DJ> moin
[07:25:57] -!- DJ9DJ has quit [Quit: bbl]
[07:30:44] -!- holst [[email protected]] has joined #linuxcnc
[07:46:17] -!- holst has quit [Quit: Leaving]
[07:57:16] -!- emel has quit [Excess Flood]
[07:58:23] -!- kmiyashiro has quit [Quit: kmiyashiro]
[08:02:20] -!- mhaberler has quit [Quit: mhaberler]
[08:03:55] -!- psha[work] [psha[work][email protected]] has joined #linuxcnc
[08:05:30] -!- mhaberler [[email protected]] has joined #linuxcnc
[08:15:49] -!- holst [[email protected]] has joined #linuxcnc
[08:21:15] -!- toastydeath has quit [Read error: Connection reset by peer]
[08:26:41] -!- asdfasd [[email protected]] has joined #linuxcnc
[08:32:19] <Loetmichel> mornin'
[09:00:34] -!- b_b has quit [Changing host]
[09:06:42] -!- kmiyashiro has quit [Client Quit]
[09:15:57] -!- DJ9DJ [DJ9DJ!~Deejay@unaffiliated/dj9dj] has joined #linuxcnc
[09:16:04] <DJ9DJ> remoin
[09:19:07] -!- kmiyashiro has quit [Client Quit]
[09:21:13] -!- Valen [[email protected]] has joined #linuxcnc
[09:24:22] -!- Cylly [[email protected]] has joined #linuxcnc
[09:27:01] -!- Loetmichel has quit [Ping timeout: 265 seconds]
[09:29:55] -!- rob_h [[email protected]] has joined #linuxcnc
[09:31:30] -!- the_wench has quit [Ping timeout: 246 seconds]
[09:31:35] -!- archivist has quit [Ping timeout: 240 seconds]
[09:35:49] -!- the_wench [[email protected]] has joined #linuxcnc
[09:41:46] -!- archivist [[email protected]] has joined #linuxcnc
[09:54:47] -!- theos has quit [Disconnected by services]
[09:55:05] -!- theos [theos!~theos@unaffiliated/theos] has joined #linuxcnc
[09:55:58] -!- Cylly has quit []
[09:56:14] -!- Loetmichel [[email protected]] has joined #linuxcnc
[09:56:30] -!- maximilian_h [[email protected]] has joined #linuxcnc
[09:56:32] -!- maximilian_h has quit [Client Quit]
[09:57:59] -!- sliptonic [[email protected]] has parted #linuxcnc
[10:13:27] -!- alpha1125 has quit [Ping timeout: 276 seconds]
[10:15:42] -!- alpha1125 [[email protected]] has joined #linuxcnc
[10:29:26] -!- vladimirek has quit [Ping timeout: 255 seconds]
[10:30:25] -!- vladimirek [[email protected]] has joined #linuxcnc
[10:30:51] -!- seb_kuzminsky has quit [Ping timeout: 260 seconds]
[10:30:55] -!- hm2-buildmaster_ has quit [Ping timeout: 240 seconds]
[10:31:05] -!- linuxcnc-build has quit [Ping timeout: 260 seconds]
[10:32:32] -!- sumpfralle [[email protected]] has joined #linuxcnc
[10:35:06] -!- mhaberler has quit [Quit: mhaberler]
[10:44:10] -!- mhaberler [[email protected]] has joined #linuxcnc
[11:32:30] -!- Simooon [[email protected]] has joined #linuxcnc
[11:58:50] -!- holst has quit [Ping timeout: 246 seconds]
[12:01:37] -!- holst [[email protected]] has joined #linuxcnc
[12:03:26] -!- TekniQue has quit [Ping timeout: 260 seconds]
[12:04:05] -!- TekniQue [TekniQue!baldur@unaffiliated/teknique] has joined #linuxcnc
[12:09:13] -!- bmwyss has quit [Read error: Connection reset by peer]
[12:11:19] -!- MarkusBec has quit [Excess Flood]
[12:12:34] -!- MarkusBec [[email protected]] has joined #linuxcnc
[12:31:59] <jthornton> anyone know how to use the teach-in.py script that is in the Axis directory
[12:43:55] <cncbasher_> jt .. you saw the post on the forum too ! .. as far as i can see you jog to position needed and press P and this stores the corrd in a txt file
[13:02:54] <jthornton> so it is loaded with Axis?
[13:06:41] -!- dooley has quit [Quit: Page closed]
[13:18:07] -!- Valen has quit [Quit: Leaving.]
[13:33:39] <cncbasher_> i'd guess it's loaded as a terminal app
[13:35:09] <cncbasher_> it's an exe i
[13:35:31] <cncbasher_> iv'e just ran it
[13:36:08] <cncbasher_> move to position press learn and select if you want joint or world mode
[13:37:15] <cncbasher_> entrys show up in terminal window , so can be saved as txt file at the end
[13:40:39] -!- Nick001 has quit [Ping timeout: 256 seconds]
[13:41:03] -!- Nick001 [[email protected]] has joined #linuxcnc
[13:45:00] -!- mk0 [[email protected]] has joined #linuxcnc
[13:56:08] -!- b_b has quit [Changing host]
[13:56:20] -!- Simooon has quit [Remote host closed the connection]
[13:57:04] -!- gmouer [[email protected]] has joined #linuxcnc
[14:04:35] <gmouer> servo question? On a brushed dc, lets say running off a battery, and monitoring the velocity with a scope, would you expect the velocity to be a clean straight line, or show sine wave type small variances? I am thinking of the brushes "pulsing" each winding on the armature there would be small "pulsations" resulting in the velocity. Trying to get my head wrapped around this stuff
[14:04:53] <gmouer> oh yea, no servo drive, just battery power
[14:05:21] <jthornton> what is the command to start it? I tried teach-in and teach-in.py
[14:06:12] <cncbasher_> jt just click it or ./teachin.py should do
[14:06:32] <jthornton> you running it from a RIP?
[14:06:41] <cncbasher_> it's set as run exe
[14:07:07] <cncbasher_> no need to run axis , it's stand alone
[14:07:23] -!- FinboySlick [[email protected]] has joined #linuxcnc
[14:07:42] <cncbasher_> i just ran from the directory it was in
[14:08:03] <jthornton> ah, I was trying to figure out if it got installed
[14:08:15] <cncbasher_> ok
[14:08:38] <cncbasher_> would need to be modified for 5 axis though
[14:10:41] <cncbasher_> arh i think it would set the axis as to your installation so would do as many axis as you have set up
[14:12:29] <cncbasher_> a timer and an auto save would help , a sod if you closed the window after half an hours work
[14:12:38] -!- Tugge has quit [Ping timeout: 246 seconds]
[14:15:22] -!- gmouer has quit []
[14:16:09] -!- holst has quit [Quit: Leaving]
[14:21:25] <mrsun> hmm i wonder if i should buy a new hd just for haiku =)
[14:22:41] <mrsun> would be neat with ssd for haiku
[14:22:46] <mrsun> doh :P
[14:22:48] <mrsun> wrong channel ;P
[14:29:42] -!- mk0 has quit [Read error: Connection reset by peer]
[14:44:06] <pcw_home> haiku, hows Mrs Ku?
[14:46:35] -!- pjm [[email protected]] has joined #linuxcnc
[14:46:35] -!- pjm__ has quit [Read error: Connection reset by peer]
[14:46:37] -!- yuvipanda has quit [Quit: yuvipanda]
[14:51:54] -!- psha[work] has quit [Quit: Lost terminal]
[14:57:23] -!- yuvipanda has quit [Client Quit]
[14:57:23] -!- wboykinm has quit [Read error: Connection reset by peer]
[15:12:27] <pcw_home> gmouer: you might see some small variations (especially with cheap 3-5 segment commutator motors)
[15:12:29] <pcw_home> but these would be filtered by the rotor inertia
[15:12:31] <pcw_home> on a brush motor, each armature winding generates a sine wave voltage,
[15:12:32] <pcw_home> but the commutator selects the winding at the peak of the sine wave
[15:12:34] <pcw_home> If you want to see this, run a DC brush motor as a generator, the ripple is apparent
[15:14:15] -!- syyl [[email protected]] has joined #linuxcnc
[15:15:39] -!- mazafaka [mazafaka!~Mufasa@unaffiliated/mazafaka] has joined #linuxcnc
[15:15:44] <mazafaka> https://www.youtube.com/watch?feature=player_embedded&v=je4qV7fsVvU
[15:16:55] -!- tjb1 [[email protected]] has joined #linuxcnc
[15:22:43] -!- syyl has quit [Quit: Leaving]
[15:23:15] -!- mattions has quit [Ping timeout: 240 seconds]
[15:32:35] -!- pingufan [[email protected]] has joined #linuxcnc
[15:33:56] -!- psha [[email protected]] has joined #linuxcnc
[15:43:10] -!- pingufan has quit [Quit: Konversation terminated!]
[15:45:41] -!- tjb1 has quit [Quit: tjb1]
[16:01:10] -!- adb [[email protected]] has joined #linuxcnc
[16:01:52] -!- abetusk has quit [Quit: Leaving]
[16:04:00] -!- horatio_cromwell has quit [Quit: Leaving.]
[16:04:21] -!- zzolo has quit [Quit: zzolo]
[16:06:28] -!- ktchk [[email protected]] has joined #linuxcnc
[16:07:17] -!- mattions has quit [Ping timeout: 248 seconds]
[16:08:15] -!- pjm has quit [Ping timeout: 260 seconds]
[16:09:55] -!- pjm [[email protected]] has joined #linuxcnc
[16:11:40] -!- kmiyashiro has quit [Quit: kmiyashiro]
[16:18:43] -!- IchGuckLive [[email protected]] has joined #linuxcnc
[16:18:48] <IchGuckLive> Hi all B9
[16:20:56] <IchGuckLive> PCW is there a leeak of supplie to austria ?
[16:34:48] <ktchk> Hi any one working with plasma table?
[16:35:27] <Tom_itx> at least a couple are
[16:40:53] <IchGuckLive> tjb is on the vmashine
[16:43:01] <roh> i wonder how what people use for small closed-loop stepper machines.. any suggestions about such systems?
[16:43:56] <roh> i want to retrofit our china-co2 laser with emc2 soon.. ordered some stepperdrivers with enable inputs since i want to keep the 'manual zeroing' capability
[16:46:12] <roh> i'm still searching for fitting encoders. i will use the steppers in 1/8 or 1/16th microstepping mode and they are 200steps/rotations.. does that mean i need 3200ppr encoders? or will any multiple of 200 already give useable results? (staying withing 1/10th of a mm when it comes to absolute positioning is enough, relative ones should be ok even without encoders i guess
[16:46:45] <ktchk> Tom_itx: what thc is better?
[16:46:57] -!- ybon has quit [Quit: WeeChat 0.3.8]
[16:48:33] <IchGuckLive> roh: there are steppers with encoders otherwise you might fit a Gear
[16:48:46] <IchGuckLive> the close loop is only on the error
[16:48:53] <IchGuckLive> there is no correction
[16:49:28] <IchGuckLive> roh you can do it with a arduino in beetween
[16:49:41] <IchGuckLive> that checks the system out and corrects
[16:50:03] <roh> IchGuckLive: i want to have a 'unlock' button like in the china sw and switch off power to the steppers and be able to manual move the laserhead... but emc should register it still
[16:50:40] <roh> ive found how to use encoders in stepper systems in general, but i am not sure about the details of the implementation.
[16:51:23] <IchGuckLive> only one axis
[16:52:10] <IchGuckLive> then just count in the pulses and the dir and set the new axis value
[16:52:12] <roh> the best would be to keep the current steppers (nema 17 i guess) which have axis on both sides and one end is unused or atleast there is space on the axis
[16:52:46] <IchGuckLive> i uses also 2 Axis Steppers nema 23
[16:53:24] <roh> any suggestions about encoders? i was thinking about avago ones for about 20E
[16:53:59] <IchGuckLive> im not with you What you woudt like to do STOP linuxcnc move by ESC then F2
[16:54:58] <roh> i dont want to disable and enable the machine. i want it to follow movement of the head with disabled steppers
[16:55:43] <roh> 17:53 < IchGuckLive> im not with you What you woudt like to do STOP linuxcnc move by ESC then F2
[16:55:46] <roh> eek
[16:56:23] <IchGuckLive> the HED are good
[16:57:14] <IchGuckLive> disable the stepper Driver by ?
[16:57:14] <roh> http://de.farnell.com/avago-technologies/heds-9000-t00/encoder-dreh-2000ppr-2ch/dp/1654866 these?
[16:57:30] <roh> i would add a button in axis (pyvcp or so)
[16:58:01] <IchGuckLive> this will lead in a error as the Enable pin of the driver axis changes
[16:58:13] <roh> 'lock/unlock' or so.. locked is stepperes powered, holding position, unlock is 'move by hand, position follows movement'
[16:58:13] -!- ktchk [[email protected]] has parted #linuxcnc
[16:58:45] <IchGuckLive> there is a example somwhere for this
[16:58:54] <roh> i should be able to reset the microstepping cycle to 0 by the reset input of the drivers
[16:59:00] <IchGuckLive> someone already did this
[16:59:09] <IchGuckLive> for manuell tool change
[16:59:49] <roh> its just small allegro A4988 drivers.. the motors run at 24V and 2 motors on the same 24V psu.. so coil current can't be too high
[17:00:14] <IchGuckLive> what is your SCALE
[17:00:35] <IchGuckLive> are the steppers direkt monted
[17:00:48] <IchGuckLive> or pulley system
[17:00:59] <roh> so i'd set that up like a regular 'closed loop' stepper with stepgen in velocity mode with a pid loop and the encoder as feedback?
[17:01:55] <roh> the steppers drive pulleys which run the flying mirror and laserhead on the x/y axis. i would just mount the encoders directly on the stepper axis (5mm dia)
[17:02:23] <IchGuckLive> ok
[17:02:40] <roh> the Y stepper is fixed, the X stepper is mounted on the brigde to the left.. basically the same setup all cheap china lasercutters have
[17:02:56] <roh> 'rabbit40' and all of the same oem/odm
[17:04:41] <roh> http://www.electricstuff.co.uk/laserc6.jpg is similar to ours (but smaller)
[17:04:58] <roh> you can see the X stepper in the top-left
[17:05:25] <roh> the pulley runs inside the X rail
[17:10:10] -!- mattions has quit [Read error: Operation timed out]
[17:10:56] <IchGuckLive> im still searching the file
[17:11:32] <IchGuckLive> http://linuxcnc.org/index.php/english/forum/40-subroutines-and-ngcgui/20912-sheet-alignment-in-a-plasma-table
[17:11:43] <IchGuckLive> roh: look here
[17:12:03] <roh> well.. i ordered some 74hc parts for the chargepump circuit and latching as well as 2 stepperdrivers now.. we'll see what encoders i can get a hold of
[17:14:30] <roh> well.. that seems to be for manual jogging.. and aligning with rotation
[17:14:37] <roh> not really my usecase
[17:18:37] -!- oterral has quit [Quit: Leaving.]
[17:18:55] -!- seb_kuzminsky [[email protected]] has joined #linuxcnc
[17:21:03] -!- tjb1 [[email protected]] has joined #linuxcnc
[17:21:23] -!- motioncontrol [motioncontrol!~io@host115-79-dynamic.10-87-r.retail.telecomitalia.it] has joined #linuxcnc
[17:26:21] <roh> hm.. about .2mm axis movement per full step
[17:29:57] -!- abetusk [[email protected]] has joined #linuxcnc
[17:30:49] <IchGuckLive> pcw_home: are you here ß
[17:32:08] -!- chariebee has quit [Quit: Page closed]
[17:32:26] -!- MattyMatt has quit [Quit: Ex-Chat]
[17:32:54] -!- MattyMatt [[email protected]] has joined #linuxcnc
[17:36:40] -!- sliptonic [[email protected]] has joined #linuxcnc
[17:52:23] <r00t4rd3d> http://web.media.mit.edu/~amitz/Amit_Zoran_home_page/the_freeD.html
[17:52:42] <r00t4rd3d> interesting...
[17:57:25] <sliptonic> I'm looking for documentation on setting up my 5i25/7i77 estop configuration so the linuxcnc condition and the machine condition are in sync. I see something in pncconf about the estop ladder program but I'm not sure how to use it.
[17:58:57] -!- bedah [[email protected]] has joined #linuxcnc
[18:02:21] <tjb1> r00t4rd3d: maybe that will make your aluminum supports for you ;)
[18:06:19] -!- mattions has quit [Ping timeout: 252 seconds]
[18:09:19] -!- erasmo [[email protected]] has joined #linuxcnc
[18:12:05] <tjb1> JT-Shop: I just had an idea, I wonder if I can use the VFD output on the G540 to adjust the voltage the arduino adjusts too.
[18:16:49] -!- cncbasher_ has quit [Quit: time to make some more scrap]
[18:17:06] -!- cncbasher has quit [Remote host closed the connection]
[18:18:10] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust639.basl.cable.virginmedia.com] has joined #linuxcnc
[18:32:02] <IchGuckLive> PCW ARE YOU ON ?
[18:41:38] <roh> hm.. maybe i just put some optical mouse sensors next to the belt
[18:42:58] <IchGuckLive> roh: im just not getting you why do you need a closed system on that
[18:43:26] <IchGuckLive> you can do 300iPm with no steplos on parport
[18:44:40] <archivist> accuracy
[18:45:04] <archivist> steppers are not accurate when microstepped open loop
[18:45:08] <roh> IchGuckLive: to be able to manually move the head and emc follow that movement
[18:45:14] <IchGuckLive> on a 1mm round laser point
[18:45:46] <IchGuckLive> to record shapes back to G-code
[18:45:54] <IchGuckLive> or DXF
[18:46:22] <roh> its ok if the manually positioned coord. changes a few 10th of a mm when locking again
[18:47:12] <roh> mostly to quickly align stuff where you leave over some mm of material anyhow (rest pieces of wood etc)
[18:47:15] <IchGuckLive> with pyvcp you can read the parameters out of emc.var
[18:47:30] <IchGuckLive> then with a button set the parameter back
[18:47:41] <roh> well.. to have parameters i need some sensor to read back movement when the steppers are freely moving
[18:48:32] <IchGuckLive> so button push saves the value of your z / then move your mashine by hand and reset the parameter back
[18:48:37] -!- mk0 [[email protected]] has joined #linuxcnc
[18:49:02] <IchGuckLive> maybe my engl is not good enoph to get your needs
[18:50:09] <roh> the current sw doesnt use any real absolute positioning. thats why i want to add emc. but for 'quickies' on the lasercutter where absolute coordinates arent neccessary its really nice how it works right now:
[18:50:25] <IchGuckLive> you can put a encoder direct to your Axis spindle then record this from bottom press manuell
[18:51:21] <IchGuckLive> if you press then another button you can calculate the numbers into the system back
[18:51:39] <roh> every object imported into the cutting sw cuts from 'current pos' .. so its always relative mode! and there is a manual jog box obviously.. which has a 'unlock' button.. which disables the steppers, so you can just push the head where your 'workpiece 0/0' is and press test.. if you like it, start cutting.
[18:51:51] -!- horatio_cromwell has quit [Quit: Leaving.]
[18:52:49] <IchGuckLive> thats Called Workpice ofset
[18:52:54] <roh> but that sucks since engraving stuff with a helper to align many pieces successively at the same position isnt fun since one needs to 'manually find 0/0' every time again. bad reproducability.
[18:53:17] <roh> sure. i know how emc handles that. we got it on our cnc mill
[18:53:28] <IchGuckLive> you can set G54-G59
[18:53:45] <IchGuckLive> you can set this by button
[18:54:03] <roh> of course. but the other users of the machine would like to keep the possibility to 'unlock' the steppers to find the workpiece 0
[18:54:04] -!- psha has quit [Quit: Lost terminal]
[18:54:14] <roh> without losing the absolute pos.
[18:54:36] <IchGuckLive> i woudt sucess then a Homing
[18:54:55] <archivist> why not just use axis, jog and touch off no need for manual moving of the motors
[18:55:35] <roh> archivist: still much more annoying than just grabbing the head and positioning it over the wood/acryllic
[18:55:46] <IchGuckLive> roh it is yust a bad behavier of using the system
[18:56:10] <roh> i'd call it 'workflow convenience' ;)
[18:56:31] <roh> both usecases have their pros and cons. sure. thats why i think about a solution
[18:56:40] <IchGuckLive> ok then try it and give us a feedback
[18:56:47] <roh> i will for sure
[18:57:25] <roh> what would be a 'recommended' encoder-steps to stepper-steps ratio anyhow?
[18:57:44] -!- mrsun_ [mrsun_!~mrsun@c-5f3de253.4551536--62697410.cust.bredbandsbolaget.se] has joined #linuxcnc
[18:57:46] <roh> is 1:1 ok?
[18:58:17] <IchGuckLive> ok then go as you think Button press releses a Relay that disconnects the Driver stage so the stepper is free and the linuxcnc is on Stepper enabled
[18:58:18] <roh> not specific to my usecase, rather since i cannot find any 'best practices'
[18:58:43] -!- Nick001-Shop [[email protected]] has joined #linuxcnc
[18:58:47] <roh> the steppers have enable inputs, so i dont even need a relay
[18:59:06] <IchGuckLive> i woudt go for 2048 ppr on the encoder they are cheep what is your pich
[18:59:27] <Aero-Tec> thanks to all that helped me get my lathe going
[18:59:50] <IchGuckLive> roh if you change the pinstate of the xenable pin linuxcnc will go on error so relay is needed
[19:00:04] <Aero-Tec> looks like it is now fixed and ready to use, but I have said that before so I hope this time is for real
[19:00:12] <roh> i just measured travel distance to rotations and would say that its 40.6mm travel per motor rotation
[19:00:16] <IchGuckLive> Aero-Tec: 7i77 spindel
[19:00:26] <Aero-Tec> I wish
[19:00:33] <Aero-Tec> would be great
[19:00:51] <Aero-Tec> I got my home made encoder fixed
[19:00:52] <IchGuckLive> Aero-Tec: can you post your ini hal
[19:01:31] <Aero-Tec> add a pn2222a transistor
[19:01:34] <roh> IchGuckLive: i think i'll just use different pins then. also i'll reset the microstepping cycle on reenabling, so i dont start inmidst a step... after powerdown the stepper will be on a fullstep anyhow i guess
[19:01:46] <IchGuckLive> roh: one rotation of the axis spindle 40mm
[19:01:55] <Aero-Tec> got the sig low down from .88 to .03
[19:02:07] <roh> IchGuckLive: maybe. was nothing precise, just a zollstock
[19:02:22] <IchGuckLive> that is quit large roh
[19:02:36] <Aero-Tec> so now EMC sees a proper low
[19:03:12] <Aero-Tec> do you want them posted on the same past bin?
[19:03:17] <roh> IchGuckLive: well.. chinese laser cutters.. every corner has be cut ;)
[19:03:21] <Tom_itx> IchGuckLive what page is the 7i77 on?
[19:03:41] -!- tjb1 has quit [Quit: tjb1]
[19:04:19] <IchGuckLive> Tom_itx: europ or usa
[19:04:20] <Aero-Tec> the opto was a darlinton so it did not have a low voltage turn on
[19:05:14] <Tom_itx> i found it
[19:05:32] <Aero-Tec> IchGuckLive: do you want to separate paste bins or one large one for the ini hal?
[19:05:40] <Aero-Tec> two
[19:05:42] <Aero-Tec> oops
[19:05:49] <IchGuckLive> up to you
[19:08:04] <archivist> roh you do realise just dragging a stepper with an encoder will probably give you a following error as linuxcnc did not command it
[19:08:39] <roh> archivist: yes.. i an still thinking how to work around that
[19:09:22] <archivist> just jog normally you will get stuff working a lot quicker
[19:14:37] <IchGuckLive> im off By Aero-Tec i read the log if you post the link
[19:14:42] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 16.0.2/20121025205401]]
[19:15:21] <Aero-Tec> ok
[19:15:35] <Aero-Tec> have the ini but the hal is being a pain
[19:16:36] -!- mattions has quit [Ping timeout: 240 seconds]
[19:18:14] -!- factor has quit [Read error: Connection reset by peer]
[19:21:25] -!- factor [[email protected]] has joined #linuxcnc
[19:25:05] <Aero-Tec> for some reason linux is not letting my windows computer open a hal file
[19:25:46] <Aero-Tec> I had it open in a editor but closed it down and also closed down EMC as well
[19:26:10] <Aero-Tec> now nothing is open on the linux machine and still it will not let me open file
[19:26:39] -!- mrsun_ has quit [Remote host closed the connection]
[19:27:03] -!- Tugge [[email protected]] has joined #linuxcnc
[19:27:35] -!- yuvipanda has quit [Quit: yuvipanda]
[19:31:18] -!- tjb1 [[email protected]] has joined #linuxcnc
[19:32:29] <tjb1> Is there any documentation about using a vfd output on a controller with linuxcnc?
[19:35:59] -!- yuvipanda has quit [Quit: yuvipanda]
[19:36:37] <tjb1> Got it :)
[19:37:07] <tjb1> If I configure PWM spindle speed and set a scale does it take the M3 SXXXX and send PWM based on that?
[19:38:44] <andypugh> Yes
[19:40:16] <andypugh> I just removed the VFD controller from my machine. I am hoping that the 7i49 can do the same job, as I have no PWM outputs.
[19:41:20] <tjb1> Well the G540 takes a PWM input
[19:43:07] <tjb1> Im trying to get to where M3 S117 will tell my arduino that desired arc voltage is 117 and adjust it
[19:43:44] <andypugh> It almost certainly already does. Put a halmeter on motion.spindle-speed-out
[19:44:08] <andypugh> Ah, sorry, that doesn't tell the Arduino, does it?
[19:44:26] <tjb1> Hmm?
[19:44:43] <tjb1> G540 takes the PWM and makes a 0-10v signal
[19:45:20] <tjb1> arduino will take that after being divided to 0-5v and ill use some fancy math to make that into a voltage I want :)
[19:45:58] <tjb1> Max voltage I see in the charts is 146 so I will do a max spindle speed of probably 150-155
[19:46:48] <andypugh> What is the Arduino bringing to the party?
[19:47:22] <andypugh> Why not connect the G540 direct to the plasma?
[19:47:51] <tjb1> Arduino is taking the plasma arc voltage and comparing it to the VFD input to it
[19:48:06] <andypugh> OK.
[19:48:07] <tjb1> sends outputs for torch up/down and then JT's thcud does the work
[19:49:13] <tjb1> Does that sound logical?
[19:49:22] <tjb1> I forgot about the G540 vfd output
[19:50:13] <andypugh> There is a Mesa standalone widget for exactly this application. The Arduino might struggle with the EM noise.
[19:50:34] <tjb1> If I do a max of 160 rpm I get .0625 volts per RPM which should work nice
[19:51:23] <tjb1> If RPM was set to 250 would it just go to the 160 setting?
[19:52:38] <tjb1> Those mesa cards are expensive, if this fails I guess I will be buying one but I am trying to avoid that
[19:54:21] <andypugh> Mesa THCAD is $70
[19:54:42] <andypugh> So you can blow up 2 Arduinos before you are in the red.
[19:55:02] <tjb1> arduinos are only $8
[19:55:18] <tjb1> :)
[19:56:30] -!- ewidance [[email protected]] has joined #linuxcnc
[19:57:40] <tjb1> The atmega328p is only $5 with bootloader on it on ebay and then just a few caps, oscillator and add i/o where you need them
[20:00:48] <tjb1> Ive already had the arduino hooked up to the plasma and it sampled voltage correctly
[20:08:29] -!- tjb1 has quit [Read error: Connection reset by peer]
[20:09:26] <Aero-Tec> the ini and hal files asked for
[20:09:29] <Aero-Tec> http://pastebin.com/szDPvAvV
[20:12:02] -!- tjb1 [[email protected]] has joined #linuxcnc
[20:17:05] -!- tjb1 has quit [Quit: tjb1]
[20:21:33] -!- Nimotix has quit [Remote host closed the connection]
[20:21:52] -!- mk0 has quit [Quit: Leaving]
[20:21:59] -!- vladimirek has quit [Remote host closed the connection]
[20:30:38] -!- mevon [[email protected]] has joined #linuxcnc
[20:43:18] -!- oyildirim [[email protected]] has joined #linuxcnc
[20:51:10] <Aero-Tec> kind of dead
[20:52:21] -!- bedah has quit [Quit: bye]
[20:54:21] -!- motioncontrol has quit [Quit: Sto andando via]
[20:55:26] -!- ewidance has quit [Quit: ewidance]
[20:56:56] -!- zzolo has quit [Quit: zzolo]
[21:01:55] -!- tjb1 [[email protected]] has joined #linuxcnc
[21:12:52] -!- tjb1 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
[21:22:09] <mevon> hi andypugh, got my mill moving with simulation .hal but its seems it is using servos, I will change that to steppers today
[21:22:35] <mevon> hence the create a parport dummy
[21:23:26] <mevon> I will do has you told me first, get all the stuff I dont need out now that I know a little bit more about HAL thaks to all you
[21:24:18] <mevon> just need to learn more about stepgen now
[21:24:31] <mevon> and rewire my arduino msgs
[21:25:36] -!- wboykinm has quit [Ping timeout: 240 seconds]
[21:26:18] -!- tjb1 [[email protected]] has joined #linuxcnc
[21:26:28] -!- ve7it [[email protected]] has joined #linuxcnc
[21:26:37] -!- ewidance [[email protected]] has joined #linuxcnc
[21:26:52] <tjb1> Anyone know if a SheetCAM license will work on 2-3 computers?
[21:28:09] -!- pjm has quit [Read error: Connection reset by peer]
[21:28:10] -!- pjm__ [[email protected]] has joined #linuxcnc
[21:30:16] -!- wboykinm_ has quit [Ping timeout: 268 seconds]
[21:46:43] <DJ9DJ> gn8
[21:47:46] -!- DJ9DJ has quit [Quit: bye]
[21:52:37] <andypugh> mevon: Do you need stepgen?
[21:53:10] <mevon> i will be using that but idk what it is actually
[21:58:20] -!- tjb1 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
[21:59:05] <andypugh> I have a feeling that the arduino makes the steps, so you don't need the HAL stepgen
[21:59:22] <andypugh> stepgen makes step pulses, generally through the parallel port
[22:01:10] <mevon> I have the two options here, setting a cmd or position, assume like a servo with or without feedback that it goes to the postion and wish linuxcnc will no go too fast before the next cmd is sent, so the servo can reach its pos
[22:01:49] <mevon> but want to try flooding the arduino with step msgs
[22:02:21] <mevon> so to have better precision since i dont have any feedback yet implemented
[22:03:21] <andypugh> The Mesa and Pico cards (with LinuxCNC) and Smoothstepper (with Mach) all work by being sent positions digitally, and generating the required steps to get there internally. It's a well-tested and effective method.
[22:03:46] <andypugh> I really don't think you want to be sending step pulses to the Arduino, it simply won't have a fast enough link.
[22:03:59] <andypugh> 50kHz step rate is fairly common.
[22:05:49] <mevon> obviously the stepping will be slower, and the way you described those project is how its working now
[22:06:46] <andypugh> It's the only possible way to cope with USB latency
[22:07:28] <andypugh> A USB message can wait 1mS (possibly more) before it gets sent by the hardware. No way can you send 50kHz pulses that way.
[22:08:02] <mevon> im just wondering how linuxcnc deals with moving 2 axis or more and makes em finish at the same time since it doesnt have control on the speed
[22:09:21] <andypugh> It sends a position update for every axis every mS. The accelleration and velocity control are part of that.
[22:10:13] <andypugh> It doesn't say "Go from 50mm to 75mm", it says "50, 50.0001, 50.0005, 50.0010, 50.0020....."
[22:11:02] <mevon> so smoothstepper you said Ill check that out
[22:11:21] <andypugh> It's expensive and only works with Mach
[22:13:29] -!- FinboySlick has quit [Quit: Leaving.]
[22:16:33] <mevon> i was trying to acheive that ultimately by tweaking the msg sent for more steps at a time, but was hoping I could find an integrator thatd vary the lengths to get more precision at the end of each move
[22:17:22] <mevon> but cmd is the final position and some sort of stepping in between is needed
[22:17:31] <mevon> hence stepgen
[22:19:26] <mevon> has for the step rates, my stepper drive, im not sure it can take more than 1kHz step rate
[22:21:01] <mevon> 10kHz is not acheivable for me right now
[22:21:18] -!- chillly has quit [Quit: Leaving]
[22:22:35] -!- BHSPiMonkey has quit [Changing host]
[22:22:35] -!- BHSPiMonkey [BHSPiMonkey!~BHSPitMon@unaffiliated/bhspitmonkey] has joined #linuxcnc
[22:24:04] -!- Keknom [[email protected]] has joined #linuxcnc
[22:26:08] -!- Yarl has quit [Ping timeout: 265 seconds]
[22:26:45] <mevon> do I need parport read write reset base-thread?
[22:27:28] <mevon> I mean what are those for/
[22:27:29] <mevon> ?
[22:27:41] -!- erasmo has quit [Remote host closed the connection]
[22:33:23] -!- blr has quit [Ping timeout: 245 seconds]
[22:35:28] <mevon> max 5kHz to 25kHz for stepgen, 1Khz Im ok
[22:37:06] <mevon> cannot go 9axis with stepgen? humm
[22:42:56] -!- asdfasd has quit [Read error: Connection reset by peer]
[22:43:52] <skunkworks> the stepgen is limited to 8 axis - but that is just a software limitation... I think you could change stepgen.c to allow more.
[22:44:32] <skunkworks> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/stepgen.c;h=c091146404d5867c0f1e4483f75b2538d10618b3;hb=HEAD
[22:47:59] <skunkworks> I don't know if the only thing you have to change is line 307...
[22:48:11] <andypugh> mevon: If you don't have a parallel port then you don't need the reset.
[22:48:36] <andypugh> I don't think you even need a base thread.
[22:48:59] -!- Valen [[email protected]] has joined #linuxcnc
[22:49:18] <mevon> ok so they are not related to stepgen and not needed, if i dont link to the parport
[22:49:39] <mevon> i bet its for io mgmt
[22:49:59] <andypugh> No, they are intimately related to stepgen. But stepgen is no use to you
[22:51:42] <skunkworks> wait - are you trying to get the usb arduino thing working still?
[22:51:45] <andypugh> The way stepgen works: Every 1mS (servo-thread) it looks at the commanded position, runs the stepgen.N.capture-position function, and caculates how many pulses it needs to make at what rate to get there before the next mS is up. Then every base-thread (typically 25uS) it sets a parallel port pin high or low.
[22:52:37] <andypugh> skunkworks: I have been assuming that, but I could be wrong and perhaps he has seen sense
[22:52:48] <skunkworks> heh
[22:53:42] -!- zzolo has quit [Quit: zzolo]
[22:54:02] <Jymmm> Is thee a way to just look at a regulator and tell if it's single or dual stage?
[22:54:49] <andypugh> Yes, read what is says on the label :-)
[22:55:15] <Jymmm> andypugh: I've never seen them state either way.
[22:55:45] <t12> can the whole servo loop be moved into something like a 7i80db
[22:56:11] <andypugh> t12: Yes, that is what SoftDMC does
[22:56:35] <t12> is it effective? a pain?
[22:57:18] <andypugh> All I know on the subject was contained in the previous sentence
[22:57:24] -!- wboykinm has quit [Remote host closed the connection]
[22:57:30] <andypugh> PCW is your man
[22:58:00] <Jymmm> IF HE CANT DO IT NOBODY CAN!!!
[22:58:13] <skunkworks> t12: what are you hoping to do? (linuxcnc works great controlling the servo loop)
[22:59:06] <t12> i'm just curious, no task at hand
[22:59:35] <t12> it seems like a large amount of hassle goes into the rtos on x86 issues
[22:59:58] <skunkworks> ah - but that does make a very very very very flexable system....
[23:00:04] <t12> agree
[23:00:39] <skunkworks> where all setup is done in one place.
[23:01:26] -!- blr has quit [Quit: Page closed]
[23:02:53] -!- asdfasd [[email protected]] has joined #linuxcnc
[23:12:21] -!- abetusk has quit [Quit: Leaving]
[23:24:37] -!- mhaberler has quit [Ping timeout: 265 seconds]
[23:30:54] -!- mhaberler [[email protected]] has joined #linuxcnc
[23:33:26] -!- kmiyashiro has quit [Quit: kmiyashiro]
[23:43:09] -!- centrelink [centrelink!~okay@unaffiliated/okay] has joined #linuxcnc
[23:46:34] <ve7it> has anyone tried turning multistart threads with linuxcnc? I am trying to code up a 4 start thread... basically do I just offset the start z by 1/4 the pitch?
[23:47:10] <andypugh> Yes, that's how you do it
[23:48:37] <ve7it> cool... I have been playing with threading.ngc in the samples.... I notice it offsets the tool a little on each pass... it looks like this is to cut only with the leading edge of the threading tool
[23:49:03] -!- FinboySlick [[email protected]] has joined #linuxcnc
[23:49:12] <andypugh> That's a parameter in the G76 line, the "compound angle"
[23:51:00] <ve7it> ok, the example is using g33 and I am trying to figure out how to due proper leadin and leadout.... a nut doesnt have to fit... it is a winding form for a tig welding machine HF coil.
[23:51:34] <andypugh> G76 has in and out taper I think
[23:52:05] <ve7it> Thanks andy, I'll have a play
[23:53:03] <mevon> wish I knew how to sniff usb com in a term window
[23:53:16] <andypugh> I doubt you can
[23:53:44] <andypugh> unless you can do something funny with /dev/usb0
[23:54:35] <mevon> humm if i chose something like /dev/ttys1
[23:54:46] <mevon> instead of ttyusb0
[23:55:04] <andypugh> I was guessing
[23:55:05] <mevon> and put a screen on the other end
[23:55:44] <mevon> i need some sort of a loop
[23:58:27] -!- centrelink has quit [Quit: Leaving]