#emc | Logs for 2009-09-08

Back
[00:00:11] <dan_the_welder> that sounds right
[00:00:18] <dan_the_welder> is it not working?
[00:01:23] <ilya> it works. First, move up the tool, then Y, then X to home
[00:01:56] <ilya> But it's a trick to change the home position. Or maybe not a trick.
[00:02:25] <dan_the_welder> home offset?
[00:02:31] <ilya> file:///home/ilya/emc2-2.3.1-version1/docs/html/config_ini_homing.html helps, but...
[00:02:47] <ilya> No, home offset is another term used in EMC
[00:04:44] <ilya> Machine moves from the home_offset to home at the final stage of homing
[00:05:04] <dan_the_welder> right. I understand that. what problem are you having?
[00:06:04] <ilya> Trying to home to non-zero coordinates. I already did it once. Now it looks like I know more, and I'm thinking in terms of EMC!b :)
[00:07:53] <dan_the_welder> try a G28
[00:08:10] <ilya> For the win? :)
[00:08:21] <dan_the_welder> fingers crossed?
[00:08:47] <ilya> I'm using simulator. Making a real machine of it.
[00:09:20] <dan_the_welder> cool. I was too impatient for that. I build the machine and then try to make it do my bidding.
[00:09:34] <dan_the_welder> I like to see the motors spin.
[00:10:18] <dan_the_welder> or to accidentally punch a marker through a piece of 3/4" gypsum board by accident.
[00:11:00] <ilya> I think it's better to use HOME_OFFSET for home position. Otherwise, Assigning HOME is tricky and "Cannot home while shared home switch is closed" error appears...
[00:13:05] <dan_the_welder> that makes sense. although it is slower to home one axis at a time, it is safer and simpler.
[00:13:14] <ilya> Oh, I'm saying wrong things. Offset is a place where the first part of homing ends. It is followed by a rpid move towards HOME position.
[00:15:20] <ilya> And there's a restrictions on switches, so axis_mm.ini has only two switches. XY are shared if I assign sequence 0 to Z, and sequence 1 to X and Y.
[00:16:34] <dan_the_welder> are you using a predefined config.ini "axis_mm.ini"?
[00:16:40] <ilya> yes
[00:16:55] <ilya> changing it, everything in it
[00:17:12] <dan_the_welder> take a look at some different ones. they may be using different amounts of pins etc.
[00:17:23] <dan_the_welder> HAve you looked at hal files yet?
[00:17:30] <ilya> No
[00:18:33] <dan_the_welder> well, in the hal files is where pins are defined and assigned to things like limits and step direction and spindle enable. open the ones associated with axis_mm to see how they work.
[00:18:50] <ilya> OK
[00:22:10] <ilya> "net Yhomesw <= comp.1.out => axis.1.home-sw-in" could mean shared switch? X should be homed, then Y at the last part!
[00:22:18] <ilya> Oh yeah I did it!!!
[00:22:48] <ilya> We will have radiators turned on at September, 15th.
[00:22:59] <ilya> Now it's cold in my apartment...
[00:23:35] <dan_the_welder> awesome!
[00:23:39] <ilya> Now to the bath, Some steamed potato from my garden with veggy oil is later on
[00:23:40] <ilya> :)
[00:23:56] <dan_the_welder> it's still hot in florida, enjoy your bath and the victory!
[00:24:03] <ilya> A W E S O M O
[00:24:07] <dan_the_welder> hah
[00:24:09] <dan_the_welder> later
[00:24:13] <ilya> yeah!
[00:43:24] <MarkusBec> MarkusBec is now known as MarkusBec_away
[00:45:35] <tlab> hello
[02:01:30] <ntosme2> is there a tutorial for running emc via remote X?
[02:02:26] <cradek> you do it the same way you run any application remotely via X
[02:02:49] <cradek> ssh -X otherhost
[02:07:03] <ntosme2> hmm
[02:07:40] <Valen> axis might not work too well with that, being GL and all perhaps
[02:08:33] <cradek> there is no problem running GL apps remotely as long as your X server has GL
[02:08:56] <SWPadnos> it even works fin on CygWin/X on Windows
[02:08:59] <SWPadnos> fine
[02:09:08] <ntosme2> ssh -Y host emc
[02:09:12] <ntosme2> gives me errors
[02:09:23] <SWPadnos> are you using cygwin?
[02:09:45] <Valen> I didn't know they had openGL over X working reliably yet
[02:09:56] <Jymm> x-client has GL
[02:10:18] <ntosme2> not cygwin, using a gentoo box with X and GL working
[02:10:31] <SWPadnos> then use -X, not -Y
[02:10:37] <Jymm> wait, no, reverse that.... stinking server is really client, and client is really server. bah humbug
[02:10:51] <SWPadnos> unless it's a very old ssh program
[02:11:00] <ntosme2> error output http://pastebin.com/m5092c986
[02:11:34] <SWPadnos> it looks to me as though you need to install some fonts
[02:12:04] <Valen> heh I'm getting 4000FPS in glxgears over X
[02:12:08] <ntosme2> lol, interesting
[02:13:32] <ntosme2> SWPadnos: it doesn't really tell me what fonts
[02:15:01] <SWPadnos> dunno, but it's a font error, so I just assumed
[02:19:20] <ntosme2> this appears to be the solution for anyone curious http://www.mail-archive.com/emc-users@lists.sourceforge.net/msg12881.html
[02:19:35] <ntosme2> time to restart X
[02:21:51] <ntosme2> unfortunately didn't work...
[02:25:05] <ntosme2> ah I didn't read it all
[02:44:17] <ilya> [#3 lt [#1-#2]] or simply [#3 lt #1-#2] ??
[02:55:30] <ntosme2> I am still unable to get emc to start, I edited /usr/bin/axis and assigned the font to be 9x15bold which exists on my gentoo system and it still is unable to find it
[02:57:15] <ilya> to find what?
[02:57:42] <ilya> Are there any error messages? E.g. at your home directory?
[02:59:52] <ntosme2> http://pastebin.com/m5092c986 here is the log
[02:59:57] <ntosme2> (also above)
[03:00:09] <Valen> got some hawt wet photos for yall
[03:00:25] <ntosme2> ilya: I'm trynig to run emc from a remote X session
[03:00:46] <Valen> doh put them on wrong server
[03:01:52] <Valen> http://www2.vapourforge.com/mill/
[03:02:11] <ntosme2> hmm ok I hard-coded coordinate_font = "-*-lucidatypewriter-medium-r-*-*-20-*-*-*-*-*-*-1"
[03:02:32] <ntosme2> and it runs, not sure shy it couldn't find the 9x15 font
[03:02:39] <ntosme2> why*
[03:02:44] <Valen> perhaps try adding the font?
[03:02:53] <ntosme2> the font exists
[03:03:05] <ntosme2> I can use it in an xterm
[03:03:17] <Valen> ahh, oh there are all kinds of weirdnesses with fonts and caches
[03:03:51] <Valen> that video is at 15 volts on a 40v motor ;->
[03:05:55] <ntosme2> hmm axis is a bit slow to respond over remote x
[03:05:59] <Valen> tried changing the ui to something other than axis?
[03:06:13] <Valen> do you have the font at both places?
[03:06:57] <ntosme2> yes, I'm running the ubuntu emc distribution on a small box so it has all the necessary fonts
[03:07:40] <ilya> ntosme2: "emc ~/configs/sim/axis.ini"
[03:07:43] <ilya> ntosme2: "emc --help" emc [-k] [-d] [-v] path/to/your.ini
[03:07:55] <ilya> g01 x[-#4/0.5] = Bad number format?
[03:09:57] <ve7it> ve7it is now known as LawrenceG
[03:10:21] <ntosme2> ilya: that has the same effect...it just keeps me from having to select the config
[03:10:41] <ilya> OK
[03:29:27] <ilya> Have anyone tried demo version of www.cad2gcode.com/lathe/ ??
[03:30:10] <cradek> ilya: rs274ngc does not have unary minus. you must write [0-#4] not [-#4]
[03:30:15] <ilya> Lots of setting and prescriptions to the drawing, in DXF, itself.
[03:30:41] <ilya> Thanks, kind Lord Cradek.
[03:50:12] <Jymm> Lord cradek?! Wouldn't that be cradek lord? Or maybe even Dictator cradek, or ....
[03:51:37] <ilya> Lord Cradek.
[03:52:34] <Jymm> Ah HA! I got it now.... wait for it.... EMC == Evil Master Cradek
[03:53:12] <Jymm> and of course... EMC2.0 == Evil Master Cradek (Jr)
[03:53:16] <ilya> :O
[03:53:48] <ilya> Yeah, this is he. I knew it!
[03:57:00] <Jymm> See, and here's his henchman now...
[04:03:34] <ilya> toastydeath: hello :)
[04:03:53] <toastydeath> hai
[04:07:08] <ilya> What could be wrong at: ||| #4 = 0 / O101 while [#4 lt 10] / g91 / G1 X[0-#4/0.5] / g90 / o100 call / #4 = [#4+1] / O101 endwhile ||| ?? It draws only one "o100" subroutine...
[04:07:52] <toastydeath> i have no idea how those things work
[04:08:37] <ilya> toastydeath: Subroutine has profile of the shaft in g91 mode.
[04:09:28] <toastydeath> no, i mean i don't have any idea how emc handles that stuff
[04:09:31] <toastydeath> i am a fanuc guy
[04:09:38] <ilya> It's strange it calls it only once.
[04:09:48] <ilya> fanuc?
[04:09:54] <toastydeath> a control.
[04:10:00] <ilya> Bad guy who killed his grandma?
[04:10:06] <ilya> :)
[04:10:10] <ilya> control?
[04:10:18] <toastydeath> uh.
[04:10:35] <ilya> "Fa numerical"
[04:10:54] <toastydeath> fanuc is the biggest cnc control manufacturer in the world
[04:11:11] <toastydeath> though they've got some competition from Mazak, Okuma, etc
[04:11:59] <ilya> And you're his son?
[04:12:06] <ilya> j/k
[04:12:39] <toastydeath> i am saying I am only familiar with their controls, not emc
[04:12:47] <ilya> Didn't sleep last night. Again. Last time, I slept last night. This time I have not... :-/
[04:13:01] <ilya> They have another control?
[04:13:19] <toastydeath> what?
[04:13:35] <toastydeath> you know what, nevermind
[04:13:42] <toastydeath> pretend i didn't say anything and that i'm not here
[04:14:00] <ilya> Do they have another, not g-code, language?
[04:14:17] <toastydeath> no
[04:14:22] <ilya> We have TechTran in Russia
[04:14:33] <ilya> another language for cnc.
[04:15:12] <toastydeath> every control's implementation of g-code is different
[04:15:33] <toastydeath> and so when you are reading Fanuc g-code, say, and then you go over to a Mitsubishi control or something, it will be slightly different
[04:15:33] <ilya> I do not know, but can imagine it.
[04:15:57] <toastydeath> and then EMC has it's own deal as well - and you're asking a question about something that only EMC can do, so I can't help
[04:16:08] <ilya> I know some examples of sush difference.
[04:16:21] <ilya> OK
[05:01:08] <ilya> The code is very complicated. I want to simplify it. Is there any technique in programming saying to create simplified for parsing by human code?
[05:01:19] <ilya> What if coworkers will have to revise it?
[05:01:52] <ilya> I would go without cycles which call routines...
[05:11:17] <ilya> Interesting, this code is intended to be human-readable. I think I'm choosing a right approach simplifying it for parsing by humans.
[05:38:15] <ilya> alibaba: hello:)
[05:38:26] <alibaba> Hi1
[05:38:44] <ilya> hi
[05:38:44] <alibaba> How are you?
[05:38:57] <ilya> Fine, thanks. And you?
[05:40:21] <alibaba> Busy. Hope I will get my mill finished sometimes when I have time again.
[05:43:02] <ilya> "g01 x[0 - 1.5/(2 * tan[30])]" ?
[05:47:00] <ilya> Can I use parenthesis in expressions?
[06:46:36] <ilya> G33.1 has its own control on the spindle's speed?
[06:51:54] <ilya> I set up 'g97 s90 m3' and it was about 300 rpm while g33.1 "did its job"
[07:07:02] <ilya> My friend says, in Brazil, girls love mathematicians! I want to Brazil...
[07:10:31] <ilya> Here, mathematicians love girls!
[07:23:44] <micges_work> hehe
[08:35:40] <ilya> "/g97 s120 M3 / /g33.1 z100 k1." Does not set up 120 rpm for threading... Threading happens at a larger rpm... What a ?
[08:48:24] <maximilian_h1> does anybody know how in can center a <bar> inside a <vbox> in pyvcp ?
[08:50:05] <ilya> Maybe, people from #cam can answer, if this question related to /software/...
[08:51:31] <maximilian_h1> hello ilya, it's related to emc2's pyvcp panel, so i was asking here
[08:51:40] <maximilian_h1> #cam is for emc2 too ?
[09:00:36] <maximilian_h1> Does anybody know how I can get rid of the error message in axis about having an arc with radius 0, it effectively renders G2 or G3 non-modal, which is a bug ?
[09:02:02] <micges_work> some gcode?
[09:02:11] <maximilian_h1> hello micges
[09:02:15] <micges_work> hi
[09:02:20] <maximilian_h1> G2 I0
[09:02:35] <maximilian_h1> radius is 0, distance to endpoint is 0 to
[09:02:55] <maximilian_h1> but my coordinates for several arcs come on the next lines
[09:04:27] <maximilian_h1> like this:
[09:04:27] <maximilian_h1> G2I0
[09:04:27] <maximilian_h1> I-0.16J24.78X-5.03Y0.48
[09:04:27] <maximilian_h1> I-0.13J1.22X-1.35Y1.4
[09:05:02] <micges_work> yes but in line G2I0 you haven't specified J
[09:05:28] <micges_work> and when you never write Jn before it is assumed to be 0
[09:05:58] <maximilian_h1> "it is an error if I and J are both omitted"
[09:06:07] <maximilian_h1> quote from the documentation
[09:06:16] <micges_work> yes but must be properly specifed before
[09:06:19] <maximilian_h1> and the omitted J does not give an error
[09:06:32] <micges_work> ?
[09:06:51] <micges_work> maximilian_h1: www.pastebin.ca whole file pleas
[09:06:52] <micges_work> e
[09:06:56] <maximilian_h1> you either have to specify I or J
[09:06:59] <maximilian_h1> not both
[09:07:16] <maximilian_h1> it's to G2 I0 has radius 0 that gives me an error
[09:07:32] <maximilian_h1> hang on for a sec
[09:07:36] <maximilian_h1> i'll post it
[09:13:22] <maximilian_h1> it's here http://pastebin.ca/1558155
[09:13:56] <maximilian_h1> sorry for the delay, but i had to find and scp it first
[09:15:30] <micges_work> ok
[09:17:45] <micges_work> line 154 have J0
[09:17:59] <micges_work> that's problem
[09:19:15] <micges_work> if you don't specify I or J in G2/G3 command, last specified is used
[09:19:34] <maximilian_h1> line 154 is: N770G3I-7.5J0X-7.5Y7.5
[09:19:48] <maximilian_h1> does does not give the error
[09:20:07] <ilya_> "/g97 s60 M3 ||| /g33.1 z100 k1." Uses exactly 300 rpm... I need help about it. Treat me seriously. *REMEMBER!* I HAVE A GINGERBREAD.
[09:20:23] <maximilian_h1> the error is at line 162
[09:20:28] <piasdom> g'mornin all
[09:20:40] <micges_work> maximilian_h1: read carefully what I've wroted
[09:21:37] <maximilian_h1> yes, last specified is used, i agree, but the error message is that the radius is 0
[09:21:51] <maximilian_h1> and that should not be an error at all
[09:22:16] <micges_work> if last specified is used (J0) and you specify (I0) you have 0 radius arc
[09:22:21] <maximilian_h1> i'll post the error message screenshot to pastebin.ca
[09:22:28] <maximilian_h1> wait a moment please
[09:22:56] <micges_work> I know what's error is, you don't understand idea about IJ
[09:23:48] <ilya_> You need the coordinates of the end of the move, and you assign the centre of the arc.
[09:24:28] <ilya_> x and y are coordinates; i and j are offsets of the centre
[09:24:53] <ilya_> *x and y are coordinates of the end of the arc; i and j are offsets of the centre of the arc.
[09:25:07] <maximilian_h1> http://imagebin.ca/view/N8TqAg.html
[09:26:16] <maximilian_h1> ups, that was for another nc program, sorry
[09:29:02] <ilya_> micges_work: Can you answer to my question? I program "/g97 s60 M3" and "/g33.1 z100 k1." on the next line. But g33.1 uses exactly 300 rpm... Why 5 times more? Oh, it could be simply a Spindle Override...
[09:30:01] <micges_work> ilya_: I don't have experience with that, sorry
[09:30:22] <maximilian_h1> this is the nc file that corresponds to the screenshot http://www.pastebin.ca/1558161
[09:32:07] <maximilian_h1> it's in german, but the translation would be that line 103 is an arc with radius 0
[09:33:02] <maximilian_h1> and this line is N515G2I0J0
[09:33:08] <maximilian_h1> with I0 and J0
[09:33:21] <maximilian_h1> and it still gives an error
[09:33:59] <micges_work> maximilian_h1: first rule of gcode arcs: I word and J word can't be 0 at once !
[09:34:18] <maximilian_h1> they can, because G2 or G3 are modal
[09:36:10] <ilya_> maximilian_h1: I and j are offsets of the centre from *current* (i.e. the resulting from last command) coordinates
[09:36:31] <maximilian_h1> @ilya: i do know that
[09:36:58] <ilya_> maximilian_h1: they can not be 0 simultaneously
[09:37:06] <micges_work> maximilian_h1: what do mean by 'modal'?
[09:37:08] <ilya_> give three lines of code here
[09:37:23] <maximilian_h1> @ilya: please do read the emc2 yourself, they can
[09:38:57] <ilya_> no. they can not.
[09:38:59] <ilya_> :)
[09:39:51] <maximilian_h1> section 11.4.1 emc v2.3 user manual center format arcs, read it yourself
[09:42:10] <ilya_> "g02 x4 z-2. i2. k0."
[09:42:42] <maximilian_h1> @micges: Sorry, i did not see your last comment. Modal means that e.g. G1, G2, G3 are still in effect, even if they are not specifed on the current line, but were specified in the last line
[09:44:06] <micges_work> maximilian_h1: XYZABCUVW are also modal
[09:44:20] <alex_joni> maximilian_h1: you cannot have a circle or arc with the center in the current location
[09:44:40] <alex_joni> for G02/03 you specify end location, and center (using I,J,K - depending on plane)
[09:44:43] <maximilian_h1> group 0 is non modal:
[09:44:43] <maximilian_h1> group 0 = {g4,g10,g28,g30,g53,g92,g92.1,g92.2,g92.3} - NON-MODAL
[09:44:43] <maximilian_h1> dwell, setup, return to ref1, return to ref2,
[09:44:43] <maximilian_h1> motion in machine coordinates, set and unset axis offsets
[09:44:43] <maximilian_h1> group 1 is modal:
[09:44:59] <maximilian_h1> group 1 = {g0,g1,g2,g3,g33,g33.1,g38.2,g38.3,g38.4,g38.5,g73,g76,g80,g81,g82,g83,g84,g85,g86,g87,g88,g89} - motion
[09:45:09] <maximilian_h1> that is copied from interp_array.cc
[09:45:33] <maximilian_h1> hello alex
[09:46:04] <maximilian_h1> @alex: Do you know where the check in the source code is so that i can remove the check for radius null arcs ?
[09:46:28] <maximilian_h1> @alex: I can't see it in the interpreter
[09:46:41] <alex_joni> it's there
[09:46:46] <alex_joni> why do you want to remove it?
[09:47:09] <alex_joni> I mean why do you need null radius arcs?
[09:47:48] <maximilian_h1> @alex: Yes, because i have tons of nc programs that program G2 and then multiple arcs with axes information on the next lines
[09:48:19] <maximilian_h1> like this:
[09:48:19] <maximilian_h1> N515G2I0J0
[09:48:19] <maximilian_h1> N520I1.05J-1.07X2.39Y-0.39
[09:48:19] <maximilian_h1> N525G3I1.26J0.82X2.51Y0
[09:48:19] <maximilian_h1> N530G2I1.34J-0.68X2.69Y-0.03
[09:48:20] <maximilian_h1> N535G3I1.26J0.81X2.52Y-0.01
[09:48:39] <maximilian_h1> and currently N515G2I0J0 gives an error that the radius is null
[09:49:23] <maximilian_h1> @micges: XYZABCUVW is persistent, g code groups are modal. But the effect is the same, yes your right ;)
[09:49:43] <maximilian_h1> s/you/you are/
[09:49:51] <maximilian_h1> s/your/you are/
[09:50:00] <maximilian_h1> bloody regex
[09:50:44] <maximilian_h1> @alex: Do you know where ?
[09:52:08] <maximilian_h1> @alex: I looked in Interp::convert_arc, but did not see it
[09:52:19] <alex_joni> maximilian_h1: can you paste the exact error from emc2?
[09:52:54] <maximilian_h1> it's here http://imagebin.ca/view/N8TqAg.html
[09:54:11] <maximilian_h1> and the nc code that produced the error msg is at http://www.pastebin.ca/1558161
[09:54:38] <maximilian_h1> the offending line is N515G2I0J0
[09:56:49] <cnc_valen> mornin ll
[09:57:07] <cnc_valen> have the millhooked up to the mes cards now
[09:57:32] <cnc_valen> there doesn'tseem to be much info ongetting servo systems running
[09:57:54] <alex_joni> http://git.linuxcnc.org/gitweb?p=emc2.git;a=blob;f=src/po/de.po;h=dd63539018a5114ab797480fb7c314ccc3673eea;hb=HEAD
[09:58:03] <alex_joni> maximilian_h1: line 7537
[09:58:16] <alex_joni> it says: #: emc/rs274ngc/interp_arc.cc:106
[09:58:19] <cnc_valen> What doe the servo calibration tool actually do in axis?
[09:58:43] <alex_joni> http://git.linuxcnc.org/gitweb?p=emc2.git;a=blob;f=src/emc/rs274ngc/interp_arc.cc;h=1106ae8e0565d1464be50641ff024f0d19fc0923;hb=HEAD#l107
[09:58:56] <alex_joni> cnc_valen: allow you to set some PID tuning parameters
[09:59:12] <alex_joni> but I'm not sure it works on all cards/combinations
[09:59:28] <cnc_valen> ahh so i would change settings there then run a g-code command to actually cause it to move?
[09:59:29] <alex_joni> it's best to use halcmd to set the parameters while tuning, and afterwards put them in the ini
[09:59:34] <maximilian_h1> @alex: But that is the german translation, is it not ?
[09:59:49] <cnc_valen> I have nfi how to use halcmd yet
[10:00:10] <alex_joni> cnc_valen: http://www.linuxcnc.org/docview/html/ <- HAL chapter
[10:00:25] <maximilian_h1> @cnc_valen: Have you seen the at_pid module that uses Ziegler/Nichols ?
[10:00:28] <alex_joni> I _really_ suggest you should read some of that before attempting anything
[10:00:58] <cnc_valen> I was hoping to just get some motion
[10:01:13] <alex_joni> maximilian_h1: your message was in german, that means it doesn't appear like that in the sourcecode. the translation file has that string (I linked you the location)
[10:01:27] <alex_joni> and the translation file has a reference to the source files where the string appears
[10:01:45] <alex_joni> in this case emc/rs274ngc/interp_arc.cc:106 (line 106)
[10:01:49] <alex_joni> my second link
[10:02:12] <acemi> alex_joni: I need to upload some file to linuxcnc.org for wiki
[10:02:34] <alex_joni> acemi: sure
[10:02:45] <acemi> alex_joni: http://paste.debian.net/45987
[10:02:50] <acemi> this is the liste
[10:03:16] <acemi> this is for http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Debian_Lenny_Compile_RTAI
[10:03:30] <maximilian_h1> @Alex: So I am getting hit by NCE_TOOL_RADIUS_NOT_LESS_THAN_ARC_RADIUS_WITH_COMP ?
[10:04:49] <alex_joni> nope, you are looking at the wrong sources
[10:05:05] <alex_joni> http://git.linuxcnc.org/gitweb?p=emc2.git;a=blob;f=src/emc/rs274ngc/interp_arc.cc;h=1106ae8e0565d1464be50641ff024f0d19fc0923;hb=HEAD#l107
[10:05:29] <alex_joni> line 107 ^^
[10:05:37] <alex_joni> 107 CHKS(((arc_radius < min_radius) || (radius2 < min_radius)), _("Zero radius arc"));
[10:05:57] <alex_joni> acemi: pm
[10:06:55] <maximilian_h1> Damm, Alex, you are a gem. Thanks !
[10:23:57] <fenn> maximilian_h1: couldn't you just do a regex search and replace, looking for N\d\d\d(I|J).*
[10:24:43] <fenn> er, and fix the I0J0 at the same time
[10:25:42] <ilya_> fenn: You know regular expressions.
[10:25:58] <ilya_> fenn: Now I know you know regular expressions :)
[10:26:09] <fenn> my rates are very reasonable :)
[10:26:47] <ilya_> :(
[10:35:02] <cnc_valen> anybody have some sample values for the pid section that might give me a place to strt?
[10:35:07] <cnc_valen> start
[10:36:18] <cnc_valen> I have tried values between 1 and 1000 for all the variables but it seems to be making no difference to the output
[10:36:43] <cnc_valen> it just keeps sending 1.2 volts to the motors
[10:36:51] <cnc_valen> (12v psu)
[10:37:47] <maximilian_h1> @cnc_valen: Do you know what velocity your amplifiers will produce for a certain voltage ?
[10:37:56] <cnc_valen> no
[10:38:15] <cnc_valen> its using mesa cards into scooter motors
[10:38:25] <maximilian_h1> @cnc_valen: Do you have a constant voltage offset ?
[10:38:55] <cnc_valen> its all digital the mesa spits out PWM into the drivers
[10:39:37] <maximilian_h1> @cnc_valen: Yes, but do you have a constant voltage offset with emc2 unloaded ?
[10:39:58] <maximilian_h1> @cnc_valen: Because you said that it keeps sending 1.2 volts
[10:40:00] <cnc_valen> i can hear it trying but no matter what i change apart from following error there is no change
[10:40:10] <cnc_valen> no thats only when its commanded to move
[10:40:25] <cnc_valen> its all working except for actually doing anything lol
[10:40:35] <maximilian_h1> @cnc_valen: ok
[10:40:46] <maximilian_h1> @cnc_valen: be back in 10mins
[10:49:29] <maximilian_h1> @cnc_valen: Are you there
[10:49:38] <cnc_valen> yeah
[10:49:42] <maximilian_h1> good
[10:50:01] <maximilian_h1> so you get 1.2 volts from the mesa card
[10:50:10] <maximilian_h1> are you using a 7i43 ?
[10:50:15] <cnc_valen> on the motor outputs
[10:50:19] <cnc_valen> 5i23
[10:50:35] <cnc_valen> I can hear the pwm working
[10:50:48] <maximilian_h1> ok, i personally don't know the 5i23, but that should not matter
[10:51:05] <cnc_valen> if i push on the machine it starts making noise as i create error
[10:51:20] <cnc_valen> I just cant seem to get emc to put out more power
[10:51:24] <maximilian_h1> the the voltage goes where then ?
[10:51:44] <cnc_valen> up to 1.2 in about 2 or 3 step
[10:52:27] <maximilian_h1> got any MAX_OUTPUT in your ini file ?
[10:52:46] <cnc_valen> 10
[10:52:54] <cnc_valen> but it makes no difference if its 1
[10:53:05] <maximilian_h1> is the pid saturated ?
[10:53:28] <cnc_valen> I change 5i23.ini, restart axis and there is no change in output
[10:53:36] <cnc_valen> dont know
[10:53:55] <maximilian_h1> on the command line shell type: halcmd getp pid.0.saturated
[10:54:05] <maximilian_h1> that is the first axis on my machine
[10:54:21] <cnc_valen> says false
[10:54:30] <cnc_valen> should i test it in progress?
[10:54:36] <cnc_valen> ie attempting a move?
[10:54:39] <maximilian_h1> yes
[10:55:39] <cnc_valen> still false
[10:56:10] <maximilian_h1> could you post to pastebin.ca the output of:
[10:56:10] <maximilian_h1> halcmd show all
[10:56:10] <maximilian_h1> ?
[10:57:09] <cnc_valen> working on it
[10:57:21] <maximilian_h1> I'll be back in 10mins, I have to get some lunch, I will have a look at your output then
[10:58:03] <cnc_valen> http://www.pastebin.ca/1558223
[11:09:43] <SWPadnos> all of your pid.N.maxoutput pins are 1, not 10
[11:10:43] <maximilian_h1> ok
[11:10:46] <maximilian_h1> back
[11:11:30] <cnc_valen> I changed it back when it madeno difference
[11:11:53] <SWPadnos> as a suggestion, change all FFx to 0
[11:12:07] <cnc_valen> started off there
[11:12:57] <cnc_valen> hang on
[11:13:10] <cnc_valen> setp pid.0.maxoutput [AXIS_0]MAX_VELOCITY
[11:13:19] <cnc_valen> that is in hm2-servo
[11:13:23] <cnc_valen> that seems wrong
[11:14:00] <SWPadnos> if your PWM scale is set right, then it's not terribly wrong
[11:14:39] <cnc_valen> but changing max output in 5i23.ini will make no difference
[11:16:49] <cnc_valen> changed maxvel with no effect
[11:17:04] <SWPadnos> stop using emc for testing :)
[11:17:08] <cnc_valen> other than hitting the following limit sooner
[11:18:14] <SWPadnos> open up a halcmd shell, disconnect pid.0.output from the pwmgen input, and manually play with the parameters until you can get more than 1V (or 1.2V) out of the pemgen
[11:18:24] <SWPadnos> pwmgen
[11:18:29] <maximilian_h1> @cnc_valen: I suggest you write a script for halcmd with just the mesa drive loaded and no motion controller on top for just one axis
[11:19:32] <cnc_valen> I havent looked at that enough yet, I was hoping to get something to happen at all through the 'front end"
[11:20:17] <cnc_valen> SWPadnos how would I go about that
[11:20:36] <SWPadnos> it's possible that pncconf could help you. but I don't know whayt it would take to run it
[11:20:43] <SWPadnos> man halcmd
[11:20:45] <maximilian_h1> @cnc_valen: It is not terrible hard. Take your existing hal configuration.
[11:20:47] <cnc_valen> the hal docs seem great for halscope but lite on much else
[11:20:58] <maximilian_h1> you need to loadrt the mesa driver
[11:21:29] <SWPadnos> yep - make a smaller hal file that just loads the mesa driver and maybe a couple of PID
[11:21:34] <SWPadnos> then run it with halrun
[11:21:40] <maximilian_h1> you can start an interactive halcmd with halcmd -kf
[11:21:43] <SWPadnos> halrun your-file.hal
[11:21:48] <cnc_valen> come back next week then
[11:21:59] <SWPadnos> it's quite simple really
[11:22:07] <maximilian_h1> should not take you more than 1-2 hours
[11:22:09] <cnc_valen> lol when you know it
[11:22:13] <SWPadnos> man halrun
[11:22:20] <SWPadnos> it's *really* simple :)
[11:22:28] <maximilian_h1> all the skills you need is a howto on using a text editor
[11:22:37] <SWPadnos> and opening a terminal
[11:22:45] <maximilian_h1> and using a keyboard
[11:22:49] <cnc_valen> thats the thing the howto
[11:22:51] <SWPadnos> and reading
[11:23:02] <cnc_valen> 's are all set around halscope
[11:23:23] <cnc_valen> there is one entry in the wiki about servos and he got half way through and gave up
[11:24:04] <maximilian_h1> just copy your existing .hal to a new file
[11:24:16] <maximilian_h1> there is a loadrt line for a mesa card
[11:24:19] <maximilian_h1> keep that one
[11:24:39] <maximilian_h1> it will load the driver for your hardware
[11:24:42] <SWPadnos> hmmm. that won't work if it's based on hm2
[11:25:10] <SWPadnos> the sample hm2 configs use a lot of stuff from the ini file to set the board type and that kind of thing
[11:25:35] <maximilian_h1> then halcmd setp hm2_5i23.0.pwmgen.00.enable TRUE
[11:26:18] <maximilian_h1> and hm2_5i23.0.pwmgen.00.value to something
[11:26:59] <maximilian_h1> don't forget to addf hm2_5i23.0.read and hm2_5i23.0.write and hm2_5i23.0.pet_watchdog
[11:27:22] <cnc_valen> loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
[11:27:30] <maximilian_h1> @SWPadnos: ? What did i miss ?
[11:27:48] <cnc_valen> thats the loadrt line
[11:28:30] <cnc_valen> I can see the wiki getting a good going over once this is all done
[11:28:41] <maximilian_h1> @cnc_valen: Use the loadrt threads period1=something instead
[11:29:23] <cnc_valen> sorry you will have to be more detailed, I really don't know much about hal
[11:29:37] <cnc_valen> the documentation is both very high and low level
[11:29:56] <maximilian_h1> the EMCMOT is the motion controller, you don't need that one if you are talking to the hardware with halcmd directly
[11:30:32] <maximilian_h1> @cnc_valen: Please paste you current hal config to pastebin.ca ok ?
[11:31:50] <cnc_valen> http://www.pastebin.ca/1558249 5i23.ini
[11:32:09] <maximilian_h1> no, that is the ini file
[11:32:31] <maximilian_h1> there must be more ending in .hal in the very same directory
[11:32:33] <cnc_valen> http://www.pastebin.ca/1558250 hm2-servo.hal
[11:32:38] <cnc_valen> I was posting both
[11:33:19] <maximilian_h1> ok, you need
[11:33:21] <maximilian_h1> loadrt hostmot2 debug_idrom=1 debug_module_descriptors=1 debug_pin_descriptors=1 debug_modules=1
[11:33:27] <SWPadnos> eek
[11:33:33] <SWPadnos> debug shouldn't be necessary
[11:34:02] <SWPadnos> just loadrt hostmot2
[11:34:08] <cnc_valen> I didn't create it
[11:34:17] <SWPadnos> but that stuff is everywhere
[11:34:34] <SWPadnos> I know - that was created by seb, the hm2 driver author
[11:34:43] <SWPadnos> but you don't needthat type of debug output
[11:35:14] <maximilian_h1> loadrt hm2_pci hm2_pci config=hm2_pci"firmware=hm2/5i23/SVST8_4.BIT num_encoders=3 num_pwmgens=3 num_stepgens=0"
[11:35:15] <cnc_valen> so loadrt hostmot2 is line 1
[11:35:44] <cnc_valen> that would be line 2?
[11:35:47] <SWPadnos> yep
[11:36:06] <cnc_valen> spiffing
[11:36:16] <maximilian_h1> setp hm2_5i23.0.pwmgen.pwm_frequency 40000
[11:36:31] <SWPadnos> then loadrt threads name1=servo period1=1000000
[11:36:58] <maximilian_h1> setp hm2_5i23.0.watchdog.timeout_ns 00989680
[11:37:40] <SWPadnos> err
[11:37:53] <SWPadnos> that's no good
[11:38:11] <SWPadnos> watchdog timeout should probably be 4000000 or something
[11:38:18] <maximilian_h1> loadrt threads name1=servo-thread period1=1000000
[11:38:25] <maximilian_h1> that is 1 millisec
[11:38:27] <cnc_valen> setp hm2_[HOSTMOT2](BOARD).0.watchdog.timeout_ns 10000000
[11:38:35] <cnc_valen> thats the line in the file
[11:38:36] <SWPadnos> ok, 10 million
[11:38:52] <maximilian_h1> i was copying for the halcmd show all output
[11:39:08] <SWPadnos> what you need is more or less to change every instance of "[HOSTMOT2](BOARD)" to "5i23"
[11:39:09] <cnc_valen> thats interesting
[11:39:29] <SWPadnos> bbiab
[11:39:29] <maximilian_h1> addf hm2_5i23.0.read servo-thread
[11:39:49] <maximilian_h1> addf hm2_5i23.0.write servo-thread
[11:40:04] <maximilian_h1> addf hm2_5i23.0.pet_watchdog servo-thread
[11:41:04] <maximilian_h1> halcmd setp hm2_5i23.0.pwmgen.00.enable TRUE
[11:41:20] <maximilian_h1> setp hm2_5i23.0.pwmgen.00.value 1.0
[11:41:43] <cnc_valen> should i do that one interactivley?
[11:41:46] <maximilian_h1> and that should be it
[11:41:56] <maximilian_h1> the halcmd you can do interactively
[11:42:12] <maximilian_h1> the rest up in one debug.hal and run that from halrun
[11:42:18] <cnc_valen> I cant do the setp?
[11:42:26] <maximilian_h1> halcmd setp
[11:42:27] <cnc_valen> that ets the pwm output no?
[11:42:30] <cnc_valen> ahh
[11:42:45] <maximilian_h1> yes, that sets the pwn output
[11:42:57] <cnc_valen> Mind if i just pm you the file to check it?
[11:43:15] <maximilian_h1> and if it does not work, then it's much easier to check
[11:43:17] <maximilian_h1> pastebin it
[11:43:42] <cnc_valen> http://pastebin.ca/1558261
[11:44:11] <cnc_valen> the mouse on this is full of crap and the keybord is worse
[11:45:13] <maximilian_h1> line three and line 6, 7, 8 should have the same names for the thread
[11:45:26] <maximilian_h1> either use servo or servo-thread
[11:45:30] <maximilian_h1> but not boh
[11:45:32] <maximilian_h1> both
[11:45:46] <cnc_valen> yeah
[11:45:51] <cnc_valen> fixed
[11:46:15] <cnc_valen> so I should halrun that file?
[11:46:36] <maximilian_h1> the loadrt hm2_pci needs only the hm2pci once not twice right after loadrt
[11:47:08] <cnc_valen> fixed
[11:47:15] <maximilian_h1> pastebin again please
[11:47:41] <cnc_valen> http://pastebin.ca/1558264
[11:48:13] <maximilian_h1> looks good, halrun it
[11:48:46] <cnc_valen> hal.hal:4: parameter or pin 'hm2_5i23.0.pwmgen.pwm_frequency' not found
[11:50:48] <maximilian_h1> insert "show all" before the offending line and pastebin the output
[11:53:21] <cnc_valen> http://pastebin.ca/1558270
[11:54:07] <maximilian_h1> ups, somethings wrong with the loadrt
[11:55:42] <maximilian_h1> ok, got it
[11:56:10] <maximilian_h1> change line 2 to loadrt hm2_pci config="firmware=hm2/5i23/SVST8_4.BIT num_encoders=3 num_pwmgens=3 num_stepgens=0"
[11:56:34] <maximilian_h1> and halrun again and pastebin the output again
[11:56:52] <cnc_valen> i just fixed that myselflol
[11:56:58] <cnc_valen> it found the pins
[11:57:24] <cnc_valen> died on halcmd setp hm2_5i23.0.pwmgen.00.enable TRUE
[11:57:33] <cnc_valen> hal.hal:11: Unknown command 'halcmd'
[11:57:39] <maximilian_h1> a
[11:57:49] <maximilian_h1> remove halcmd because you are already in halcmd
[11:58:00] <maximilian_h1> just setp hm2_5i23.0.pwmgen.00.enable TRUE
[11:58:19] <cnc_valen> ok that runs with no errors
[11:58:26] <maximilian_h1> now halcmd -kf
[11:58:37] <maximilian_h1> that should give you an interactive halcmd
[11:58:43] <maximilian_h1> show all
[11:58:52] <cnc_valen> HAL: ERROR: rtapi init failed
[11:58:52] <cnc_valen> halcmd: hal_init() failed: -9
[11:58:52] <cnc_valen> NOTE: 'rtapi' kernel module must be loaded
[11:59:26] <cnc_valen> modprobe it or should that be done automagically
[11:59:48] <maximilian_h1> halrun -I debug.hal
[12:00:08] <maximilian_h1> or it will terminate the realtime environement
[12:00:46] <cnc_valen> that looks better
[12:00:51] <cnc_valen> got the prompt
[12:01:14] <cnc_valen> setp hm2_5i23.0.pwmgen.00.value 1.0 now/
[12:01:16] <cnc_valen> ?
[12:01:21] <maximilian_h1> setp hm2_5i23.0.pwmgen.00.value 1.0
[12:01:22] <cnc_valen> damn keyboard
[12:01:42] <cnc_valen> finger on power supply switch first ;->
[12:01:56] <cnc_valen> setting it to 0 will stop it yes?
[12:02:00] <maximilian_h1> yes
[12:02:16] <maximilian_h1> if you have the same potential to gnd, that is ;)
[12:02:17] <cnc_valen> hmm no noise
[12:02:39] <cnc_valen> no joy
[12:02:46] <maximilian_h1> show all to pastebin please
[12:02:49] <cnc_valen> no lights
[12:03:48] <cnc_valen> http://pastebin.ca/1558272
[12:06:56] <maximilian_h1> what values does hm2_5i23.0.pwmgen.00.value take ?
[12:07:34] <maximilian_h1> 1.14.1 Pins.enable(Bit, In) If true, the pwmgen will set its Not-Enable pin false and output its pulses. If "enable" is false, pwmgen will set its Not-Enable pin true and not output any signals..value(Float, In) The current pwmgen command value, in arbitrary units.
[12:07:35] <cnc_valen> can i get it to show just that?
[12:07:54] <maximilian_h1> value(Float, In) The current pwmgen command value, in arbitrary units.
[12:08:01] <cnc_valen> show hm2_5i23.0.pwmgen.00.value doesnt seemto work
[12:08:13] <maximilian_h1> getp hm2_5i23.0.pwmgen.00.value
[12:08:42] <cnc_valen> 1
[12:08:56] <cnc_valen> presumably means true?
[12:09:01] <maximilian_h1> arbitrary units
[12:09:10] <maximilian_h1> no it's a float
[12:09:26] <cnc_valen> oh right i thought you were talking about what you hadbefore
[12:09:37] <maximilian_h1> whatever arbitrary units mean
[12:10:03] <cnc_valen> means they dont have a measurement volts,amps meters etc
[12:10:07] <cnc_valen> typically
[12:10:44] <cnc_valen> it changes as i do the setp thing
[12:10:48] <maximilian_h1> increase hm2_5i23.0.pwmgen.00.value with setp hm2_5i23.0.pwmgen.00.value 10.0
[12:11:18] <cnc_valen> no change
[12:11:22] <cnc_valen> up t 100
[12:11:38] <maximilian_h1> problem is that i currently don't have a running mesa system here, or i could check that values it takes
[12:11:56] <maximilian_h1> yes up to 100
[12:12:10] <cnc_valen> i did that
[12:12:21] <maximilian_h1> result ?
[12:12:32] <cnc_valen> does it need stuff from # axis enable chain from the hal?
[12:12:36] <cnc_valen> nothing
[12:12:46] <cnc_valen> or i would have said something
[12:13:31] <cnc_valen> 10000 is still nothing
[12:13:44] <maximilian_h1> no it does not need axis
[12:13:58] <maximilian_h1> it's just the mesa hw and driver now
[12:14:13] <cnc_valen> k
[12:16:08] <cnc_valen> setp hm2_[HOSTMOT2](BOARD).0.pwmgen.01.output-type 1
[12:16:20] <maximilian_h1> ah
[12:16:23] <cnc_valen> something like that perhaps maximilian_h1/
[12:16:24] <maximilian_h1> thanks
[12:17:05] <maximilian_h1> convert that to setp hm2_5i23.0.pwmgen.01.output-type 1
[12:17:25] <maximilian_h1> setp hm2_5i23.0.pwmgen.00.output-type 1
[12:17:28] <cnc_valen> setp hm2_5i23.0.pwmgen.00.output-type 1
[12:17:30] <cnc_valen> yah
[12:17:52] <cnc_valen> run tht intertivley (after setting back to 1 output?0
[12:18:56] <maximilian_h1> yes, you can run that interactively
[12:19:15] <maximilian_h1> or but it in the debug.hal and halrun -I again
[12:19:41] <cnc_valen> tried both and put it above the enable
[12:19:43] <cnc_valen> no joy
[12:20:29] <maximilian_h1> hmm
[12:20:52] <cnc_valen> simple he says ;-p
[12:21:38] <maximilian_h1> hahaha, touche ;)
[12:22:17] <maximilian_h1> pastebin your debug.hal again please
[12:24:21] <cnc_valen> http://www.pastebin.ca/1558289
[12:26:43] <maximilian_h1> looks good
[12:27:04] <maximilian_h1> Do you have a scope ?
[12:27:13] <cnc_valen> not handy
[12:27:27] <cnc_valen> when axis drives it i can hear the motors
[12:27:31] <cnc_valen> thePWM
[12:27:40] <cnc_valen> and the boards light up
[12:27:56] <cnc_valen> that isnt happening
[12:28:37] <maximilian_h1> then something is missing :(
[12:29:07] <maximilian_h1> @anybody out there wants to join in debugging a mesa board ?
[12:29:08] <cnc_valen> addf motion-command-handler servo-thread
[12:29:08] <cnc_valen> addf motion-controller servo-thread
[12:29:16] <cnc_valen> addf motion-command-handler servo-thread
[12:29:17] <cnc_valen> addf motion-controller servo-thread
[12:29:20] <cnc_valen> sorry
[12:29:30] <cnc_valen> not either of those lines?
[12:29:34] <maximilian_h1> no, you don't have a motion controller, and you currently don't need one
[12:30:13] <maximilian_h1> please run halscope from the command line
[12:31:08] <cnc_valen> setp hm2_[HOSTMOT2](BOARD).0.pwmgen.00.scale [AXIS_0]OUTPUT_SCALE perhaps?
[12:31:42] <SWPadnos> just here for a sec - make sure the watchdog hasn't bitten
[12:31:52] <SWPadnos> and you did start threads, didn't you?
[12:32:04] <cnc_valen> http://www.pastebin.ca/1558289
[12:32:07] <maximilian_h1> yes he did
[12:32:10] <SWPadnos> (the command is "start")
[12:32:11] <cnc_valen> thats what i' running
[12:32:11] <SWPadnos> ok
[12:32:26] <cnc_valen> how do i chek the watchdog?
[12:32:33] <maximilian_h1> oh bloody hell yes
[12:32:59] <cnc_valen> do i need start somewhere/
[12:33:00] <cnc_valen> ?
[12:33:15] <maximilian_h1> enter start after you run halrun -I debug.hal
[12:33:20] <cnc_valen> ahh
[12:34:23] <cnc_valen> no change for any value
[12:34:29] <cnc_valen> how do i check wdt/
[12:34:47] <cnc_valen> hm2_5i23.0.watchdog.has_bit
[12:34:49] <maximilian_h1> getp hm2_5i23.0.watchdog.has_bit
[12:35:04] <cnc_valen> is false
[12:35:10] <maximilian_h1> then it's ok
[12:36:03] <maximilian_h1> do you have an oscilloscope
[12:36:24] <cnc_valen> not here
[12:36:43] <cnc_valen> but its pointless, when axis is running the motors try to run
[12:36:50] <cnc_valen> now they are not trying
[12:37:02] <maximilian_h1> do the motors get an extra enable ?
[12:37:15] <cnc_valen> how do you mean?
[12:37:28] <cnc_valen> there is no safey or limit switches
[12:37:45] <cnc_valen> power supply > mesa > motor
[12:38:05] <maximilian_h1> ok, because i have amps for the motors in between
[12:38:17] <cnc_valen> they are there too
[12:38:28] <cnc_valen> i have mesa drivers as well
[12:38:42] <cnc_valen> hmmm
[12:38:56] <maximilian_h1> do they need an extra enable ?
[12:39:28] <cnc_valen> not that i know of
[12:39:38] <cnc_valen> nothing outside the ini or hal files i posted
[12:40:48] <maximilian_h1> Could you please post this to the users list at emc-users@lists.sourceforge.net
[12:41:12] <cnc_valen> I'll do it when i get home
[12:41:23] <maximilian_h1> because unfortunately I don't know what to do further
[12:41:26] <maximilian_h1> sorry :(
[12:41:42] <maximilian_h1> please include the debug.hal that we created
[12:41:48] <cnc_valen> I wonder what the diff between when axis is running and when this is running
[12:41:51] <maximilian_h1> and the output of show all
[12:42:02] <cnc_valen> of a grep show all is
[12:42:10] <maximilian_h1> the difference is that axis talks to a pid controller in between
[12:42:13] <SWPadnos> what does halcmd show all tell us now?
[12:42:22] <SWPadnos> with the test seup
[12:42:24] <SWPadnos> etup
[12:42:26] <SWPadnos> setup
[12:42:27] <maximilian_h1> and that pid controller is setting values on the mesa board
[12:42:35] <cnc_valen> its in one of the pastebins lol
[12:42:47] <SWPadnos> after you started HAL threads
[12:43:47] <cnc_valen> http://pastebin.ca/1558312
[12:44:59] <maximilian_h1> setp hm2_5i23.0.pwmgen.00.value 1.0
[12:45:19] <SWPadnos> the watchdog timeout is listed as "just under 1 ms" (989680 ns)
[12:45:51] <cnc_valen> http://pastebin.ca/1558314 is the show all from when axis is trying to move a motor
[12:45:52] <SWPadnos> I wonder if the watchdog is actualy biting every time, but the "pet watchdog" function resets the bit at the end of the thread
[12:46:04] <maximilian_h1> i posted my debg.hal under http://www.pastebin.ca/1558313
[12:46:17] <SWPadnos> change period1 from 1000000 to 500000
[12:48:11] <cnc_valen> no change
[12:48:28] <maximilian_h1> setp hm2_5i23.0.watchdog.timeout_ns 100000000
[12:48:38] <SWPadnos> just to be absolutely sure, you did exit from halcmd, then re-do "halrun -I"? ...
[12:48:45] <cnc_valen> yes
[12:48:50] <SWPadnos> ok (had to check ;) )
[12:49:24] <SWPadnos> I don't know if you can change he watchdog period on the fly (maybe, but I don't know)
[12:49:36] <SWPadnos> that's why I suggested changing the period to be faster than the timeout
[12:49:55] <maximilian_h1> good point
[12:50:33] <cnc_valen> axis is setting theoutput to 10 when it is tryingto move
[12:51:08] <SWPadnos> axis doesn't set the PWM, PID does
[12:51:18] <cnc_valen> could you cast your eye over that one I posted recently with a view to comparing it with the output from the manual method?
[12:51:25] <SWPadnos> and if you still have coefficients of 1000 or so, it will saturate instantly
[12:51:44] <cnc_valen> whatever the point is when i run it through axis it tries to run
[12:51:50] <cnc_valen> the motors make noise
[12:52:00] <cnc_valen> lights turn on
[12:52:05] <SWPadnos> what lights?
[12:52:12] <cnc_valen> on the driver board
[12:52:19] <maximilian_h1> since .scale is at 1 the .value can have meaningful values from -1 to +1 if i am not mistaken
[12:52:42] <maximilian_h1> what driver board are you using ?
[12:52:57] <cnc_valen> dual 400w
[12:53:07] <cnc_valen> 7i40
[12:55:53] <maximilian_h1> the 7i40 has extra enable signals
[12:55:55] <maximilian_h1> 21 /ENA1 TO 7I40 45 /ENA3 TO 7I40
[12:55:55] <maximilian_h1> 23 /ENA0 TO 7I40
[12:56:09] <maximilian_h1> http://www.mesanet.com/pdf/motion/7i40man.pdf
[12:56:23] <SWPadnos> the PWM enable out should be correctly connected
[12:56:47] <ilya_> Wee-hee, ahee-we-he, ahe-he-he, ahe-he-he-ghe, what a wonderul wor-o-O-r-l-d!!!!!!!!!!!!!1
[12:56:54] <cnc_valen> so how i that being set?
[12:57:03] <cnc_valen> is
[12:57:07] <fenn> i'll take whatever ilya's having
[12:57:14] <cnc_valen> me too
[12:57:33] <fenn> * fenn settles for banana pudding and chocolate cake ice cream
[12:57:37] <SWPadnos> whenever the PWM is enabled, the output should be set
[12:57:48] <SWPadnos> that's in the PWM FPGA code
[12:58:21] <ilya_> fenn: I have installed old tape printer into Windows myself!!! I'll have a luck with EMC@!!!!!
[12:58:44] <fenn> i fail to see the connection
[12:58:55] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[12:59:36] <MarkusBec> MarkusBec is now known as MarkusBec_away
[12:59:36] <SWPadnos> cnc_valen, what version of EMC2 are you running?
[12:59:49] <cnc_valen> 2.3.3~pre
[12:59:59] <cnc_valen> I believe
[13:00:08] <SWPadnos> ok. maybe you should update
[13:00:25] <ilya_> printer has LPT port
[13:00:37] <cnc_valen> were there any changes to those areas?
[13:00:42] <SWPadnos> who knows when that was from (that's a self-compiled git checkout, I presume)
[13:00:51] <cnc_valen> yeah
[13:00:58] <cnc_valen> few months ago
[13:01:08] <cnc_valen> when the 2.3.3 relese was done
[13:01:14] <SWPadnos> then you need to use an "official" release, and see if it still happens
[13:01:22] <cnc_valen> because i am running the smp kernel
[13:01:42] <cnc_valen> if axis can run it and halcmd cant?
[13:01:52] <SWPadnos> there are multiple issues here
[13:02:18] <SWPadnos> and halcmd can, but you don't know how yet :)
[13:02:52] <cnc_valen> is there some way of seeing what axis is sending?
[13:03:06] <SWPadnos> axis doesn't send anything
[13:03:22] <cnc_valen> so axis doesn't talk to hal?
[13:03:38] <SWPadnos> axis is the user interface, which asks the interpreter to do things, which gets the motion controller to make the PID cause the motors to move
[13:03:40] <maximilian_h1> I really suggest that you write an email to the users list with the debug.hal and the show all output included or pastebin'ed
[13:03:47] <SWPadnos> there are some, but they're not direct to the motors
[13:03:59] <SWPadnos> that may be too much information
[13:04:13] <cnc_valen> the point i was making is that when I ask it to do something stuff hppens
[13:04:16] <SWPadnos> most of the parameters aren't explicitly set, and are not likely to be useful
[13:04:23] <SWPadnos> sure, but not what you expect
[13:04:25] <cnc_valen> so there is some box it is setting that we are not
[13:04:43] <cnc_valen> I dont expect much ;-P
[13:04:51] <SWPadnos> could be, but a quick look at the halcmd show outputs didn't tell me what it is
[13:06:22] <cnc_valen> removing my nice shiny debs now
[13:06:58] <cnc_valen> if this makes a difference i'll buy you a coke
[13:07:09] <SWPadnos> yay
[13:07:16] <SWPadnos> the next time I'm in Australia
[13:07:27] <archivist> * archivist sips pepsi
[13:08:22] <maximilian_h1> @cnc_valen: I got to run
[13:08:41] <cnc_valen> thanks for the effort
[13:08:42] <maximilian_h1> sorry to leave you with unfinished problems
[13:08:49] <cnc_valen> no worries
[13:09:10] <maximilian_h1> When you find out, could you write it up for the wiki
[13:09:12] <maximilian_h1> ?
[13:09:36] <cnc_valen> If i manage to get a servo system working i'm making an atual how to for it
[13:10:06] <maximilian_h1> My last debug.hal based on your chat is here: http://www.pastebin.ca/1558313
[13:10:58] <cnc_valen> rebooting to use the uniprocessor kernel
[13:11:07] <maximilian_h1> bbl
[13:11:28] <ilya_> * ilya_ escapes peeling of potatoes for a whole family. Later on: Eating The Soup.
[13:17:01] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[13:18:00] <cnc_valen> no change on stock kernel and emc
[13:19:41] <cnc_valen> any more ideas?
[13:20:24] <cnc_valen> SWPadnos?
[13:20:34] <SWPadnos> I'd have to think about it
[13:20:54] <cnc_valen> ok well its 11:00PM and i'm freezing
[13:21:00] <cnc_valen> back later from my place
[13:21:04] <SWPadnos> now I'd suggest that you email the user list, and include the debug.hal file you're using for testing
[13:21:12] <cnc_valen> will do
[13:21:33] <SWPadnos> I think you don't need all the halcmd show outputs at this stage - just describe what EMC2 did, and then what you did with this hal file
[13:21:45] <SWPadnos> and what you saw, of course
[14:21:49] <numen> hi
[14:22:24] <numen> can anyone explain me, why on referenze drive it has an hit limit in home state 8 and joint 2 on limit switch error?
[14:23:25] <cradek> when you tried to home, it hit a limit switch
[14:24:12] <numen> yes i know
[14:24:21] <numen> but limited switch is home switch, too...
[14:24:54] <clip9> I think you need to do some hal trick for that to work.
[14:24:59] <cradek> clip9: no
[14:25:15] <cradek> numen: you have to tell emc to ignore limit switches during homing then
[14:25:31] <SWPadnos> and tell it that HOME_IS_SHARED
[14:25:51] <cradek> SWPadnos: not unless it is
[14:26:05] <cradek> numen:
[14:26:05] <cradek> numen: 09:24 < numen> yes i know
[14:26:05] <cradek> 09:24 < numen> but limited switch is home switch, too...
[14:26:08] <cradek> oops
[14:26:11] <SWPadnos> right :)
[14:26:12] <cradek> numen: http://www.linuxcnc.org/docs/html/config_ini_homing.html
[14:26:53] <jepler> but if the input is home for X and limit for Y, then just specifying HOME_IGNORE_LIMIT is not enough, because when homing X that only makes the X limits be ignored
[14:27:59] <numen> now its joint2 following error
[14:28:37] <numen> why?
[14:29:13] <numen> how can i fix that?
[14:31:41] <numen> or what is the following error
[14:34:49] <numen> can anyone help me?
[14:57:48] <numen> noone an idea?
[15:32:59] <pcw_home> cnc_valen: How is the current limit set on the 7I40? The 7I40L has 7.5 and 15 A current limits
[15:33:01] <pcw_home> if set for 7.5, it may just be current limiting with your scooter motors
[15:33:03] <pcw_home> (and that would be the sound you hear since 40 KHz is inaudible)
[15:33:04] <pcw_home> (a red LED should light on the 7I40 if you are in current limit)
[16:26:27] <numen> can anyone explaine me, why i allways have joint 2 following error?
[16:30:26] <SWPadnos> steppers or servos?
[16:30:33] <numen> steppers
[16:30:41] <SWPadnos> you have stepgen misconfigured
[16:31:03] <numen> where to find?
[16:31:04] <SWPadnos> there is probably a message on the terminal or in dmesg that tells you that the stepgens can't reach the speed you have them configured for
[16:31:24] <SWPadnos> how did you make the config?
[16:31:38] <numen> what a value should i take for stepgen_maxaccel?
[16:31:50] <SWPadnos> you have to determine that
[16:31:58] <numen> first one, i did with the config tool,but i changed
[16:32:10] <numen> atm it is 18,75
[16:32:22] <SWPadnos> stepgen_maxacell should be whatever is safe for your motors, and the axis limits should be a little lower than that
[16:34:13] <numen> max velocity is 6.5 max acceleration is 15
[16:36:07] <numen> are these values ok?
[16:36:08] <issy> hi all
[16:36:20] <SWPadnos> run emc from a terminal, and look for a message from stepgen
[16:36:52] <SWPadnos> it's likely that your BASE_PERIOD and latency can't get to 6.5 units/sec
[16:37:14] <SWPadnos> which means that you will need to lower that limit
[16:38:24] <numen> how will i have to start in terminal?
[16:38:41] <SWPadnos> emc
[16:40:49] <numen> this brings error
[16:41:20] <numen> aplication initialization failed: no display name and no $display environment variable
[16:41:59] <bill2or3> are you ssh'd in from another machine?
[16:42:06] <bill2or3> or maybe su'd to root?
[16:42:09] <SWPadnos> on the same computer that you run from an icon or the applications menu?
[16:47:18] <numen> yes, im not root, normal user
[16:50:58] <numen> something wrong?
[16:51:10] <bill2or3> try typing 'xterm' and see if that runs.
[16:54:42] <numen> display not set
[16:56:20] <bill2or3> are you logged into the X11 window system, or just at a text console?
[16:56:27] <bill2or3> you need to be using X
[17:18:26] <BigJohnT> 256k in the shop :)
[17:18:34] <BigJohnT> off to work now
[17:20:15] <ZeroFlex_afk> Loa peeps
[17:21:12] <ZeroFlex_afk> Yha bought myselfe a milling machine
[17:23:27] <archivist> the Maho?
[17:25:54] <EbiDK|AWAY> http://icanhascheezburger.com/2009/09/08/funny-pictures-request-cause-its-stupid/
[17:32:19] <ZeroFlex_afk> yep
[17:32:53] <ZeroFlex_afk> only one downside, it doesnt have ballscrews mounted on it
[17:33:24] <archivist> servos need ballscrews
[17:33:49] <ZeroFlex_afk> yep
[17:34:17] <archivist> or very good backlash control with acme screws
[17:35:04] <archivist> I looked under the leadscrew cover on my new to me lathe today...ballscrew :)
[17:35:39] <Guest791> can anyone point me to a good place to learn about using emc2 to retrofit a servo cnc lathe?
[17:36:16] <archivist> the wiki and the docs, and here for the occasional question
[17:36:40] <ZeroFlex_afk> hmm, according to the sevice engineeres it should be normal screw (building dat eof the machine)
[17:39:50] <Guest791> thanks, I guess I'll install and read the docs.
[18:44:48] <motioncontrol> good evening at all.i want connetion for feedback the x axis a linear encoder.what is the resolution i write in setp hm2_5i20.0.encoder.00.scale ? i have thing the count read for 1mm ?
[19:49:35] <ZeroFlex> jadda jadda jada (damn those disconnects all the time
[19:53:41] <ZeroFlex> just tried out my new speedglass with adflo system, works fine
[19:57:37] <mindlover> Where do I assign /Roughing offset/ along with /depth per pass/? Picture at /gui_image-to-gcode.html/ doesn't show such input fields!
[20:19:18] <ZeroFlex> what can one expect when using a scanner in your millhead ? wil it be high res
[20:19:18] <ZeroFlex> ?
[21:06:15] <twice2> installed linux-ubuntu-modules but no joy, wireless did not 'just work'. system>admin>hardware drivers only shows nividia. so i added ath_pci to /etc/modules file >reboot and modules load but i have not a trace of a wireless connection, at least that i can find. anyone point me? thanks
[21:08:58] <anonimasu> twice2: what wireless card do you have?
[21:09:13] <twice2> linksys wmp110
[21:09:41] <anonimasu> ah a pci one :S
[21:09:45] <anonimasu> sorry I dont know about thoose
[21:10:11] <ZeroFlex> look @ the wifi chip onboard the card
[21:10:12] <twice2> well cisco
[21:10:19] <ZeroFlex> type en numbers
[21:13:50] <twice2> i had it running with windows driverand ndis wrapper but i suspect that to be the cause of random rtapi error
[21:14:21] <twice2> ok, hang on please let me get a screwing driver
[21:14:57] <ZeroFlex> if you see te actual type name/number you can search for the driver for linux
[21:17:50] <twice2> what numbers, mac and serial?
[21:18:11] <ZeroFlex> what type of chip it is
[21:19:55] <twice2> chip? it's a big metal shield. are u dickin with me?
[21:20:18] <ZeroFlex> owh ?
[21:21:14] <ZeroFlex> http://www.mp3car.com/vbulletin/attachments/wireless-communications/16022d1119240943-how-extend-antenna-your-wifi-pci-card-smaller.jpg <<--- something like that ?
[21:26:23] <ZeroFlex> "It appears that your chip is an AR5416, which is supported under the madwifi ath9k package. You may have to download that directly from madwifi.org. It's also possible that the madwifi package will work, but again you may have to use one downloaded from madwifi.org.
[21:26:32] <ZeroFlex> that i found on a forum on the net
[21:26:43] <ZeroFlex> its about the card you have
[21:28:22] <ZeroFlex> http://www.linuxquestions.org/questions/linux-wireless-networking-41/debian-linksys-wmp110-674232/ <<--- the forum article
[21:36:42] <twice2> ZeroFlex: thanks, yes ar5416, i've read that thread before. i dunno
[21:40:39] <ZeroFlex> here is some article with a solution with the ar5416 chip
[21:40:40] <ZeroFlex> http://ubuntuforums.org/showthread.php?t=668272
[21:53:14] <twice2> ZeroFlex: i love that post 'wifi total crapshoot'
[21:53:22] <ZeroFlex> :)\
[21:53:58] <ZeroFlex> on that topic the chip is mounted on a d-link card
[21:56:32] <ZeroFlex> with linux, i found it for myselfe always a lots easier with hardware drivers to get a look on the hardware itselfe for numbers/type's
[21:56:48] <ZeroFlex> and search on those in combination with the distro u run
[21:57:12] <twice2> yeah, i'll prob recompile with ath9k and see
[21:58:09] <ZeroFlex> u dont have an other wifi card ?
[21:58:19] <ZeroFlex> saneo or intel ?
[21:58:39] <twice2> no, and this may be the last
[22:00:01] <ZeroFlex> hmm got agrivated with wifi cards
[22:02:28] <twice2> no gripes, ubuntu free, emc free (guilt)...
[22:02:54] <ZeroFlex> hmm
[22:03:07] <ZeroFlex> mja, i need to setup my emc yet
[22:03:17] <ZeroFlex> dont have a machine but will arive soon
[22:03:55] <twice2> nice, go slow first, no crash :)
[22:04:02] <ZeroFlex> lolz
[22:04:23] <ZeroFlex> need to pick a electrical/servo or stepper setup first
[22:04:24] <ZeroFlex> :)
[22:05:30] <twice2> i have wooden mill with steppers, amazing how good it cuts
[22:06:04] <ZeroFlex> i have bought today a little industrial mill
[22:06:21] <ZeroFlex> deckel maho mh300 (with nc of heidenhain on it)
[22:06:38] <twice2> ahh, metal too
[22:07:39] <ZeroFlex> yha
[22:07:50] <twice2> glass feedback scales then
[22:08:04] <ZeroFlex> but i'm in a fase right now, that i must choose what type of system stepper or sevo
[22:08:10] <twice2> servo for you
[22:09:47] <ZeroFlex> yha dont know (price tag)
[22:10:06] <ZeroFlex> the machine i have, has just one motor standard on it
[22:10:30] <ZeroFlex> it turns the axis one at the time (sort of gearbox in it)
[22:12:21] <mindlover> http://tehtran.com/ -- I don't understand if it creates g-code or some another prgram with commands.
[22:12:36] <twice2> imho, feedback with steppers is useless
[22:13:07] <ZeroFlex> why ? u have closed loop or do i see it the wrong way ?
[22:13:16] <ZeroFlex> the problemm is
[22:13:23] <mindlover> G-code is a standard for CNC? Or there can be another command language?
[22:13:48] <ZeroFlex> servo's that i think i should use, wil cost arround 3 to 600 euro's on ebay
[22:16:00] <mindlover> http://www.tehtran.com/postprocessor.html means it uses G-code with these brand systems, doesn't it?
[22:16:19] <mindlover> I have been told we have licensions to this software.
[22:16:45] <ZeroFlex> mindlover: dont know, sorry
[22:16:53] <fenn> mindlover: g-code is not standardized between manufacturers
[22:17:06] <fenn> it is mostly the same idea though
[22:17:17] <mindlover> Thanks.
[22:17:22] <mindlover> I'm ilya_
[22:17:48] <ZeroFlex> lol
[22:17:54] <ZeroFlex> why another name ?
[22:18:44] <twice2> guess it depends on how much a scrap part is worth to you :/ cya
[22:18:47] <mindlover> Another computer, another name.
[22:19:00] <BigJohnT> * BigJohnT is finally on super mega high speed internet 256kbs
[22:19:15] <bill2or3> * bill2or3 stands back!
[22:19:25] <mindlover> I was at 1024 KBps ADSL once
[22:19:26] <BigJohnT> but I can't get my wireless router to work :(
[22:19:34] <ZeroFlex> servo's just an expensieve piece of shit :D
[22:19:48] <BigJohnT> I've been at 49kbps for 13 years
[22:20:06] <BigJohnT> and was at 9600 baud before that
[22:20:11] <fenn> welcome to the 90's
[22:20:20] <BigJohnT> lol
[22:20:25] <fenn> is that ISDN?
[22:20:29] <BigJohnT> when you live out in the woods fenn
[22:20:33] <BigJohnT> radio
[22:20:48] <fenn> i thought it would be faster than that
[22:20:54] <mindlover> I'm at 9.1 KBps GPRS via cell phone
[22:20:58] <ZeroFlex> lolz
[22:21:01] <BigJohnT> for more money it can go to 1 meg
[22:21:15] <ZeroFlex> my telefone does 1024 down en 300 up or so
[22:21:16] <ZeroFlex> :d
[22:22:32] <BigJohnT> I can plug my internet into my computer and it works... and into my hub and then into my computer and it work but not in the wireless router
[22:22:44] <ZeroFlex> ?
[22:23:10] <ZeroFlex> and what is the reason for it BigJohnT
[22:23:12] <ZeroFlex> ?
[22:43:59] <BigJohnT_> BigJohnT_ is now known as BJT_basement
[22:44:15] <BJT_basement> well that works anyway
[22:45:18] <BJT_basement> * BJT_basement wonders if the wireless router will work down here on a windoz machine
[22:45:30] <BJT_basement> where is SWPadnos when you need him
[22:46:06] <BJT_basement> * BJT_basement wanders off to collect it and give it a try
[22:49:40] <MarkusBec> MarkusBec is now known as MarkusBec_away
[22:57:42] <toastydeath> thundercats, ho
[22:59:46] <Jymm> toastydeath: reliving your youth?
[23:00:34] <toastydeath> i never really got to watch thundercats =(
[23:06:48] <BJT_basement_> Jimmy crack corn and I don't care where the wireless router is so long as it works
[23:06:57] <BJT_basement_> seems to like windoz
[23:25:53] <jthornton> well now everything is working except one network card
[23:52:30] <ily1> ily1 is now known as ilya_
[23:52:42] <ilya_> ilya_ is now known as igalkin