#emc | Logs for 2011-10-09

Back
[00:00:01] -!- andypugh has quit [Quit: andypugh]
[00:00:23] <PasstScho> just wanted to ask why he always uses boolean operators for bit manipulation ;)
[00:00:44] -!- Eartaker has quit [Ping timeout: 256 seconds]
[00:02:06] <Jymmm> why who?
[00:03:16] <PasstScho> andypugh
[00:03:46] <PasstScho> http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/id,10910/catid,38/limit,6/limitstart,30/lang,english/#11009
[00:03:48] * JT-Shop wonders why the max speed of a Ural is only 65mph
[00:04:50] <jdhNC> so people have time to say "wtf is that goofy looking thing"
[00:05:31] <cradek> he's assigning a boolean value representing one bit to each pin
[00:06:22] <cradek> er no, I agree it is wrong
[00:06:29] <PasstScho> you know the time period between failures at 65mph - now imagine the period at higher speed (and speed always was ³ in the lifetime-calculation... wasn't it?) :D
[00:07:19] <PasstScho> cradek: but it seems to work as noone complained? ^^
[00:07:49] <PasstScho> well maybe the compiler uses the same commands for both...
[00:08:31] <cradek> more likely the code in a web bbs conversation isn't the final code
[00:08:41] <PasstScho> yeah ok ;)
[00:09:02] <PasstScho> but he already did that in a earlier post
[00:09:02] <cradek> http://git.linuxcnc.org/gitweb?p=emc2.git;a=blob_plain;f=src/hal/drivers/pcl720.comp;hb=HEAD
[00:09:12] <PasstScho> maybe i should tell him ^^
[00:09:33] <PasstScho> ah ok, that looks better :)
[00:10:29] <skunkKandT> heh - I am going to run a 1/4 mill 1 inch deep. I think I need to get bigger stock so I can use bigger mills.
[00:10:49] <cradek> it'd be a little more defensive to write pin_in(i) = !!(R & (1<<i)); or somesuch
[00:11:06] <cradek> we've had some bugs with people testing pins with if(pin==1) or equivalent, instead of the correct if(pin)
[00:11:14] <PasstScho> well another short question... does "comp" do real C programs and supports the extensions for hal? or is it just some c-stile thingie? .oO
[00:12:06] <PasstScho> well i already had a discussion on those boolean stuff with someone else
[00:12:12] <cradek> not sure what you're asking. it does a lot of the hal boilerplate for you.
[00:13:00] <PasstScho> as pin is not a boolean type, you simply shouldn't use it like boolean [if (pin) ...] i'd do [if (pin != 0)]
[00:13:41] <PasstScho> if course both work and i am not too much fixed on the integer-way... but it kinda feels better than the beautiful boolean way ;)
[00:13:55] <Jymmm> Hi cradek!
[00:14:31] <PasstScho> cradek: i am just asking if i can use every normal c library & function in those components?
[00:14:54] <PasstScho> like serial-port-functions...
[00:15:06] <PasstScho> (not raw inp/outp)
[00:15:08] -!- Loetmichel has quit [Ping timeout: 260 seconds]
[00:15:53] <cradek> if you are realtime, you're in kernel space, so you don't have much.
[00:16:09] <PasstScho> hm ok :-/
[00:16:34] <PasstScho> never programmed kernel stuff before :/
[00:18:25] <alex4nder> PasstScho: what's a serial port function?
[00:18:42] <PasstScho> well i just know it from windows... WriteFile
[00:19:12] <PasstScho> real serial output on the rs232 port instead of manual pin-switching with inp/outp
[00:19:13] <alex4nder> well you can do anything from kernel space, but it's not like being in user-space
[00:19:27] <alex4nder> so the short answer is: no.
[00:19:27] <Jymmm> or hyperspace
[00:19:52] <alex4nder> the long answer is yes, but you have to be careful and figure out exactly how to access available kernel services to do what you want.
[00:20:05] <PasstScho> hm damn, so it seems to be more complicated ;-)
[00:20:06] -!- Eartaker [Eartaker!~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined #emc
[00:20:24] -!- Loetmichel [Loetmichel!Cylly@84.177.54.208] has joined #emc
[00:25:52] <PasstScho> well i think i have to sleep a night about it
[00:25:55] <PasstScho> or two ;)
[00:26:04] <PasstScho> gn8 & thanks again!
[00:29:31] -!- elmo40 [elmo40!~Elmo40@CPE0017ee09ce6d-CM001bd7a89c28.cpe.net.cable.rogers.com] has joined #emc
[00:36:27] -!- A2Sheds has quit [Quit: puff of smoke]
[00:40:30] -!- elmo40 has quit [Ping timeout: 252 seconds]
[00:45:31] -!- |n0b0dy| [|n0b0dy|!~asdf@71-11-160-249.dhcp.sprn.tx.charter.com] has joined #emc
[00:45:51] <|n0b0dy|> when you google : upgrade site:linuxcnc.org do you get a bunch of spam too?
[00:45:58] -!- A2Sheds [A2Sheds!~no@unaffiliated/l84supper] has joined #emc
[00:46:59] <skunkKandT> I think that is a known issue. something about the site was hacked for a bit.. don't remembe
[00:47:28] <|n0b0dy|> well it still redirects to a site...
[00:47:33] <|n0b0dy|> www.linuxcnc.org/component/option,com...20/.../lang,russian/
[00:47:55] <|n0b0dy|> this is the old folder layout for joomla and components...
[00:48:06] -!- elmo40 [elmo40!~Elmo40@CPE002129acb2d3-CM001bd7a89c28.cpe.net.cable.rogers.com] has joined #emc
[00:52:26] -!- A2Sheds has quit [Quit: puff of smoke]
[01:04:16] -!- Eartaker has quit [Ping timeout: 248 seconds]
[01:10:22] -!- robh__ has quit [Ping timeout: 260 seconds]
[01:11:59] -!- PasstScho has quit [Ping timeout: 258 seconds]
[01:12:47] <|n0b0dy|> a little hand holding before i upgrade from 2.4.3 to 2.4.6 ... the conf files are fwd compatible? and I only need the /home/usr/emc2/config/mill.stepconf and mill folder?
[01:13:26] <cradek> the package update won't touch your home directory
[01:14:12] <cradek> for minor version number changes (number after the last dot), we never break config file compatibility
[01:17:32] <|n0b0dy|> well the computer is internet-less in the garage and was just gonna upgrade from a live cd... still a go? or should use the internet?
[01:20:00] <cradek> two problems: it's silly to reinstall a whole OS to upgrade a package, and the live cd doesn't have the latest emc version anyway, because package upgrades are so easy it's not worth anybody's time to update it.
[01:20:27] <cradek> sometimes you can just copy the new .deb file; I'm not sure if that's the case for 2.4.3 -> 2.4.6.
[01:20:45] <|n0b0dy|> roger
[01:20:46] <cradek> if you can get it a net connection and just run the updater, that's by far your best path
[01:20:52] <|n0b0dy|> rgr
[01:31:44] <|n0b0dy|> What's the the easiest way to estimate the distance cut?
[01:32:05] <cradek> file/properties
[01:34:18] -!- Eartaker [Eartaker!~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined #emc
[01:36:15] -!- ries has quit [Quit: ries]
[01:41:21] -!- factor has quit [Ping timeout: 255 seconds]
[01:43:36] <|n0b0dy|> mmmm
[01:43:38] <|n0b0dy|> Thank You
[01:54:51] -!- factor [factor!~factor@74.197.205.204] has joined #emc
[01:57:10] <pcw_home> I guess Andy got past the crash and burn stage
[02:02:22] -!- syyl has quit [Quit: Leaving]
[02:14:05] -!- Eartaker has quit [Read error: Connection reset by peer]
[02:14:24] -!- Eartaker [Eartaker!~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined #emc
[02:14:40] -!- seb_kuzminsky has quit [Remote host closed the connection]
[02:15:03] -!- seb_kuzminsky [seb_kuzminsky!~seb@174-16-124-56.hlrn.qwest.net] has joined #emc
[02:17:08] -!- elmo401 [elmo401!~Elmo40@CPE002129acb2d3-CM001bd7a89c28.cpe.net.cable.rogers.com] has joined #emc
[02:17:29] -!- elmo40 has quit [Ping timeout: 252 seconds]
[02:21:38] -!- skunkKandT has quit [Remote host closed the connection]
[02:54:11] -!- Eartaker has quit [Read error: Connection reset by peer]
[02:54:31] -!- Eartaker [Eartaker!~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined #emc
[03:39:46] -!- mhaberler [mhaberler!~mhaberler@195.191.253.94] has joined #emc
[03:52:44] -!- garage_seb [garage_seb!~seb@174-16-124-56.hlrn.qwest.net] has joined #emc
[03:56:42] <Jymmm> pcw_home: now at the crush and smelt stage
[04:01:52] -!- kljsdfhklj has quit [Ping timeout: 248 seconds]
[04:05:11] -!- kljsdfhklj [kljsdfhklj!~ln@189.75.4.162] has joined #emc
[04:20:36] -!- jv4779 has quit [Ping timeout: 252 seconds]
[04:21:45] <|n0b0dy|> mmm fire
[04:48:08] -!- A2Sheds [A2Sheds!~ly@unaffiliated/l84supper] has joined #emc
[05:16:15] -!- psha [psha!~psha@213.208.162.69] has joined #emc
[05:40:35] -!- theos has quit [Read error: Connection reset by peer]
[05:42:30] -!- theos [theos!~theos@unaffiliated/theos] has joined #emc
[06:12:22] -!- Eartaker has quit [Read error: Connection reset by peer]
[06:30:36] -!- mhaberler has quit [Quit: mhaberler]
[07:33:28] -!- kljsdfhklj has quit [Ping timeout: 260 seconds]
[07:34:35] -!- garage_seb has quit [Quit: Leaving]
[07:37:07] -!- kljsdfhklj [kljsdfhklj!~ln@200-138-201-50.fnsce704.dsl.brasiltelecom.net.br] has joined #emc
[07:55:28] -!- kljsdfhklj has quit [Ping timeout: 248 seconds]
[08:00:33] -!- kljsdfhklj [kljsdfhklj!~ln@201-2-236-225.fnsce704.dsl.brasiltelecom.net.br] has joined #emc
[08:22:59] -!- mhaberler [mhaberler!~mhaberler@195.191.253.94] has joined #emc
[08:36:18] -!- psha has quit [Quit: Lost terminal]
[08:39:37] -!- mhaberler has quit [Quit: mhaberler]
[08:57:37] -!- robh__ [robh__!~robert@5ace7030.bb.sky.com] has joined #emc
[09:10:51] -!- bootnecklad [bootnecklad!~bootneckl@host-2-97-35-109.as13285.net] has joined #emc
[09:19:01] -!- kljsdfhklj has quit [Ping timeout: 260 seconds]
[09:23:31] -!- kljsdfhklj [kljsdfhklj!~ln@187.7.28.14] has joined #emc
[09:24:39] -!- theos has quit [Ping timeout: 252 seconds]
[09:32:54] -!- theos [theos!~theos@unaffiliated/theos] has joined #emc
[09:34:47] -!- Mjolinor [Mjolinor!~Mjolinor@cpc1-burn3-0-0-cust572.10-1.cable.virginmedia.com] has joined #emc
[10:13:15] -!- vladimirek [vladimirek!~vladimire@bband-dyn243.178-40-47.t-com.sk] has joined #emc
[10:27:21] -!- Mjolinor has quit [Quit: Leaving]
[10:50:20] -!- Valen [Valen!~Valen@2001:44b8:3199:9100:21e:8cff:fe63:55df] has joined #emc
[10:57:20] -!- Loetmichel has quit [Ping timeout: 260 seconds]
[11:00:40] -!- Loetmichel [Loetmichel!Cylly@p54B136D0.dip.t-dialin.net] has joined #emc
[11:04:43] <Valen> blinged out the mill some http://www.cnczone.com/forums/general_metal_working_machines/118358-phenolic_basalt_head_our_hm45-3.html#post1004601
[11:05:52] -!- bootnecklad has quit [Ping timeout: 248 seconds]
[11:10:10] <TekniQue> Valen: yeah it's nice to have good illumination
[11:10:27] <jthornton> nice and bright
[11:10:39] <TekniQue> is that a camera attached to the mill in picture 4?
[11:13:15] <Valen> yah
[11:13:32] <Valen> uses psha's emc camview thing
[11:15:26] <TekniQue> that looks like a nice feature
[11:15:41] <TekniQue> is it just a camera attachment that goes in your spindle when lining up?
[11:16:08] <Valen> its attached to the side
[11:16:16] <Valen> you can see the Al block in the other 2 images
[11:16:24] <Valen> it has a known offset
[11:16:30] <TekniQue> ah, yes
[11:16:55] <Valen> psha even has some scripting that loads the camera as a tool so you can just tick a box and it'll jump between the two
[11:16:59] <Valen> but i never got that working
[11:23:00] -!- mhaberler [mhaberler!~mhaberler@195.191.253.94] has joined #emc
[12:06:01] -!- malagant [malagant!~malagant@85-23-149-109.bb.dnainternet.fi] has joined #emc
[12:08:19] -!- mhaberler has quit [Quit: mhaberler]
[12:18:02] -!- syyl [syyl!~syyl@p4FD15E41.dip.t-dialin.net] has joined #emc
[13:17:20] -!- Valen has quit [Quit: Leaving.]
[13:18:20] <jthornton> if you were reading a dxf file in c++ line by line what would you store the file in? an array of some kind?
[13:20:49] -!- nullie [nullie!~nullie@nullie.telenet.ru] has joined #emc
[13:29:54] <jthornton> I think count the lines in the file and create a string array large enough to hold the file...
[13:36:49] -!- ries [ries!~ries@200.125.129.54] has joined #emc
[13:43:44] <anonimasu> jthornton: a string array or list..
[13:46:07] -!- adb has quit [Ping timeout: 276 seconds]
[13:49:27] -!- factor has quit [Read error: Connection reset by peer]
[13:52:03] <jthornton> list, didn't think of that
[14:07:45] -!- factor [factor!~factor@74.197.205.204] has joined #emc
[14:28:04] -!- fritzgutten [fritzgutten!~fred@173.22.176.208] has joined #emc
[14:35:23] <JT-Shop> argg my brain has a C++ vapor lock trying to reset the get pointer and get file.good()... so time to make some ballista parts me thinks
[14:37:44] <malagant> hi! is anyone using emc2 to control co2 lasers?
[14:38:43] <JT-Shop> yes, I think there are a few out there
[14:38:50] <malagant> according some forum messages, there was problems using emc2 to engrave raster images.. :/
[14:39:10] <malagant> vector engraving and cutting should be no problem I think..
[14:41:22] <malagant> I think the problem was to shut down and start laser before motors stop. Otherwise spot will burn the edges of the rasterized image quite bad :(
[14:42:17] -!- factor has quit [Quit: Leaving]
[14:42:43] -!- mhaberler [mhaberler!~mhaberler@195.191.253.94] has joined #emc
[14:43:44] <malagant> hmm.. http://wiki.linuxcnc.org/emcinfo.pl?Rastering_With_A_Laser
[14:48:19] -!- rooks has quit [Quit: Ex-Chat]
[14:55:34] -!- rooks [rooks!~rooks@102-bem-18.acn.waw.pl] has joined #emc
[15:15:14] -!- skunkKandT [skunkKandT!~chatzilla@184-158-81-121.dyn.centurytel.net] has joined #emc
[15:31:39] -!- syyl_ [syyl_!~syyl@p4FD14588.dip.t-dialin.net] has joined #emc
[15:32:33] -!- elmo401 has quit [Read error: Connection reset by peer]
[15:34:47] -!- syyl has quit [Ping timeout: 255 seconds]
[15:55:24] -!- adb [adb!~Moldovean@78.96.214.213] has joined #emc
[15:57:32] -!- ve7it [ve7it!~LawrenceG@S0106001c10b7770f.pk.shawcable.net] has joined #emc
[16:05:52] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[16:16:41] -!- GoSebGo has quit [Ping timeout: 244 seconds]
[16:23:30] -!- Farthen has quit [Excess Flood]
[16:24:50] -!- Farthen [Farthen!~Farthen@2a01:4f8:101:2a4:0:bc28:b2e1:9] has joined #emc
[16:30:37] -!- A2Sheds has quit [Ping timeout: 240 seconds]
[16:34:03] -!- Aero-Tec [Aero-Tec!~chatzilla@66.183.118.24] has joined #emc
[16:42:35] -!- A2Sheds [A2Sheds!~ly@unaffiliated/l84supper] has joined #emc
[16:44:54] -!- pjm__ [pjm__!~pjm@uhfsatcom.plus.com] has joined #emc
[16:48:33] -!- pjm has quit [Ping timeout: 255 seconds]
[16:59:23] -!- IchGucksLive [IchGucksLive!~chatzilla@95-89-108-110-dynip.superkabel.de] has joined #emc
[17:08:02] <IchGucksLive> Hi all
[17:12:12] <Aero-Tec> hi
[17:12:26] <Aero-Tec> looks kind of dead here
[17:19:13] <IchGucksLive> no dead sunday no milling
[17:21:43] <Aero-Tec> I mill 7 days a week
[17:21:51] <Aero-Tec> and lathe
[17:23:13] <JT-Shop> live here
[17:24:54] <IchGucksLive> Aero-Tec: well then you must be a ritch man
[17:25:47] <Aero-Tec> that would depend on what yard stick you use
[17:25:58] <Aero-Tec> I would not say I am rich
[17:26:48] <Aero-Tec> but compared to some, yes I would be considered rich.
[17:28:28] -!- Guest656 [Guest656!~Guest656@host47.190-139-94.telecom.net.ar] has joined #emc
[17:29:40] <IchGucksLive> B)
[17:29:54] <IchGucksLive> someone on with a 800x600 display
[17:33:18] <JT-Shop> why?
[17:33:45] <IchGucksLive> i want to no im my new css layout fits to this screenwide
[17:34:20] -!- ries_ [ries_!~ries@200.125.129.54] has joined #emc
[17:34:21] <JT-Shop> change your screen to 800x600
[17:34:34] -!- ries has quit [Read error: Connection reset by peer]
[17:34:34] ries_ is now known as ries
[17:34:52] <IchGucksLive> i hav no $:3
[17:34:56] <IchGucksLive> 4:3
[17:35:30] <JT-Shop> what is that?
[17:35:56] <IchGucksLive> 16:9 is the new screenwide standard
[17:36:08] <IchGucksLive> in the usa its 16:10 i gues
[17:36:32] <IchGucksLive> ok got one ists done
[17:36:38] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[17:36:54] <IchGucksLive> ein östereicher GoSebGo
[17:37:45] <GoSebGo> Did you ask if i'm from east germany?
[17:38:04] <IchGucksLive> no i dont gess this
[17:38:21] <IchGucksLive> cause sebastian vettel won the 2nd chanpionchip
[17:38:44] <IchGucksLive> and they shoud B) gosebgo b)
[17:39:17] <GoSebGo> Heh hm
[17:39:33] <IchGucksLive> wher you from USA
[17:40:04] -!- Guest656 has quit [Quit: Visitor from www.linuxcnc.org]
[17:40:21] -!- kljsdfhklj has quit [Quit: kljsdfhklj]
[17:41:22] <JT-Shop> my viewsonic is 16.1 x 10.0
[17:41:29] <IchGucksLive> JT-Shop: question can i take in the hal the step or dir of one axis to 2 parport pins
[17:41:54] <JT-Shop> yes
[17:42:38] <JT-Shop> the samsung is 16x9
[17:42:52] <JT-Shop> seems like no standards at all over here :)
[17:43:03] <IchGucksLive> cause i have 90% of the work on my 5Axis hotwirecuter only 3 axis running XY and UV move paralel
[17:43:47] -!- GoSebGo has quit [Ping timeout: 256 seconds]
[17:44:25] <IchGucksLive> so i woudt take the step and the dir signal from the XY to UV and i can only go with 3Axis programming
[17:56:24] <fritzgutten> hey, in axis, on the on-screen spindle controls, can i change the amount that the rpm changes per button press?
[17:57:17] <IchGucksLive> yes in the ini
[17:57:24] <JT-Shop> it's a funky number based on the range divided by some unknown number... no
[17:57:35] <fritzgutten> my machine ini?
[17:57:49] <JT-Shop> or maybe I'm full of crap and don't know it
[17:58:39] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[17:59:39] <fritzgutten> not seeing anything that seems applicable
[18:00:35] <fritzgutten> seems that it defaults to 100rpm per button press
[18:01:35] <JT-Shop> yea, look in axis.py if you have the source code
[18:03:03] -!- GoSebGo has quit [Ping timeout: 256 seconds]
[18:04:22] <IchGucksLive> JT-Shop: is there a hal documentation in pdf for developers ?
[18:06:17] <JT-Shop> for?
[18:06:31] <IchGucksLive> the Taj section inputs
[18:06:48] -!- FinboySlick [FinboySlick!~FinboySli@74.117.40.9] has joined #emc
[18:07:03] <JT-Shop> yes, the integrator manual contains that
[18:07:24] <IchGucksLive> where is this
[18:09:05] <IchGucksLive> got it
[18:10:25] -!- nullie has quit [Ping timeout: 256 seconds]
[18:13:35] -!- factor [factor!~factor@74.197.205.204] has joined #emc
[18:14:36] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust1037.basl.cable.virginmedia.com] has joined #emc
[18:17:03] <fritzgutten> unless i can change the spindle jump number using a scale funstion in my hal?
[18:17:23] <fritzgutten> hopefully thats translatable
[18:20:01] <fritzgutten> i found this "vupdate(vars.spindlerate, int(100 * self.stat.spindlerate + .5)) is that what i'm looking for?
[18:20:50] <IchGucksLive> JT-Shop: can i delete the intier emcio section in the hal as there are no tools
[18:21:54] <IchGucksLive> fritzgutten: no
[18:22:21] <fritzgutten> ah, i see a ?variable? "spindle_increase"?
[18:22:36] <IchGucksLive> look at the sxtion what var is connectet to the button press
[18:23:15] -!- nullie [nullie!~nullie@v10-167-139.yandex.net] has joined #emc
[18:24:47] <fritzgutten> commands.spindle_increase is associated with key-f12 and has a def entry
[18:27:30] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[18:28:22] -!- IchGucksLive has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.22/20110905191234]]
[18:32:19] <fritzgutten> well, i'll figure it out eventually, just happy i got my stepper spindle working. anyone bored and want to go through my hal file for mistakes?
[18:34:06] <nullie> not that bored
[18:34:14] <fritzgutten> hehe ;)
[18:34:24] <fritzgutten> well, thanks for the input
[18:39:43] <JT-Shop> far from bored here
[18:40:48] -!- me345 [me345!~me345@adsl-75-15-232-163.dsl.bkfd14.sbcglobal.net] has joined #emc
[18:41:17] <JT-Shop> even my old Samson is happier here at home and is making some nice parts today for the ballista
[18:42:05] -!- maximilian_h [maximilian_h!~bonsai@ulmg-5d845827.pool.mediaWays.net] has joined #emc
[18:42:12] -!- maximilian_h has quit [Client Quit]
[18:52:07] <JT-Shop> fritzgutten: did you find the spindle increment?
[18:56:16] <skunkKandT> we really need to make a coolant cage for this thing...
[18:56:29] <JT-Shop> getting a bit wet?
[18:56:35] <skunkKandT> off and on
[18:57:26] <andypugh> I wonder if a big wet-vac could be used? Might catch too much swarf)
[18:58:19] <JT-Shop> I used a big vac with the plasma last time and it sucked big time :)
[18:58:42] <JT-Shop> WOW this is one hoppy IPA
[18:58:58] <skunkKandT> strategically placed plastic tote covers seem to work ok... ;)
[18:59:11] <JT-Shop> I think it could make it to India and back without spoiling
[18:59:58] <JT-Shop> like "shields up" were fixing to get blasted
[19:00:10] <andypugh> Which one is it? I have a friend in WI with a taste for an IPA so hoppy that, in his words, "it takes the enamel off your teeth"
[19:00:43] <JT-Shop> Stone Ruination IPA
[19:00:44] <skunkKandT> ipa?
[19:00:55] <JT-Shop> india pale ale
[19:01:02] <skunkKandT> ah
[19:01:17] <andypugh> It was brewed to keep in transit to the Colonies.
[19:01:43] -!- me345 has quit [Read error: Connection reset by peer]
[19:02:14] <JT-Shop> hops are somewhat of an antiseptic and kill the little liquid bread eating buggers
[19:02:29] <andypugh> http://en.wikipedia.org/wiki/India_Pale_Ale
[19:02:55] <andypugh> Whereas IPA is something of an anaesthetic.
[19:03:00] <JT-Shop> how is your 5i25 7i67 coming along?
[19:03:11] <JT-Shop> yea, I can only drink one
[19:03:36] <andypugh> PCW threw me a bit of a curve-ball by making the 7i76 have 3 different operating modes.
[19:03:55] <JT-Shop> how is that?
[19:04:20] <andypugh> I need to modify the loadrt modparams to tell it what to be.
[19:04:21] <JT-Shop> mine should arrive this week
[19:05:04] <JT-Shop> well it's for sure no one is using them yet :)
[19:05:15] <andypugh> It can do bit inputs only, or bit inputs + 4 analog, or bit-inputs + 4 analog + bus voltage.
[19:05:46] <JT-Shop> what does bus voltage do?
[19:06:34] <andypugh> I am going to change the modparam first, and get that out before the 2.5 release. I hope it will all make the cut, but it's hard to know when the cut-off will be.
[19:06:57] <andypugh> bus voltage just tells you if your stepper PSU is good.
[19:07:10] <andypugh> (I think)
[19:07:25] <JT-Shop> OK
[19:11:03] -!- GoSebGo has quit [Ping timeout: 256 seconds]
[19:17:37] <pcw_home> Its the Field power (so normally 12V or 24V. That is, what is used for switches and outputs)
[19:19:25] -!- A2Sheds has quit [Read error: Connection reset by peer]
[19:19:36] <pcw_home> it also sets the input thresholds
[19:19:47] -!- mhaberler has quit [Quit: mhaberler]
[19:20:30] <JT-Shop> the "switch on" point?
[19:21:46] <pcw_home> both switch on and switch off = 50% VField +- 10% hysteresis
[19:24:10] <pcw_home> There are provisions for individually settable thresholds but they are not implemented yet
[19:26:56] -!- vladimirek has quit [Remote host closed the connection]
[19:37:00] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[19:41:13] -!- GoSebGo has quit [Ping timeout: 245 seconds]
[19:42:08] <andypugh> OK, if I have char SomeArray[4][8]. How can I set all the elements of one row to "x"?
[19:52:07] <SWPadnos> depends on how you treat the rows and columns
[19:52:24] <SWPadnos> there are no 2-dimensional arrays in C
[19:52:40] <andypugh> I am getting the impression from reading the web that the order is not what I expect.
[19:52:50] <SWPadnos> probably true
[19:53:09] <SWPadnos> the declaration above is an array of 4 arrays of 8 elements
[19:53:10] <andypugh> [4][8] seems to be 8 of 4-element array?
[19:53:29] <andypugh> Oh, that is what I expected.
[19:53:36] <SWPadnos> let me make sure of that ;)
[19:54:24] <andypugh> Is the initialisation in section 5 here wrong? (it looks wrong) http://www.cprogrammingreference.com/Tutorials/Basic_Tutorials/ArraysAndStrings.php
[19:55:05] <andypugh> I want 4 arrays of 8 chars, and then I want to set them all to "x"
[19:55:46] <SWPadnos> sadly, I'd have to think about whether that's valid or not (or just compile it and see what happens)
[19:56:15] <SWPadnos> ok, it should be correct
[19:56:29] <SWPadnos> char v gives you a char
[19:56:49] <SWPadnos> char v[10] gives you 10 chars (read backwards - 10 of the thing to the left, which is a char)
[19:57:14] <SWPadnos> char v[10][5] is therefore 5 of the thing to the left, which is an array of 10 chars
[19:57:35] <SWPadnos> so 5 "rows" of 10 elements each
[19:59:39] <SWPadnos> so your SomeArray[4][8] is an array of 8 arrays of 4 chars
[20:02:42] <andypugh> That's just silly! Typical C.
[20:03:32] <andypugh> So, perhaps I can init with c[][0]="xxxx" ?
[20:04:00] <SWPadnos> if this is just init, then you'd want something like the init from that web page:
[20:04:32] <andypugh> It is inited in a typedef, so I din't think I can?
[20:04:51] <SWPadnos> array somechar[8][4] = { { 'x','x','x','x',x','x','x','x'} , { (3 more times) } }
[20:05:04] <SWPadnos> is that legal?
[20:05:47] <andypugh> Asking me is foolishness!
[20:06:07] <SWPadnos> well, does it compile, with an initializer in the typedef?
[20:06:46] <andypugh> It didn't, but then perhaps I gave up too easily.
[20:07:51] <andypugh> There are no other initialisations in the header file, I assumed it wasn't allowed.
[20:08:23] <SWPadnos> a typedef doesn't actually allocate space or initialize variables
[20:08:49] <SWPadnos> so you have have a million typedefs in a header file, and there should be no problem
[20:09:22] <SWPadnos> allocating storage in a header is often frowned upon, since every C source file that includes that header will create its own storage
[20:09:50] <SWPadnos> ie, if you have "char fred" in a header, then every C file that includes that header will have its own char fred
[20:10:10] <SWPadnos> which is likely to cause link errors, since there will be multiple locations all called _fred
[20:10:26] <andypugh> I think I will use *char[4] instead.
[20:10:50] <SWPadnos> do you have the K&R C book?
[20:10:54] <SWPadnos> "The C Programming Language"
[20:10:55] <andypugh> Somewhere.
[20:11:03] <andypugh> I have even read it.
[20:11:08] <SWPadnos> ok, the chapter on declarations is very very useful
[20:11:12] <SWPadnos> very
[20:11:14] <andypugh> But that was a long time ago.
[20:11:36] <SWPadnos> I refer back to that whenever I have questions like this, which happens reasonably often
[20:11:39] <andypugh> Wierdly, several years before I actually did any C programming.
[20:14:03] <SWPadnos> incidentally, gcc allows some sort of "..." initialization, so you can set all elements to the same thing pretty easily
[20:14:28] <SWPadnos> I don't remember the exact syntax, maybe char a[5] = { 'x', };
[20:14:40] <SWPadnos> (trailing comma after the last element)
[20:14:46] <andypugh> But that assumes that you can initialise in a typedef in a header file, and I don't think that is at all safe here.
[20:14:58] <SWPadnos> I don't know that it's legal C in any case
[20:15:34] <andypugh> Considering just how many layers of indirection there are in hm2, and how many things get shuffled about to shared memory, tram etc..
[20:16:31] <SWPadnos> I'm not sure how it works in kernel modules like hm2 and friends, but there are other issues. initialized variables go in a different data segment than uninitialized ones
[20:16:52] <SWPadnos> and you can't dynamically create or destroy those - they're always there
[20:17:34] <SWPadnos> so if your driver needs to be able to create more than one instance of that 8x4 array thingy, you can't have it initialized "automatically"
[20:19:53] <andypugh> And, in fact, there may be several in this case. One for every Mesa card, in fact.
[20:22:15] <andypugh> OK, so, using char *array[4] I get a lot further.
[20:22:56] <SWPadnos> you can declare a variable of your type, which has all the elements initialized to the default values you want. At that point, you can initialize newly allocated variables of that type with memcpy(newvar, &defaultvar, sizeof(defaultvar))
[20:23:34] <andypugh> I can now use array[0] = "xxxxxxxx" though I have a feeling that that actually sets the array pointer to a bit of memory containing "xxxxxx" which might not be at all what I want.
[20:23:38] <SWPadnos> though that should be an array of pointers to char, not a pointer to 4 chars
[20:23:47] <SWPadnos> correct
[20:24:57] <andypugh> K&R clearly had no time for the spoken or written word, or at least assumed that computer never would have.
[20:26:19] <SWPadnos> give them a break, the language is 40 years old :)
[20:26:43] <andypugh> I think I might give up. Can I safely assume that char array[4][8] will be initialised to all null?
[20:27:19] <SWPadnos> all '\0', yes, I think so :)
[20:27:19] <andypugh> "x" just means "ignore" anyway, so I can just ignore 0 too.
[20:28:35] <andypugh> The alternative seems to be two nested loops to load 'x' element-by-element
[20:28:54] <andypugh> (Which, admitedly, I could have done 2 hours ago)
[20:28:56] <SWPadnos> yes, and that's fine too
[20:29:14] <SWPadnos> that will take all of 37 nanoseconds on a modern machine
[20:29:17] <SWPadnos> give or take
[20:29:42] <DaViruz> andypugh: indeed that will set the pointer to a memory segment containing the string, but what's the difference?
[20:30:25] <andypugh> I am more concerned about readability. There are some strong opinions about coding style in this project.
[20:30:54] <SWPadnos> DaViruz, there will be one location in memory for all the pointers (assuming that some kind of "merge identical strings" optimization is turned on)
[20:31:04] <SWPadnos> err, I meant one place where they all point
[20:31:54] <DaViruz> hmm, that sounds quite possible
[20:31:56] <SWPadnos> andypugh, like I said above, make a "local" variable, which is initialized at compile time, then memcpy that to any new instances you need
[20:32:03] <DaViruz> i wasn't aware of the need to create multiple identical strings
[20:32:30] <SWPadnos> char flags[4][8] = { { 'x', }, };
[20:32:35] <andypugh> DaViruz: There are likely to be multiple copies of the containing structure.
[20:34:18] <andypugh> SWPadnos: Doesn't that assume that the memory layout of the two variables ends up identical? Is that a safe assumption?
[20:35:08] <andypugh> As it is an array of 8 pointers to char, those pointers need not point to contiguous memory.
[20:35:23] -!- nullie has quit [Ping timeout: 245 seconds]
[20:35:27] <andypugh> They probably do, though.
[20:49:32] -!- WalterN [WalterN!~walter@host-174-45-106-117.bzm-mt.client.bresnan.net] has joined #emc
[20:51:09] <SWPadnos> http://www.pastebin.com/civKZN71/
[20:51:54] <SWPadnos> if they are compiled with the same compiler, the same options, and both programs use the same header file, then it should be a reasonable assumption
[20:52:28] <SWPadnos> if you're talking about one source file that has both the initialized variable and also allocates new ones, then it's a very very reasonable assumption
[20:52:47] <SWPadnos> you'd malloc using sizeof(mystruct) anyway
[20:53:28] -!- chester88 has quit [Ping timeout: 252 seconds]
[21:04:46] <andypugh> I am not surprised I didn't guess that format for filling a 2D array.
[21:05:59] <SWPadnos> yeah, it took me a little bit to find it
[21:06:19] <SWPadnos> and a little bit more to actually read it so I could get the test code to both compile and work :)
[21:06:31] <andypugh> And there isn't a line that inits my array, it comes in as part of the malloc of a hotmot2_t (and that is probably in the worlds top 1% of complex typedefs)
[21:07:07] <SWPadnos> I thought there was supposed to be a way to initialize all elements to the same thing (rather than the default of 0), but I couldn't easily find it
[21:07:26] <andypugh> so will be accessed as hm2->config.sserial_modes[i][c]
[21:08:25] <andypugh> So, unless I can set the values using that format after is is inited and malloced, I might have been wasting your time.
[21:10:03] -!- tom3p [tom3p!~tomp@74-93-88-241-Illinois.hfc.comcastbusiness.net] has joined #emc
[21:10:48] <andypugh> It seems that the {} format for string contents is only valid at declaration time?
[21:11:06] <andypugh> hal/drivers/mesa-hostmot2/hostmot2.c:206: error: expected expression before ‘{’ token
[21:11:30] <andypugh> (for array contents, I mean, not string contents)
[21:12:29] <andypugh> I have this, which seems to work:
[21:12:30] <andypugh> for(i=0;i<4;i++){for(j=0;j<8;j++){hm2->config.sserial_modes[i][j]='x';}}
[21:17:58] <SWPadnos> yep, that's a fine way to do it. You can even remove the {}, since each for loop has exactly one statement in it
[21:18:39] <andypugh> OK, that means I can put some spaces back in too :-)
[21:18:40] <SWPadnos> hmmm - side question: know anyone with a big-ish router (or laser), like one that can slice up sheets of plywood?
[21:18:42] <SWPadnos> heh
[21:19:21] <andypugh> In which country?
[21:19:30] <SWPadnos> yours :)
[21:20:05] <andypugh> possibly robin szemeti
[21:20:13] <SWPadnos> yeah, I just remembered him :)
[21:21:21] <SWPadnos> we should be in London with a camera array for a couple of weeks, and we may want one of the components made there. it could cause some issues with the equipment carnet, but I thought I'd try to find some options anyway
[21:21:27] <andypugh> I don't know anyone else personally, though I have found people on the web in the past who did stuff for me.
[21:21:36] <SWPadnos> ok, thanks. good to know
[21:22:56] -!- syyl_ has quit [Quit: Leaving]
[21:23:52] <andypugh> These look ideal: http://www.cutlasercut.com/
[21:24:47] <andypugh> Though looks like they have a 1250x710 limit
[21:24:48] <SWPadnos> cool, thanks
[21:27:50] <andypugh> If you need anything turning/milling/welding in a hurry I have access to a workshop in South Kensington. (in addition to my own stuff 30 miles to the east)
[21:28:55] -!- Guest698 [Guest698!~Guest698@203.83.196.18] has joined #emc
[21:29:03] <SWPadnos> huh. that always seemed like a touristy area to me, not the kind of place I'd expect a machine shop
[21:29:31] -!- Roguish [Roguish!~chatzilla@c-67-174-215-143.hsd1.ca.comcast.net] has joined #emc
[21:29:53] <andypugh> It's in Imperial College, it's where we look after the Fire Engine: http://union.ic.ac.uk/rcc/rcsmotor/
[21:29:59] <SWPadnos> ah
[21:31:13] <andypugh> The college itself has some amazing machines, they do CNC machining research.
[21:31:59] <SWPadnos> cool.
[21:32:18] <SWPadnos> gotta run - thanks for the info, and good luck with the driver.
[21:44:01] <malagant> hi! any emc2 laser guys online?
[21:55:50] <skunkKandT> probably not... Do you have a question?
[22:00:38] -!- tom3p [tom3p!~tomp@74-93-88-241-Illinois.hfc.comcastbusiness.net] has parted #emc
[22:04:36] <andypugh> malagant: I don't know what your question is, but there is a chance it got fixed a couple of weeks ago
[22:05:35] <malagant> andypugh, really :P
[22:06:14] <andypugh> Yeah, M67 got fixed, so you can set beam intensity synchronous to motion now.
[22:06:26] <malagant> well, I don't have a cutter yet, but I'm going to buy one (chinese $800 piece of crap + new controller board)
[22:06:33] <malagant> cool
[22:07:14] <malagant> andypugh, this is a very good news!
[22:07:38] <andypugh> How good are the tubes on those? The rest is easy to adjust/upgrade
[22:07:55] <malagant> should be good for at least 1000 hours
[22:08:15] <malagant> and replacement costs 100 dollars, so no big deal if it breaks earlier :P
[22:08:25] <malagant> 40 watt CO2
[22:08:35] <andypugh> For $100 I might buy one for my milling machine :-)
[22:08:50] <malagant> why not :P
[22:09:07] <malagant> just type "co2 laser" on ebay
[22:09:08] <andypugh> Danimal_garage: Have you considered that? Adding a laser head to your engraver?
[22:10:31] <malagant> andypugh, is there more info about the new fix and how to use it?
[22:10:39] -!- Valen1 [Valen1!~Valen@2001:44b8:3199:9100:21e:8cff:fe63:55df] has joined #emc
[22:11:07] <andypugh> No, it just now works the way the docs have always said it did, rather than not at all, as was the actual case.
[22:11:46] <andypugh> There are some features that clearly don't get used a lot, as they can be broken for years before anyone complains.
[22:12:01] <malagant> heh, ok
[22:12:55] <malagant> how about raster images? do you know if it's possible to burn those using emc2?
[22:14:39] <malagant> maybe using some raster2gcode script.. I'm not familiar with the terms yet :)
[22:19:04] <andypugh> If you can make the G-code then EMC2 can burn it (I think). There have been problems before but I don't think we were aware of the M67 option and problem then. M67 is an analogue output, which you can link to a PWM signal in HAL. Previously people have used spindle speed or Z-height to try to set laser intensity, which both tend to interrupt the motion.
[22:20:30] <malagant> ok, sounds reasonable
[22:20:45] <andypugh> You might still want to consider using both the PWM for intensity and a digital signal to turn the voltage on and off (in hardware, after the PWM to voltage conversion) as PWM-to-voltage doesn't cut off instantly.
[22:20:50] <malagant> maybe I will order the laser and try it for myself :P
[22:21:30] <malagant> yeah, true
[22:22:27] <malagant> it would be nice to hear some comments from a laser-owner, but it seems that no one is online right now
[22:24:17] <WalterN> lasers are shiny
[22:25:32] -!- skunkKandT has quit [Remote host closed the connection]
[22:31:04] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[22:39:45] -!- theorbtwo [theorbtwo!~theorb@91.84.53.6] has joined #emc
[22:40:12] -!- GoSebGo has quit [Ping timeout: 252 seconds]
[22:40:42] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[22:49:13] -!- GoSebGo has quit [Quit: Bye]
[22:50:32] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[22:51:29] -!- Valen1 has quit [Quit: Leaving.]
[22:52:40] <andypugh> lasers + sharks = kewl
[22:52:52] <andypugh> Sorry, were you wanting something more helpful?
[22:55:25] -!- GoSebGo has quit [Ping timeout: 260 seconds]
[22:58:32] <FinboySlick> andypugh: They're helpful when it comes to disposing of international men of mystery.
[22:58:42] <FinboySlick> Or at least, they try to be.
[22:59:40] <andypugh> It's odd how even films you never watch can make an impression.
[23:00:16] <FinboySlick> The Internet brought meme to the world.
[23:14:29] -!- GoSebGo [GoSebGo!~Seb@184.251.45.142] has joined #emc
[23:24:22] -!- GoSebGo has quit [Quit: Bye]
[23:32:13] -!- micges has quit [Quit: Ex-Chat]
[23:33:03] -!- WalterN has quit [Read error: Connection reset by peer]
[23:33:30] -!- WalterN [WalterN!~walter@host-174-45-106-117.bzm-mt.client.bresnan.net] has joined #emc
[23:42:40] -!- ries has quit [Ping timeout: 248 seconds]
[23:52:59] <andypugh> logger[psha]: