mhaberler_ is now known as mhaberler
I'm writing a wiki on making your own EMC live cd with RTAI for Arch Linux so others can make their own. The guide / wiki requires extensive testing on my part, making it a very easy copy and paste operation however the big initial work is mostly finished. For those interested, its here http://neo-technical.wikispaces.com/livecd
I am also working on updating the EMC package for Arch so it can be launched graphically via gnome rather than through
a terminal, for easy to use operation :)
awallin: cool presentation film
I have a similar Board but with 4 Axis and I've had the same Problem at the beginning.
But as always I took a look at the Stepconf generated files and saw the .hal is wrong.
On the lines for Pin configurations, it should be xenable for x, yenable for y and so on,
but there was xenable for all axis enable Pins.
from the forum
hmm, I just created a config and it is correct :)
alex_joni: I don't know how I would get the spindle to orient until after the call to go home. (unless I did it manually do a spindle orient - while commanding the machine to the tool change position,)
I don't see any external way to know that a tool change is called until it moves to the tool change position and the tool change pin goes high./
if that makes sense
isn't there a tool prep something or other
(Bit, Out) TRUE when a Tn tool prepare is requested
right - but the tool prep is independent of the m6 command
I can prepare the tool - but that doesn't mean I am going to do a tool change at that point
I think we are splitting hairs.. I don't really know if I need more speed yet ;)
then it is like my Discovery 308 the M6 puts the spindle in the tool change position then orientates the spindle then changes the tool?
the spindle orient is done when the toolchange pin goes high - so you can see that it doesn't orient the tool until it is in the tool change position. (am using tool_change_is_ g30 or whatever it is called in the ini)
unless I am missing something - maybe someday there should be a pin that goes high when the toolchange is called. (the very start of the proccess) but like I say - I don't know if it is a big deal.
the tool prepare pre-fetches the tool - so that should not be a problem.
(the video is just a T7178M6 in mdi
looks cool to me... slow connection atm
how are you orientating the spindle?
it is a dog run by a solinoid. pretty easy
I think mine uses the encoder
the transmission just needs to be in gear 7 - then activate the lock solenoid and spindle creep into dog.
how many gears does it have?
wow what is the rpm range?
heh - 1 to 3000
[16:15:29] <skunkworks> http://www.youtube.com/watch?v=22dWg3GbywE&playnext=1&videos=Qwr0zgU2_jE&feature=mfu_in_order
it had that many gears because initally the spindle motor was hydraulic and only had 2 speed.
you took off all the hydraulics?
should be able to rigid tap a pretty big hole ;)
we still need some - for shifting and table lift / counter balance. - but the hydraulic servos and spindle is gone
collet unclamp and such
(that is why it is so loud ;))
the hydraulic pump is loud?
I don't have speakers on the Hardinge (yet)
yes - it has a wine
we have to run 2 pumps still - 475psi for oiling and most things like tool change - a 1200 psi pump for collet, table clamp/lift. ( we want to get a smaller 1200psi pump because it used to need a lot of volume for servos)
I have a 5hp pump that I can't even give away lol and it was hardly used
we took it off of a small tank so we could use the tank to build a heated oil tank for Briggs to put warm oil in the engines before they hit the run tunnel
well I need to finish my winter service on the lawn mower before nap time :)
I need to make a raised bed toda
skunkworks: Got Hovercraft?
JT: How did they heat the oil, cartridge heaters?
we used some low density submersion heaters in the tank, they didn't heat it before.
low watt density
I think you have to stay below 22 for oil or something like that
blow torch =)
Just gotta love exothermic reaction!
fulminate of mercury
I dont know how many of you are pyros, but did you know that fire is just a self sustaining exothermic reaction?
when I was a kid I would make hydrogen through electrolysis of water. fill balloons and light them off...
SWPLinux: What planet or continent you be on?
Earth, North America
Really, I'm surprised.
or shoudl I say.... Eh
heading home for a couple of days actually
short flight at least, less TSA
YYZ ORA Home?
sadly, there aren't any direct flights to Burlington, so I get to go through Washington DC
YYZ - >IAD -> BTV
would it be faster driving?
not quite, but it's fairly close
it's about 8-9 hours, plus whatever the border crossing adds
only 4 hours flying, plus the extra time before the first flight, so still ~6 hours
have a 22 shell under your seat and see what that adds to your border crossing :)
SWPLinux: Tornto to Motreal, then drive across?
nah, that just makes me go through both airport security and the border. it's kind of the worst of both worlds
SWPLinux: Take one of the back roads across
yep. come on up and tell that to the border guards
it's gotten bad in the last couple of years
A backroad crossing has to be less congested than a main hwy crossing
well, there are towns that actually straddle the border in Vermont (Derby Line is one of them), and you used to be able to cross the street to buy a pizza or something. now, they'll arrest you if you don't go to the end of the street and go through the border station before crossing the street (and the border)
Yeah, but you're not buying a pizza.
getting close to Berlin sounds like...
no, Berlin is a lot easier now ;)
my point was that there aren't a lot of back roads where you can just go cross the border without a major pain
235 has a lil station
[17:21:25] <Jymmm> http://maps.google.com/maps?f=d&source=s_d&saddr=Essex+Junction,+VT&daddr=Burlington,+VT&hl=en&geocode=FW3fpgIdUGqk-ykfwAVnYnfKTDHYE5PD4G51Gw%3BFeqlpgIdWN-i-ynlVZu2VXrKTDGOSQ5yGeVfww&gl=us&mra=ls&sll=44.048116,-72.817383&sspn=5.029625,6.251221&ie=UTF8&ll=45.013815,-72.97823&spn=0.019326,0.04077&t=h&z=15
I'll keep that in mind for next time, since I'm already at the airport, checked in, through security, and enjoying a Cappuccino+extra shot + Bailey's right now :)
You drinking, musta been a rough time.
yeah. remember Friday night when I said something at ~11:00 your time>
the usb jtag something or another
I was getting up for my work day yesterday, which went from 3:00 AM until 9:00 PM
plus travel time and dropping off equipment (2:30-10:00 if you include that)
with no real meals, which was a little bit annoying
For you, I Bet.
at least one of the guys brought his espresso machine
Dont know if thats good or bad
yes, it was
because the closest bathroom was about 1/4 mile away (still in the arena, at least)
wth, did they have you underground in a bunker ?!
underground at least. at the Air Canada Center, on the basketball court
Oh, you had to walk forever to hit the nearest head
yeah, which was a real problem because I basically had to be on the court all the time, it was hard to get 5 minutes away, let alone 15
Hand held urinal in front of 50,000 eh
no, luckily this wasn't a game - just "media day"
well, see you later, time to head for the gate
I am a bit fuzzy on what things need to be kmalloc-ed inside a hostmot2 driver.
My understanding is that you need to hal_malloc anything related to a HAL pin, to put it in shared memory.
Is it only things which need to be accessed by the TRAM read and write that need kmalloc, or is it (as has just occurred to me) anything which is an array of a size only decided at run-time?
I suspect I just answered my own question again.
need to hold pins and parameters? hal_malloc. can be statically allocated? file-level static. otherwise? well, for a hardware driver, kmalloc is fine. kmalloc isn't available in rtapi_app, so it wouldn't work on --enable-simulator machines
if you kmalloc, generally you have to have a matching kfree. hal_alloc memory is sort-of freed at component exit.
Any disadvantage in using hal_malloc? The other hostmot drivers have lots of kmalloc and then a hierarchy of fail0: fail1: etc labels to kfree if it all goes wrong.
I am wondering why.
JT: Sorry I went away ... low density - in other words large surface low wattage so the oil doesn't burn at the surface? Is that 22 watts per square inch? I need to heat some oil but not get into a situation where the oil can burn at the heating surface. I really need a controlled surface temp. But my solution has to be cheap.
I think I have my pointers and structs in a muddle.
[19:28:11] <andypugh> http://www.pastebin.ca/1965081
trying to connect a pyvcp button to a %B in classicladder
anybody ever done it?
Any ideas on my pastebin? I am trying to return a pointer to a struct inside an array inside a struct in an array, and seem to be getting my level of indirection wrong..
andypugh: you should put pin/param after 'hal' ( hm2->sserial.instance[i].hm2_8i20[n].hal.hm2_phase_angle)
Doh! Of course.
Sorry, too long staring and not enough looking.
take a short brake ;)
Nearly there: note: expected ‘volatile real_t **’ but argument is of type ‘volatile real_t *
you should put * before each of pin entries in struct
hal_float_t hm2_phase_angle = > hal_float_t *hm2_phase_angle
Ah, yes, so I should.
Dave911_ is now known as Dave911
hm, I think I need to revise what I said. I think there's no guarantee of being able to access kmalloc'd memory from a realtime thread.
I'm not 100% sure of that, though
anyway, the total amount of memory that can be hal_malloc'd is much smaller than the total memory that can be kmalloc'd
weird, it's true that there's a weird value for EXTRAVERSION in the -122 headers, but on the other hand it doesn't actually affect the vermagic of a component built with comp
I kinda thought so
it would have been strange for regular emc2 modules to work, and comp ones not
$ comp --compile samco.comp; modinfo ./samco.ko | grep vermagic
vermagic: 2.6.32-122-rtai SMP mod_unload 586TSC
looks good to me
hm, and he says he's using comp too
jepler: I created a time.comp that is used to convert seconds to hours, minutes, and seconds. I use it to display the elapsed time for a run. Should I push it to master or 2.4 branch?
I think it will be useful to others
jepler: To come back to this kmalloc thing: Am I right in thinking that all variables inside a HAL component are using kernel memory, and that is the the reason to use kmalloc on any variables that need to be dynamically sized at runtime?
ie, ordinary malloc would simply not work for driver code?
But, it might be better to only hal_malloc things that really need to be in HAL shared memory, and to kmalloc the rest?
So, coming back to http://www.pastebin.ca/1965081
I should, possibly, wrap the addresses in the hm2_8i20_instance in a struct, and then hal_malloc the .hal struct, and kmalloc the rest?
Or is this worrying a bit too much about a maximum of 1200 bytes?
(You could, in theory have 32 8i20 motor drives hanging off a single FPGA card, each with 3 register addresses and 3 register values)