#emc-devel | Logs for 2008-07-13

Back
[03:43:10] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/config_gtk.c: add some functions to modbus page
[03:45:25] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/protocol_modbus_master.c: add some more reading/writing functions to modbus master-
[03:45:38] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/protocol_modbus_master.h: add some more reading/writing functions to modbus master-
[04:01:13] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/zEMC_README.txt: update changes
[04:06:53] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/protocol_modbus_master.c: forgot to quiet messages
[05:28:15] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/classicladder.h: little define added for modbus
[05:29:43] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/config_gtk.c: make the config window tell you when no modbus configuration loaded
[05:34:44] <CIA-32> EMC: 03cmorley 07TRUNK * 10emc2/src/hal/classicladder/protocol_modbus_master.c: make debug default to 0 -quiet
[12:49:29] <CIA-32> EMC: 03bigjohnt 07v2_2_branch * 10emc2/docs/AUTHORS: spell checking
[12:49:30] <CIA-32> EMC: 03bigjohnt 07v2_2_branch * 10emc2/docs/src/config/ (6 files): spell checking
[12:49:37] <CIA-32> EMC: 03bigjohnt 07v2_2_branch * 10emc2/docs/src/common/ (Glossary.lyx integrator_intro.lyx): spell checking
[12:54:04] <CIA-32> EMC: 03bigjohnt 07TRUNK * 10emc2/docs/AUTHORS: Added my name to the list
[14:10:19] <alex_joni> BigJohnT: hi
[14:10:31] <alex_joni> seems this change didn't go as smoothly as you thought it would: http://cvs.linuxcnc.org/cvs/emc2/docs/AUTHORS.diff?r1=1.9;r2=1.10
[14:10:58] <alex_joni> (the diff should have been a single line of +...), might be that your editor converted tabs to spaces or the other way around..
[14:11:21] <alex_joni> (in this case it's no big problem.. but changes like this can become a problem when you checkin code..)
[14:12:13] <alex_joni> BigJohnT: v. 1.9 http://cvs.linuxcnc.org/cvs/emc2/docs/AUTHORS?rev=1.9;content-type=text%2Fplain
[14:12:27] <alex_joni> and v. 1.10 http://cvs.linuxcnc.org/cvs/emc2/docs/AUTHORS?rev=1.10;content-type=text%2Fplain
[14:28:51] <BigJohnT> hi I'm back
[14:29:40] <BigJohnT> I actually tabbed all the names over so they would line up :)
[14:34:00] <BigJohnT> hmm, I have gedit configured to convert tabs to spaces...
[14:46:37] <alex_joni> well.. you probably didn't use a fixed width font
[14:47:21] <BigJohnT> it was a mix of tabs and spaces so I changed it to all spaces
[14:48:24] <BigJohnT> the font should have not changed...
[14:52:07] <alex_joni> well.. it doesn't look aligned anymore :)
[14:52:21] <BigJohnT> 1.11?
[14:52:32] <alex_joni> 1.11 is ok.. sorry :)
[14:52:39] <alex_joni> * alex_joni kicks CIA-32
[14:52:39] <CIA-32> ow
[14:52:52] <alex_joni> report already :P
[14:53:53] <BigJohnT> I took the comp311.ngc file and changed it a bit and added lots of comments http://pastebin.ca/1070902
[14:54:38] <BigJohnT> It was a mix of G1 lead in with an arc tacked on so I made it a straight lead in and out as an example
[15:06:23] <BigJohnT> * BigJohnT wants to kick CIA-32 too
[15:09:03] <alex_joni> bbl
[15:09:13] <BigJohnT> see u later
[15:24:28] <BigJohnT> I think I broke CIA-32
[15:25:17] <BigJohnT> bbl
[15:25:47] <CIA-32> EMC: 03bigjohnt 07TRUNK * 10emc2/docs/AUTHORS: Removed mixture of tabs and spaces and replaced with spaces
[15:26:26] <CIA-32> EMC: 03bigjohnt 07TRUNK * 10emc2/nc_files/comp-g1.ngc: Added example of a G1 lead in for cutter comp
[16:49:25] <jmkasunich> BigJohnT: I think CIA-32 doesn't like you - 1 minute after you left, it reported your commits
[16:59:24] <BigJohnT> lol you may be right
[17:00:34] <BigJohnT> jmkasunich: do you want me to add something in the manual for the pyvcp timer?
[17:01:41] <jmkasunich> sure
[17:01:51] <BigJohnT> ok
[17:02:05] <jmkasunich> (I was being lazy - I wasn't sure how to capture the screenshots that all the other widgets have
[17:02:38] <BigJohnT> I tried running the example but it gave me errors
[17:02:50] <jmkasunich> what example?
[17:03:02] <BigJohnT> let me look it up
[17:04:28] <BigJohnT> this one where you run the pyvcp from a terminal http://www.linuxcnc.org/docview/html//hal_vcp.html#r1_2
[17:04:53] <BigJohnT> this "pyvcp -c mypanel tiny.xml" gave me an error
[17:05:35] <jmkasunich> let me experiment a bit
[17:05:50] <BigJohnT> ok
[17:06:44] <jmkasunich> interesting - it runs fine for me
[17:06:51] <jmkasunich> (I'm using sim at the moment)
[17:06:52] <BigJohnT> hmmm
[17:07:10] <jmkasunich> cvs trunk checkout, run in place
[17:07:19] <BigJohnT> that's what I have
[17:07:29] <BigJohnT> did you run it from the terminal?
[17:07:31] <jmkasunich> can you paste the error?
[17:07:32] <jmkasunich> yes
[17:07:38] <BigJohnT> one moment
[17:07:48] <jmkasunich> jmkasunich@mahan:~/emcdev/emc2head$ pyvcp ledtest.xml
[17:07:48] <jmkasunich> pyVCP: Creating widgets from ledtest.xml ... Done.
[17:07:48] <jmkasunich> jmkasunich@mahan:~/emcdev/emc2head$
[17:09:03] <jmkasunich> jmkasunich@mahan:~/emcdev/emc2head$ cat ledtest.xml
[17:09:03] <jmkasunich> <pyvcp>
[17:09:03] <jmkasunich> <label text="This is a LED indicator"/>
[17:09:03] <jmkasunich> <led/>
[17:09:03] <jmkasunich> </pyvcp>
[17:10:48] <BigJohnT> jet@Linux2:~/emc2-trunk$ pyvcp -c mypanel ledtest.xml
[17:10:50] <BigJohnT> RTAPI: ERROR: could not open shared memory (errno=2)
[17:10:52] <BigJohnT> HAL: ERROR: rtapi init failed
[17:10:54] <BigJohnT> Error: Multiple components with the same name.
[17:11:27] <jmkasunich> it looks like you already have a HAL running, and maybe a pyvcp too
[17:11:40] <jmkasunich> try halcmd show comp, see if anything is there
[17:11:42] <BigJohnT> is this because I have both trunk and 2.2.x installed as run in place
[17:11:56] <jmkasunich> maybe
[17:12:04] <jmkasunich> you _can_ have several rip installes
[17:12:07] <jmkasunich> installs
[17:12:15] <jmkasunich> but you can't run more than one at a time
[17:12:17] <BigJohnT> jet@Linux2:~/emc2-trunk$ halcmd comp
[17:12:19] <BigJohnT> RTAPI: ERROR: could not open shared memory (errno=2)
[17:12:21] <BigJohnT> HAL: ERROR: rtapi init failed
[17:12:22] <BigJohnT> halcmd: hal_init() failed: -9
[17:12:24] <BigJohnT> NOTE: 'rtapi' kernel module must be loaded
[17:12:40] <jmkasunich> did you run emc-environment?
[17:12:58] <BigJohnT> I don't remember doing that
[17:13:19] <jmkasunich> gotchas about run-in-place:
[17:13:36] <BigJohnT> I do a .configure.... and make and make sudo setid
[17:13:55] <jmkasunich> 1) must do ". scripts/emc-environment" in the top level directory for _every_ shell you want to use to run stuff
[17:14:23] <jmkasunich> (that sets environment vars, etc, so they point to the run-in-place, otherwise you tend to get the installed stuff instead
[17:14:41] <jmkasunich> 2) can't switch from one rip install to another in the same shell
[17:14:59] <BigJohnT> ok, thanks
[17:16:37] <BigJohnT> well time to go ttul
[17:17:08] <jmkasunich> I'll take a shot at documenting timer
[17:17:23] <BigJohnT> ok
[17:20:33] <skunkworks> jmkasunich: this is very similar..
[17:20:36] <skunkworks> http://www.cnczone.com/forums/attachment.php?attachmentid=56042&d=1206125233
[17:20:57] <jmkasunich> can't read it
[17:21:07] <jmkasunich> (says something about logging in)
[17:21:08] <skunkworks> hold on
[17:21:34] <skunkworks> yah- you would have to loggin to cnczone. Let me get it
[17:34:13] <skunkworks> http://www.electronicsam.com/images/KandT/servostart/schematic.png
[17:34:22] <skunkworks> maybe using v11 to reset?
[17:35:13] <jmkasunich> I must say - Eagle seems unique in its ability to cause people to draw hideous schematics
[17:36:22] <jmkasunich> it sure looks like the reset is still coming from only one side
[17:49:36] <skunkworks> heh ;)
[17:55:29] <skunkworks> I don't like how they call it pwm and not-pwm. I think that is confusing to people. (but it may just be me)
[17:56:37] <jmkasunich> there are different "flavors" of PWM used to drive H-bridges - one of them drives the two sides of the bridge with opposite polarity at all times
[17:56:53] <jmkasunich> maybe that design uses that approach
[18:13:46] <skunkworks> doesn't that solve the reset issue? if there is alwas an inverted signal on the other bridge?
[18:14:06] <skunkworks> (thought about that while showering) ;)
[18:18:19] <skunkworks> * I didn't mean bridge..
[18:18:55] <skunkworks> * totem pole
[18:23:53] <jmkasunich> true, _if_ they always run the two sides of the bridge opposite
[18:24:09] <jmkasunich> but doing so causes more ripple current in the motor
[18:27:23] <skunkworks> so - I think I can breadboard that and test it.. (using a OR gate for pwm+pwm)
[18:27:51] <skunkworks> just to play around