Cool! So isn't there some way to run a script or something to do that rather than typing it in?
and at each reboot it will also be ready to use emc, not the printer
Right. I get it. I could cut & paste it each time but surely there's something that can enter those command automatically?
davidf: yes, that's possible. In your favorite editor create a file that says exactly "#!/bin/sh" on the first line (no quotes), and the "sudo" command on the second line.
Then how do I execute it?
then in the terminal, type "chmod +x thefilename"
then if it's on your Desktop you should actually be able to just double-click it
("+x" means "add the 'execute' permission to the file)
Excellent. :) Thanks!
you can also do it in the file browser by following these instructions with the name of your script instead of "emc2-install.sh": "Step 3: Now an emc2-install.sh icon will appear on your Desktop. Right-click that icon, select Properties. Go to the Permissions tab and check the box for Owner: Execute. Close the Properties window."
hmm .. I wonder if it's going to ask you each time whether to run in a terminal
and there's the issue of prompting for your password for the "sudo" ...
Jymmm: I've started with the "server" install of breezy (it's about 300 megs installed, if I recall), then added the X server, and run emc2.
Well, usually I'm not printing when I'm milling, and vice versa. So ...
jepler breezy is 5.xx and daper is 6.xx ???
Jymmm: but with a small change to the "emc" script you should be able to run "keystick" on a text terminal, not installing X at all
Jymmm: yes, breezy is 5.10
Jymmm: I don't have a lot of experience with dapper (6.06) yet.
jepler is 6xx suppose to be debian untested?
Jymmm: the quality of the release is supposed to be very high, and versions of things (kernel, gcc, etc) don't change. I think that makes it more like debian's "stable", if you insist on making a direct comparison.
the 6 refers to the year of release, and the .10 or .06 refer to the month
SWPadnos: interesting, I didn't know that
yep - just version numbers, no correlation to testing / unstable ...
Jymmm: if you're interested in the version of a particular package, I would be happy to check for you
oh so in 2010 or 2099 we start all over again!!!
yep - there's a y2.01k problem ;)
I was trying to find was versions of pkgs are on 6xx
I'm not sure where to look for that, without installing
[00:12:17] <SWPadnos> https://launchpad.net/distros/ubuntu/dapper
you could look in this package: http://us.archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/Packages.gz
er, in this file
(it's quite long :-P)
Jymmm: I don't know which packages you're interested in the version of, but here are some for you: gcc 4.0.3, kernel 2.6.15, gnome 2.14
apache and php
for apache (or 1.3.4.something)
apache 1.3.34-2, apache2 2.0.55-4ubuntu2
php4 4.4.2-1build1 php5 5.1.2-1ubuntu3
apache 2 it buggy, as is php5
that' ll work. I have daper, but maybe I grab 6xx server and install
mysql-server-4.1 4.1.15, mysql-server-5.0 5.0.22
works for me =)
I'm gonna miss using my lil laptop for milling
you have the dapper "live & install" cd? you can get all the same packages after you install that one to the hard drive
any more version questions? I'm going to shut this machine down if not
shut er down!
davidf: did you have any luck with the icons?
davidf: shortcuts, scripts, whatever you want to call them?
Hi. I've been having trouble.
Cant seem to find the file.
I typed chmod -x ~Desktop/Printer.
Getr no such filre
davidf: did you save the file on your Desktop?
ok, in the terminal, type "ls -l Desktop" .. is the file listed?
I saved it as just "Printer"
or "ls -l ~/Desktop" if you are not in your home directory (~)
I'm used to having an editor add ".txt"
davidf this is nix, no extension needed =)
more like "you never know for sure if an extension is needed or not"
davidf: in your "chmod" you had a dot at the end. When you actually typed the command, did you type exactly the name exacty like "ls" showed it?
davidf: also, it needs to be "+x" not "-x" (add, not take away)
Actually windows notepad doesn't care either. It happily tries to open binaries.
oh, and ~/Desktop, not ~Desktop
davidf: if doing it at the terminal isn't working, maybe you should try the GUI method. "Right-click that icon, select Properties. Go to the Permissions tab and check the box for Owner: Execute. Close the Properties window."
Ok, 6.06 server on it's way down the pipe =)
That worked fine. Asked for PW & ran.
I had typed ~Desktop instead of ~/Desktop. OOPs.
Thanks loads for that. It is soooo humbling to be iliterate.
davidf: the commandline is like the genie of the fables: powerful, but ready to punish you for the slightest mistake of wording.
davidf: Unless you have a user called Desktop, that aint gonna work =)
Right. I cut teeth on DOS. But 'nix is an ACTUAL operating system.
davidf I still use DOS
even on XP
Me too. I have a 486 running my Glass annealing kiln.
thats a good use of a 486, or a router/firewall
hahaha I should take this advice to heart: http://static.flickr.com/69/176617682_9b4ae23cb7.jpg
Has a Radio Shack digital multimeter reading an op-amp buffered thermocouple, plugged into serial port, and PID controller in software. <$100.00 total cost. Been using it for years with no problems. :)
speaking of genies, I hear this this joke is funny: http://scienceblogs.com/evolutionblog/2006/06/the_aristocrats_2.php
(no, it's not actually "the aristocrats" joke, it's about a joke that is in the extras portion of the dvd)
Hmm... I should take a lesson from Bart as well...
Yeah, answer the door with "Who the hell are you man?"
Guys, gotta go. I appreciate the help. I'll check the archive and get it going. Have to work. Thanks again. The joke is funny.
see you davidf
come back any time
'Bye! Thanks again everyone. :)
It's 97F outside and probably hotter in this shop! Is anyone here? I know this is'nt the right forum for this question but does anyone use Flickr - or a Flickr uploadr that runs in Ubuntu?
sorry no idea
I was trying to get flickrfs to run on the same Ubuntu OS I put on a computer in the shop. http://manishrjain.googlepages.com/flickrfs#ubuntu
- but the >> sudo apt-get install libfuse2 fuse-utils python2.4-fuse Imagemagick << doesn't complete succesfully???
the same Ubuntu OS I use for emc21
I will look for an ubuntu forum - but thier always so packed with people.
do you have python already installed?
python2.4-fuse (if you have python 2.4 installed)
I tried to get Python with the apt-get command in the terminal but it fails - the terminal responds with Package fuse-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
I was trying to follow this - http://manishrjain.googlepages.com/flickrfs#ubuntu
jmkasunich_ is now known as jmkasunich
how goes it?
I'm trying to get the courage up to to finish building the new enclosure... I've had the framing for it sitting in the corner for months!
I've now used hal_dpp with some real hardware -- an ARM micro hooked up to the machine with a USB to serial converter
it currently does non-realtime reading of up to 7 external buttons
12 bit -W FALSE dpp.0.pin-00-in
12 bit -W TRUE dpp.0.pin-01-in
12 bit -W TRUE dpp.0.pin-02-in
with that said .. goodnight
I wonder why a USB2SERIAL?
unless it's a laptop
I have a quesiton if someone wouldn't mind giving their two cents, I'd appreciate it... I'm creating a new table top that's 28x24 with 1/4" holes that are in a grid 2" apart, starting at x2, y2.
I'd like to add another set of 1/4" holes around the perimeter at 1" apart starting at x1,y1. I was wonderinf anyone would think this is "too close" together and migth make the edge too qeak to clamp againest/to ?
microsoft is REALLY pushing that WGA bullshit.
Jymmm, Windows Guinine Advantage.
the callback program to check if you're legit.
you mean during updates?
A-L-P-H-A xp ?
I have one legit copy of XP Pro, one of XP Home.
One of 2000
Yeah, dont use the web "Windows Update", use the automatic thingy, it lets you UNCHECK that nag thing so it doens't install.
yeah... I have.
but I unchecked it.
new update, it comes up again.
of course =)
I just dont like any SW "calling home"l I have nfc what it's sending/doing.
You should read the XP EULA, it's scarry.
Jymmm is now known as Red70sShow
Red70sShow is now known as Jymmm
* alex_joni yawns
hello mr Joni
that's a nice machine in that pic: http://www.matsuura.co.uk/products/gantry-type-large-5-axis
anonimasu... so what are you gonna use for a compy on the production machine?
uh? what is that... 4-6 stories?
any 'mericuns around?
how is the store called where you buy cake & cookies?
isn't that only for bread & such?
after googling I found the term "dessert shop" :D wonder how common that is.. or maybe is "patisserie/pastry" a better word?
you're talking about german Konditorei vs Bäckerei ?
Both are "bakeries" in (american) english
you could have a "pastry shop"
ok, I was looking for the Konditorei (thanks for using proper words :D)
these definitions seem to include cakes in what a bakery may make. http://www.answers.com/bakery
but that's not to say that every bakery will make such sweet items
ok, so there isn't a more precise word.. (we have one just like in german, one for sweets, one for general baked stuff)
actually I think our term of "cofetarie" = "Konditorei", originally came from coffee shop
konditori I recognise
Lerneaen_Hydra2: that's german..
and bad german ~ swedish
coffeeshop-like place. swedish actually
Lerneaen_Hydra2: misspelled german mixed with some really bad english =~ borkbork
alex_joni: 1/3 misspelled swedish, 1/3 bad english, 1/3 other stuff = german ;)
mmm.. yummy (cold pizza)
it's even 1 day old
nice cardboard texture
* alex_joni goes home
Um, does anyone here know here how to finsh this? hardware spindle on/off switch -> parport in - (this link missing)> EMC/Axis -> parport out -> relay
to clarify, I need assistance with the HAL commands to route an input pin (on/off) to the spindle control.
everything else is already done. (I can control the spindle via the mouse in axis and with halmeter I can see the input pin switch between 1 and 0 when I use the switch)
it doesn't look like the halui code for spindle control is completed
to get an idea of what it would take to add this, you could look at each place "mist_on" is used in src/emc/usr_intf/halui.c
also you will need two buttons, not a hard switch, for it to work right - one will be hooked to halui.spindle.forward, the other to halui.spindle.stop
I think a center-off double-momentary switch would be best
and you might still not get the control you want. emc will ignore the "manual mode" spindle control commands when you are in MDI or Auto modes (running a program), and will turn the spindle off when entering those modes.
if you want the switch to override (force on, or force off) the spindle control, then do it with blocks "or2" or "and2" with the hal signal iocontrol.0.spindle-on
I can't see why you'd want a switch that turns off the spindle during a program run
I don't understand what use the GUI spindle control is
you might want to turn the spindle off to run your program in the air with less noise
I still think you should be able to machine by jogging, especially with a jogwheel
I think you can currently do that with axis (the spindle won't turn off surprisingly)
you're worried it would in the other GUIs?
no, I think it used to in axis
it probably still does if you "offset" or do anything else that axis implements as an mdi
(hm, that's probably a bug -- can't jog with jogwheel after offsetting)
(or after loading a file!)
(these actually leave the machine in "auto" mode, not "mdi" as I expected for offsetting)
offset causes a load
I thought first about the fact they did an MDI
er, that offset did an mdi
03jepler 07HEAD * 10axis/scripts/axis.py: switch back to the mode implied by the active tab after loading a file (also covers the case of 'offsetting' when it reloads but there is no file loaded)
err. I'm back now
I don't want a "hardwired" control
it should behave in the same way as the spindle clockwise/counterclockwise buttons
is what I'd want
(the buttons in AXIS)
then you need two buttons like I said, and that support needs to be added to halui, since it's not there yet
why would I need two physical buttons?
the one I have now is a rotary toggle switch
because you also want emc to be able to turn the spindle on and off
there's a "turn on" signal and a "turn off signal" and you need to be able to send both of them
actually there's three, forward/off/reverse but you won't need reverse
yes, but what would a rotary switch have to do with that? it is connected to emc via the parport, so emc should be able to ignore that signal
but your switch will be in the wrong position, momentaries don't have that problem
the most complete solution might be a "turn on" button, "turn off" button and an indicator light that says when it's on
then it can be fully controlled from any of the several guis
but like jepler said, spindle control isn't in halui yet
This nickname is owned by someone else
If this is your nickname, type /msg NickServ IDENTIFY <password>
ui ui... do I hear halui?
Lerneaen_Hydra2_: still there?
Lerneaen_Hydra2_: you could use one button in hardware for on/off but make sure it's momentary
then you can wire it in hal to a flip/flop :0
push once, spindle goes on, push again, spindle goes off
alex_joni: here now
alex_joni: it's not momentary :(
It's a standard rotary toggle switch
you can use one that's not momentary too.. just remember to switch it back off
switch on, then back off
is there a way to have the change in signal from 1 to 0 or 0 to 1 as the switch? (P-edge in siemens simatic)
so that when it goes from 1 to 0 it sends a pulse to whatever
I think that might be done..
in software that is
but as it is halui works like that
it looks only at 0->1 transistions
the only thing is that you will enable it by the external switch, spindle will go on
but if you push the AXIS spindle stop button, then the external switch will still be switched on, but the spindle will be halted
if you're ok with that, then there is no problem
oh, thats fine
will switching it on via hardware, and then off via hardware work?
so.. what pins should halui have for spindle?
or can I only turn off via software=
Lerneaen_Hydra2_: sure it'll work
alex_joni: then that is the behavior I wanted to begin with
the switch would only be used when jogging and so on
ok, so basicly> spindle-on, spindle-off, spindle-forward, spindle-reverse, spindle-speed (float)
those are the commands I can use?
or what do you mean?
halui pins I plan to add
hmm.. I seem to have named them differently a while ago:
Do I need to start halui to use these functions?
Lerneaen_Hydra2_: they only exist in la-laa land right now (as jepler said)
Lerneaen_Hydra2_: give me a while :D
alex_joni: how ya doin on that side of the pond?
Yesterday is was humid as can be, not as hot as it's been, but extremely humid
not very hot.. but still hot (abou 95/100F)
greece last week was terrible
102F and 95% humidity
Ewwwwwwwwwwwwwwwwwwwwwwwwww! I'll never visit Greece then! Sounds like the South here - where les_w is at.
I can handle the heat (120+ in AZ) but not the humidity.
03alex_joni 07HEAD * 10emc2/src/emc/usr_intf/halui.cc: added spindle command pins
Jymmm: but they do have a VERY nice sea to compensate
sounds like a normal summer day here in WI
skunkworks 95% humidity in WI ?
03alex_joni 07HEAD * 10emc2/configs/halui_halvcp/ (halui.vcp halvcp.hal): added spindle command example
what he said
If I used 1/16" aluminum angle, do you think it be too thin to use as a edge? flexing out too much maybe
cvs up -dP ?
no cvs root specified
cradek: How is the lathe coming?
Lerneaen_Hydra2_: you do have a CVS checkout of emc2, don't you?
you run "cvs up" from inside the top directory of the CVS checkout
Lerneaen_Hydra2_ is now known as Lerneaen_Hydra2
jepler: will I loose the update we applied previously, or did you commit that to cvs?
the one with latency and jogwheels
when you have changed the local version of a file, and someone else has checked in a new version on the CVS server, CVS "merges" the changes. It doesn't simply discard one or the other.
Lerneaen_Hydra2: sometimes you do get merging problems
that could bork code though, right?
when cvs can't decide how to combine the changes
however, when the same part of the code is changed in both your copy and the CVS copy, you can get a "conflict" which is marked with a row of ">>>" signs
then you need to look at the file yourself
what jepler said
jepler: did you commit that fix to cvs?
Lerneaen_Hydra2: Yes, I did.
alex_joni: ok. updated and compiled
One way to resolve a conflict is to tell CVS to just take the version from the CVS server: "cvs up -C FILENAME"
change FILENAME to the file with a conflict
oh. ok. CVS is wiki-esque too right? in that it keeps all versions of a file?
that sounds really nice
you can look at other versions of the file in your web browser, if you like: http://cvs.linuxcnc.org/cvs/emc2/configs/halui_halvcp/halvcp.hal?graph=1
quite a bit better than wiki
sounds like a good system for distributed developmend
it takes care of a lot of problems
indeed. seems good.
alex_joni: what is the next step for me and my spindle buttons?
in a standard hal file?
linkpp button.spindle-start halui.spindle.start
linkpp button.spindle-stop halui.spindle.stop
linkpp button.spindle-forward halui.spindle.forward
linkpp parport.0.pin-12-in halui.spindle.start
you'd link something to halui.spinndle.XXX
button.YYY is a button shown by halvcp (right?)
jepler: run it once..
I think I need an introduction to halui, as I have no idea what it is
the halui_halvcp config I mean
is halui some type of GUI for hal?
Lerneaen_Hydra2: a simple program that runs in the background
like classic ladder for hal?
it exports some HAL pins, and sends proper NML messages when these change
it acts like a GUI (tkemc, AXIS, mini, etc..) but using actual knobs and leds
not RT, userlevel
alex_joni: ah, ok
so the jogwheels use halui?
yes and no
halui has support for jogwheels, but so does the motion controller
the later is RT and preferred
oh, is there any chance of feedrate jogwheels?
but with halui you can (at least in theory) have the jogwheel on another PC (different than the one doing the RT control)
there is a feedoverride input to the motion controller
so I think you can connect an encoder component and make it work like that
but no support in halui for jogwheels...
you'd need something that takes a jogwheel position (which is an integer which can have essentially unlimited values) and turns it into a feed override value from 0.0 to 1.0
which I have no idea of how to do in HAL
you need to scale it
then probably limit it
"HAL:16: ERROR: pin 'button.spindle-start' not found"
this is strange as I have the linkpp "linkpp button.spindle-start halui.spindle.start" a few line earlier
Lerneaen_Hydra2: do you actually have a pin called button.spindle-start ?
Lerneaen_Hydra2: that pin is defined by halvcp, which you probably didn't start
alex_joni: hmm. probably not. so linkpp doesn't add them?
you do want something like:
linkpp parport.0.pin-12-in halui.spindle.start
oh, no I didn't load that
so I don't need halvcp?
you probably don't want to use button.spindle-start .. you want to use a physical button connected to parport, not a "virtual" button created by halvcp
linkpp parport.0.pin-12-in halui.spindle.start
and remove the previous lines?
command (EMC_SPINDLE_ON) cannot be executed until the machine is out of E-stop and turned on
Traceback (most recent call last):
File "/home/cnc-lathe/emc2/bin/axis", line 61, in ?
ImportError: /home/cnc-lathe/emc2/lib/librs274.so: undefined symbol: _Z22USE_TOOL_LENGTH_OFFSETdd
so. how do I define that spindle-on isn't started untill later?
you need to "cvs update" in the axis directory too, then "make" again
cradek created some new incompatabilities when he checked in his newest lathe work
Lerneaen_Hydra2: it seems your parport pin is pushed by default
jepler: which is fixed now?
that's why the message gets sent
alex_joni: oh, so the spindle can't be set to on when starting?
my comment about "cvs update" for axis is to address this error: ImportError: /home/cnc-lathe/emc2/lib/librs274.so: undefined symbol: _Z22USE_TOOL_LENGTH_OFFSETdd
the other error about EMC_SPINDLE_ON will be a separate issue
jepler: oh, ok
Lerneaen_Hydra2: no, emc needs to be enabled for you to switch on the spindle
for security reasons when in estop the spindle is stopped
so axis main dir then cvs up -dP
alex_joni: oh, ok. seems strange that it would refuse to start though
and emc comes up by default in the estop state, then you push estop reset and machine on
it refuses to stop because of the ImportError
er, refuses to start
it should start, but the AXIS problems stops it
Lerneaen_Hydra2: that's the issue with bleeding edge :)
uh, I've never got axis via cvs before, so I can't update it. Any idea of what the adress is?
alex_joni: in this case it's worth it ;)
I need to find one of these on ebay so I can convert it to CNC! http://blog.modernmechanix.com/2006/06/28/brain-crane/
I find it actually to be very stable for being bleeding edge :)
Lerneaen_Hydra2: you can either download a new .tar.gz, or read the instructions to get a fresh checkout, here: http://axis.unpy.net/downloads/nightly
jepler: ok thanks
jepler: use EMC with it! :D
jepler: no way.. that's 21st century?
jepler: I especially like the automatic eye-stabbing feature
I think they missed the action by 4-500 years
alex_joni: 20th. "Source: Science And Mechanics 6-1952"
oh, then it's more plausible
I seem to get many errors
oh-oh.. what kind?
and the same one as before
[18:25:12] <Lerneaen_Hydra2> http://pastebin.ca/74143
Lerneaen_Hydra2: hm, I don't get that error here
did you download a snapshot, or did you get the CVS?
do you have the spindle-start pin in your hal file?
Lerneaen_Hydra2: didn't you get an error when running 'cvs up' in the axis dir?
yes, I did
because I had never gotten axis via cvs
alex_joni: he's not working from CVS of AXIS, but from snapshots
right, but that means he needs a newer snapshot
to work with the latest emc2 changes
Lerneaen_Hydra2: in your emc2/src directory, you need to remove the old snapshot and re-run configure (--enable-run-in-place) after you untar the new snapshot. did you do that?
Lerneaen_Hydra2: do you get the problem when you run the configuration configs/sim/axis.ini?
heh, a different error >.<
[18:31:14] <Lerneaen_Hydra2> http://pastebin.ca/74147
ooh you got a palindrome number
Lerneaen_Hydra2: that's a problem with udev
did it really print lines and lines with just "."?
jepler: the scripts/realtime does that
at an interval of once per second, roughly
Lerneaen_Hydra2: try it again
huh. it worked now
no errors or anything
probably a bad cleanup the last time
so .. sim/axis.ini works again?
is your own config file still broken?
"Shutting down and cleaning up EMC...
Could not find pid(s) for task halshow
Cleanup done" when exiting
that should be ok
I think it always says that
yes mine is still borken
same errors as in the pastebin?
should I check in detail=
it looked roughly the same
wonder if AXIS barfs if it receives the error before the interface is completely up
NameError: global name 'live_plotter' is not defined
Lerneaen_Hydra2: can you switch the spindle button off?
that came up before I saw the GUI
whoa.. I had no idea you can use tab completion on ./configure --ena<tab>
doesn't work here (breezy)
works here .. dapper :D
dapper here, sim axis works
jepler: . /etc/bash_completion
I see tab-completion works in a lot of places
Love the 1.4a0 version string :D
Cradek: how is the lathe coming?
Lerneaen_Hydra2: it's working here
latest AXIS and halui
I'm off to pick up some material for it soon
how do I test just that?
I'm running halui_halvcp config
lathe support in emc/axis is coming along just great
and I replaced the DISPLAY = tkemc with axis
cradek: should I say this?
alex_joni: works fine here too
cradek: there seems to be a problem with the redrawing of the AXIS screen
"HAL:1: ERROR: signal 'axisui.jog.x' not found" though.
if I drag the window around, sometimes the 3D preview stays blank
move the entire axis window, or translate the view inside axis?
alex_joni: mine stays good
entire AXIS window
does it redraw when you translate the view or use the scrollwheel?
it does redraw OK
any errors on stdout?
might be an xserver issue then
this only seems to happen if I drag it outside the screen
what do you mean
If I drag AXIS around my workspace it's OK
but if I move it outside the viewable area then it happens
probably not an axis bug
doesn't that happen with most apps?
try other GL apps
glxgears flickers when I drag it outside
but I guess they redraw more often :)
yes it redraws all the time
any other Gl apps I might try?
what gl driver are you using?
I think mesa-soft
but I have no clue :D
didn't alter with it
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce FX 5600/AGP/SSE2/3DNOW!
seems it should say Mesa in there somewhere
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
I'm surprised it doesn't work right then
maybe you should use breezy :-)
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
this is breezy
hmm.. after running glxgears, I can't replicate it anymore
cradek: anything that you were wondering with lathes?
cradek: I can live with this
I think emc/lathe is done for a while
I'm going to work on building my lathe now
I think it's working quite well and has the most important features now
alex_joni: any idea of how to get the switch to work?
the hardest part about my plan for the X axis is going to be finding a long 5-40 screw
Lerneaen_Hydra2: I'm not sure I understand what is wrong with your setup
yes standard screws are 4-40 and 6-32, but my leadscrew has 5-40 holding the end piece on
does this line work for you in a hal startup file? "linkpp parport.0.pin-11-in halui.spindle.start"
Lerneaen_Hydra2: did you run halui?
'HALUI = halui' in the ini
hmm, probably not
check the halvcp_halui/*.ini
that should be before the lines that load the hal commands, right?
doesn't matter.. it should be under [HAL]
hmm, I do load halui
can you pastebin again?
the errors in the terminal?
[19:01:53] <Lerneaen_Hydra2> http://pastebin.ca/74176
I closed emc wilfully
oh, so it is running?
cradek: can you take a peak?
is the spindle_on button activated all the time, or do you need to change that to pin-11-in-not?
I guess he needs the -in-not
halui is causing an error by turning the spindle on while in estop
there may be other issues, but I'd say that turning the spindle on automatically at startup is an error ;)
this error causes axis to puke because it comes in before axis has initialized itself
alex_joni: I've tested starting with the switch in both positions, same effect
cradek: thanks for backing me up..
Lerneaen_Hydra2: halcmd show pin
and make sure it works
how did you connect it?
I agree with SWP's analysis!
cradek: I kinda thought so too..
"linkpp parport.0.pin-11-in halui.spindle.start"
Lerneaen_Hydra2: I meant the physical button
it a toggle switch with a pullup. in effect one position gives 1 another 0
does it stay where you put it?
SWPadnos: yeah, but that's not the issue here
Lerneaen_Hydra2: can you make sure it works?
halmeter says it works...
start halmeter and look at the parport.0.pin-11-in value?
and switch it around?
works like I said
ok, then leave it to 0 and start again
one position true, the other false
start emc2 again
wtf. It loaded now, after I had loaded it in the same way many times before, but without errors
the only difference was that I set it to <pin>-not
becuase I wanted that with the hardware
After I get ubuntu installed, is it just a matter of apt-get install emc2 ?
Jymmm: you have to add a repository, but pretty much yes
however the switch doesn't do anything
cradek Cool, is there a url with the list of repositorys?
instructions are on the wiki
Jymmm: not quite that simple. start at step 2: http://linuxcnc.org/index.php?option=com_content&task=view&id=21&Itemid=4&lang=en
Lerneaen_Hydra2: load a halmeter and look at halui.spindle.start
when that value goes from 0 to 1, it should start the spindle (see it in AXIS)
halui.spindle.start is always false
actually, this may be an initialization issue in halui
halcmd show sig
but parport.1.pin-11-in-not works
old_halui_data is never initialized (though it *should* be initialized to 0 by C)
SWPadnos: even if that's true.. I see no reason for it not to toggle
but you're right..
[19:12:45] <Lerneaen_Hydra2> http://pastebin.ca/74188
Lerneaen_Hydra2: that's ODD
* Lerneaen_Hydra2 smacks head
* Lerneaen_Hydra2 against the desk
* Lerneaen_Hydra2 vicoiusly
03jepler 07HEAD * 10axis/scripts/axis.py:
when an emc error (e.g., 'command cannot be executed until the machine is out
of E-stop and turned on') was pending when axis started, it could lead to
Python exceptions such as "AttributeError: LivePlotter instance has no
attribute 'logger'". Reorganize startup a bit to fix this.
wtf.. I'm gettings errors again
yeah, you need to connect it to pin-11-in not -not
alex_joni: why not -not?
or move the switch in the other position
it's set to false currentöy
cause it probably worked OK the first time, but then we inverted
uh, lemme test first ;)
you know - there should be some way to disable HALUI until after loading and configuration are done
Lerneaen_Hydra2: don't bother.. jepler already fixed axis for that..
alex_joni: so do I get a new version of axis?
this is done in RT by not starting threads until everything necessary has been connected
Lerneaen_Hydra2: with a dedication
SWPadnos: I don't see it as a bug
uh, ok. that one flew way over my head ;)
...O.... <- joke
how long till the tar.gz us updated?
Lerneaen_Hydra2: grab the CVS version?
I don't know the adress
how do I use that?
cvs -d:pserver:email@example.com:2401/cvsroot co axis
(I'm still somewhat new to linux and cvs)
jepler: in the correct dir?
Anonymous access to the CVS server is available too. The CVSROOT is :pserver:firstname.lastname@example.org:2401/cvsroot
do that in ~ or tmp, then "mv" the newly created axis directory into emc2/src, remove the old axis dir, re-run configure
I still get errors :(
hmm. I'll have to continue with this later
Lerneaen_Hydra2: what now?
i'll pastebin them though
[19:26:31] <Lerneaen_Hydra2> http://pastebin.ca/74197
also the behavior is strange
cradek: btw, just for info, seems that probe is working great
some german user reported this
when first turning it on it works, but then I can't turn it off, so I turn it off via AXIS. after that I have to turn it to on, off, then on again to start it again
it's meant to be used with momentary contaqct switches
so you should have to press another button, connected to spindle-off, to turn off the spindle
you should be able to flick the switch on then off, and still have the spindle start
or add another hal component to do that
SWPadnos: that works
hmm, I may add some hardware to emulate the two buttons
Lerneaen_Hydra2: it might get tricked if you do this:
I wouldn't do that. it's that way for a reason
linkpp parport.0.pin-11-in halui.spindle.start
linkpp parport.0.pin-11-in-not halui.spindle.stop
hmm, I'll test that
I also advice against this :)
I wouldn't do that. it's that way for a reason ;)
the main reason being that it doesn't start spontaneusly on coming in to manual jog mode?
alex_joni: that works now
Lerneaen_Hydra2: it's an UGLY HACK
alex_joni: I take it the switch will only change the state in jog mode?
an UGLY and DANGEROUS HACK
SWPadnos: not sure about dangerous
halui only switches on transients
so no reason fearing it will go on without touching the button.. I think
ideally there would be a function that when it receives a change in signal outputs a signal (basically the derivative of the input signal)
but I would still not go near that spindle
hmmm - that may be OK, but contact bounce may still get you
Lerneaen_Hydra2: you can do that in CL
you know - "oops - the switch is on, let me turn it off", and the spindle starts
alex_joni: can I connect CL, halui, and the hardware?
SWPadnos: no.. it stops
Lerneaen_Hydra2: sure, that's the beauty of the HAL
Lerneaen_Hydra2: you CAN'T think of a too complicated design that can't be implemented :D
unless you run out of HAL shared memory ;)
that's only a SMOP
but you really don't want to think that hard :)
unless you use an HAL-config generator
hmm, the switch works in MDI, and gives an error when running a program
like an autorouter :D
do you have flash?
Lerneaen_Hydra2: sounds like the way it should be
ideally there wouldn't be an error, but this is good
check out these autorouter videos:
well - semi-manual multi=pin routing, that is
[19:35:47] <SWPadnos> http://www.altium.com/Evaluate/DEMOcenter/AltiumDesignerNewFeatures/Enhancementstosupportmultitrackrouting/
ok, this works.
hmm, terminal still gives tinker errors though
(see pastebin link higher up)
maybe a HAL component that works like this would allow a 2-position switch to be used like 2 buttons: http://emergent.unpy.net/files/sandbox/topulse.png
jepler: that's what I was talking about
SWP: whats the price of an altium license ? ;)
thanks for the help :)
$10k for the PCB + schematic. $12k for everything, including FPGA
for that, you'd expect nice multi-track routing ;)
sounds like a yummy feature when making motherboards
or anything with memory, LCD displays, ...
well.. I actually meant the pricerange :D
not your usual .2$ micro & 4$ LCD
I think you can use timedelay / debounce to generate those one-shot pulses from a switch
but I'd have to think about how
and some logic, like and2's
seems like the need of a pulse component
i hate you swpadnos
* fenn mutters about $10k pcb's
fenn: was looking for a 3-legged stewart today
it's a lot of money, but when it allows you to complete a $850,000 project on time, it's a pretty good deal
of course, that assumes that the $850,00 project actually happens
$850,00 * 0 = 0 :)
I've noticed that
alex_joni: what for?
a slightly simpler turn/tilt table
fenn: found one eventually
3 variable struts and 1 fixed strut?
no, only 3 variables
wuzzat called.. a tricept i think
maybe for halui it doesn't need to be a pulse .. so it's just IN and NOT IN for the two outputs
except then you are stuck with either senidng a "spindle start" or a "spindle stop" to emc too early
hence the need for a "wait until init is done" input of some sort
something like that, or even a parameter that the UI can turn on
that way it can't be connected to a hardware pin
* alex_joni goes to bed
night night Alex
nuff for today :)
yep - I guess it's errand time
or is that errant time? :)
i dont see how that tripod could possibly work
or just make halui not send a nml command if some input starts at high level .. only when it changes from low to high
yep - that would also do it, but only for startup glitches
a parameter / pin would allow a UI to enable or disable a physical pendant
a GUI, that is
SWPadnos: Did you say that you installed 6.06 server version?
* robin_sz meeps
I'm finally off work
what's that thin in alex's dropbox?
A-L-P-H-A: I dont know yet, as I have a USC I can still keep a reasonable period
03 float -W -inf axis.7.motor-pos-cmd
I just noticed something interesting in my "halcmd show pin"
jepler: Meant to ask you... why did you use a USB2SERIAL with that ARM uC ?
Jymmm: oh yeah, I saw that scroll by but never answered
Jymmm: this laptop doesn't have a traditional serial port
jepler: Ah, ok.
Jymmm: but if you're going to custom-make a control panel + microcontroller + PC interface, USB is almost as easy as rs232 serial these days
(lower component count than the old max232 with several external caps, but packages that are harder for hobbyists to use)
and it will even be on new PCs in 2 years from now
yet another crap day at the office .. no, wait .. a good day, but staff ebing a pain
somedays, I think I might have employed 6yr olds, not welders
is it possible that they're both?
6 year olds, and welders
anyway, got to quote on a good contract today. hope we get it.
jepler: Any reason ARM instead of atmel?
or do you mean the AT91xx ?
any of you ever worked in Cromweld? that the 'almost' stainless steel,
3CR12 is another name, or 1.4003
Jymmm: it's what was handy. I would have to breadboard the stuff for the AVR, but I picked up this "arm stamp" and felt like using it instead. http://emergent.unpy.net/projects/01141702410 http://www.futurlec.com/ET-ARM_Stamp.shtml
jepler 46 I/O wow
quite a lot of the FPGAs now have cores for things like atmel AVR and 80C51 etc, so you can just embed one with a load of logic on a FPGA
robin_sz: FPGA is a "one of these" days things for me
if you get a moment and have a spare Windows machine, look at the Xilinx IDE, its super easy to use
free (as in beer) too
$25 for the stamp, and $23 for the dev board... Shit, that's the same price for the BASIC STAMP alone!
Jymmm: if you're an AVR fan make sure you check the ET-AVR board too (atmega128, $19.90)
I don't have that board but I assume it's also just fine
I sorta like these zworld RABBIT processors now
being able to program them in C helps
I wouldn't touch something I couldn't program in C
almost as much as Basic :)
I have programmed asm for avr, but usually fewer than 25 lines per project
quite. a little is OK for some interface or some such
or configuring the thing
but best avoided
I wrote the os for a TV once, all the I2C routines etc in assembler ... it even went into production. Im sure there must be people cursing it now "hey, why did it just mue the volume .. again"
I was looking at the 'gps modules' on the ARM page and it made me think... aren't the external gps antennas really the whole receiver and the gps just sends DC out to power it and the "external antenna" just sends the signal back?
the external antennae sends is usually just a antenae and a pre amp
but you can get a whole rx for $50 or so anyway
I think motorla even do a USB one
[22:37:52] <Jymmm> http://cgi.ebay.com/External-Amplified-GPS-Antenna-Cable-Magnetic-Mount-15_W0QQitemZ170002900827QQihZ007QQcategoryZ73348QQrdZ1QQcmdZViewItem
For some reason I was thiking the ext antennas had a Rx in them too
That be totally cool... I could shove the NEMA data directly to my rig!
Since when does GPS need to Tx? You're just picking up 3 or more satellite signals
the previous generation of these receivers were like that. Everything is in the brick at the end, and at the other end was a RS232-voltage serial with a nonstandard pinout. Now they're USB. http://www.deluoelectronics.com/customer/product.php?productid=119&cat=27&page=1
well, usually, yes its RX only, but not always
What, now they have a 'here I am!' transmission?
asdfq-shop: When it's connected to my rig ---? http://www.gigaparts.com/parts/profile.php?sku=zkw-tm-d700a
asdfq-shop: haven't you watched the bad spy shows on TV? they always track people using the GPS transmitter in their cellphone...!
asdfq-shop: APRS --> http://www.ew.usna.edu/~bruninga/aprs.html
Who would be using GPS Tx?
I've used findu.com when I took a road trip from SF to LA and gave all my friends the url... they could see where I was at at any time... so if they wanted to go to the store, they knew I was 100 miles away or whatever.
asdfq-shop, theres two way data on the GPS satellites AFAIK,
asdfq-shop: My HT has APRS as well... So if you're part of a search and rescue operation, base can see where everyone is, where they have searched, where they havne't looked yet, and not duplicate efforts.
we have that over here too .. RAYNET
asdfq-shop: (didnt see you dropped out...) My HT has APRS as well... So if you're part of a search and rescue operation, base can see where everyone is, where they have searched, where they havne't looked yet, and not duplicate efforts.
they used to get asked to help running checkpoints on various races and long distance events. then the cell-phone was invented.
Yeah the Foothill ARC (iirc) is the one that does the Rosebowl Parade every year, I remember them finding a bomb once.
did it go "bang" ?
I think they saw they guy trying to plant the bomb actually.
so ,no it didn't
gah, party poopers
everyone likes a nice bomb
eh, 120,000 ppl all around... all that blood and guts to clean up
makes things go off with a bang :)
Good grief, internet access is harder than pulling teeth today
jepler: this one says serial with the proper adapter... http://www.deluoelectronics.com/customer/product.php?productid=99&cat=1&page=1
Are you Jealous? Is your spouse cheating on you? Are your kids mucking around? Buy this ---> http://www.deluoelectronics.com/customer/product.php?productid=21&cat=11&page=1
"You too can become a professional stalker to the stars"