Chris cradek are you there?
no, no uh oh
I was reading your website
saw your entry about "Floating Point Irritant"
There are many...mine was always this one...
float d = 0.0;
d += 0.01;
heh, I got your email
d -= 0.01;
then print results
it will generally be a negative number in most C/C++ compilers.
Did I send and email?
* AzRockCrawler scratches head
well if not you, someone else did the other day
it's hard to tell when people don't use their actual names
Good ole binary.
so I was guessing from the context only
the emailer suggested that d+=0.01f; ... would fix it. s/he was right.
But it is not intuitive IMO.
no, probably not.
I was going tosay
that 'double' generally resolves those issues too, rather than using floats.
But it has its own issues.
anyway...the joys of binary.
Is it possible to have different acc applied to G0 and G1 ?
a-l-p-h-a is now known as a-l-p-h-a
Sweeper_ is now known as Sweeper
Can some one tell me how to do a tool change. I had assumed I could pause the programm, change the tool, home the z axis and resume, but not so. Help please!
yeah emc people
why cant i do that?
so i have to use seperate files for each tool
unless they have collars
not all of us have big expensive tool changers with pre indexed tools
some g code then, move to sensible places, gcode to change tool, click dialog box to continue, I have no tool changer
no if you have to reset the Z
to an unknown
like during the toolchange, im pretty sure you cant do that in a cycle
youd have to stop it and select a start line and restart cycle
and i dont like the select start line feedback in axis, like im never sure if it actually did what i wanted
I have basic set up, my file has gcode for tool change, I get the tool change dialog, but I cannot zero the tool in z axis
you need to zero the tools before running the gcode
should have a 'next line to execute' area in status bar, maybe like [ 345 / 12343 ] for next line/total lines
and put that into your tool table
no we cant
spring collets, hai
then use a z probe move
and that will reset z in cycle?
i need a probe?
wtf is a prob my machine is open loop
yes and no
if you could reset Z during a tool change, it would make issue go away
Is it possible to stop the machine and then start it again from a certain line in the code?
i cant index tools
sec ill check machine
just break the code up for each tool...
oh wow its off
sec ill check machine does what?
but its machine > set next line, i think
i was gonna see what the menu option was, but my machine is off
but you have to highlight the line in the bottom pane
in the gcode, and then do machine -> set next line
and then start cycle and itll start from there
i kinda wish it had more visual feedback, line a program counter
Thanks. I think I,ve got it
I agree with BigJohnT that the safest thing to do is split the program up, one run per tool
a much better scheme, if you can pull it off, is to use a tool height sensor
thats what i do
the split files
more time, more annoying, more room for error loading multiple files instead of just one and reading which tool to load
renesis_: that is the safe way if your machine is not set up for tool changes
well thats kinda the only way right now
I agree it's annoying and error-prone
have you looked into the tormach tooling? it's affordable and a good upgrade for collet CNC machines
like with the tiny drills, i can do one file and read the tool and load it, goes very fast
they have collars, tho, and its just drills
even that + touch off would be alot faster than finding files and kinda verifying its right and touching off
and tormach stuff is neat
but yeah kinda pricey compared to $0 and some text editing to make collets work
i have to call my failob and see if they fixed the lan
yeah I like $0 too. depends what the time/annoyance is worth
tormachs lathe thing looks neat
hm the tool setter probe I saw at workshop is $800.
yeh thats like half the price of my mill almost
I think I could make something suitable for my needs in a day or two's work. it wouldn't need to be super precise.
annoyance is bugging me, I need to automate measuring a mounted cutter eccentricity/centerline and outside dia
you can make one with a microswitch and a couple of parts
BigJohnT: my thoughts too
kinda like the reverse of my floating head on my plasma cutter
BigJohnT: I'm thinking a dowel pin with the end ground flat, in a simple reamed hole
then a simple microswitch underneath somehow
neat, job is having issues
just turn down the center for the roller of the micro switch
wanna know why?
Im contemplating a laser line and opto and following the profile
shouldn't be too hard to get .001 repeatability
cuz they think its the ISP, even tho their LAN drives are down
microswitches are that good?
I've been very surprised, but yes they seem to be
renesis_ is now known as renesis
cradek: let me see if I can find a picture of my touchoff switch on my plasma
don't use a springy lever of course - press on the switch plunger
or the roller one
i wonder ow accurate the cherry switches in the arcade buttons i have are
the vertical rod on the left is my Z home and limit with a roller microswitch mounted to the flat plate. http://s47.photobucket.com/albums/f163/johnplctech/?action=view¤t=zassb.jpg
they have the plane buttons
much better picture http://s47.photobucket.com/albums/f163/johnplctech/Plasma%20Cutter/?action=view¤t=Plasma012.jpg
that's quite the thing, wow.
The lower switch is my touch off switch
so wait i put a switch on my table and write some code to make it touch off on the switch?
[15:11:03] <cradek> http://cvs.linuxcnc.org/cvs/emc2/nc_files/tool-length-probe.ngc?rev=1.4
cool, using G30 to go to the switch position
where does (print, happen?
the console or a popup window, I forget which
pop up dialog or terminal or the lower pane or what
(debug, does the other thing)
hmm, okay ill try next time
i wonder where i put the arcade buttons
Max Movement Differential
in anod out swtching points, choose one only
the other one is Operating Point
like .055 diff
i think arcade button cherry switches might be fail for NC, heh
ill stick in a vice and try it like 20 times i guess
smaller ones have a better spec for cnc
i should just buy a handful, i prob wanna do limit/home switches too
yo machine heads!
* BigJohnT 's head is hurting from all the incoming info
* chr0n1c started a PIC programming tutorial this morning
* skunkworks is trying to wrap his head around 6 axis.
got videos from fest online yet?
is curious about the videos also
I want to see the 6 axis stuff :)
No - not that I see. That would be cradek, jepler or jmkasunich
We got a good deal on a puma 560 robot arm - (just the arm and servos - no control)
Emc has that exact config. So... I was playing around with the sample.
* chr0n1c needs a robot arm
Another project... ;)
gcode properties doesn't work on trunk
when I touch off file 3d_chips.ngc I have error: emc/task/emctask.cc 312: interp_error: Bad character 'c' used
Bad character 'c' used
I can reproduce the first problem but not the second.
(the first is a consequence of improvements made on trunk and I know in general what the problem is)
jepler: hold on I am try to rereproduce second one
jepler: this is the same kind of problem that running from line bug from about 4 months ago
something is uninitialized and return bogus values
can't find what it is
in mean time I saw error by opengl: (invalid operation)
ok I got it
run 9 axis config
and select joint 8 and then touch off --> above error
oh -- so the actual bug is that you can "touch off" in joints mode
I selected 8 joint and started touch off
I cant touch off xyz only
ok I search third bug
thanks for FAST response time. I'm impressed
any thing new??
micges: I am not sure if my latest checkin actually fixed the problem you saw in touch off -- I never saw the error myself
Ill check it
[22:40:39] <dmess> http://www.stemmewest.com/pages/S10_E.pdf
im still jonesn' for this baby....
Can anyone outline how to set up a probe to zero the z-axis when the bit touches a plate closing the switch?
look at the touch probe for the lathe set-up... i do believe i seen that somewhere
I did see a couple of short tutorials, just wondering how I can hook this into axis
right now I have an input pin hooked to z axis home
and when I hit the home button, in axis it sends the axis down
I am hopeing when the switch throws, it will stop and set Z to 0
really I need a slight offset to adjust for the plate
you use a G38 probe move and the switch needs to be hooked up to the probe input
same as #2 on this page http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Plasma
so if I put my work on the machine table, then just go to mdi mode in axis and type in G38
depends on how your switch is wired and if your going to or away there are 4 choices
I use G38.2 http://linuxcnc.org/docs/2.2/html/gcode_main.html#sub:G38.2:-Straight-Probe
you also have to tell it what axis and what direction and how far to go before giving up
for example G38.2 Z-2
and you have to have a feed rate set at the time you use the G38
Ok I think I got that
still working on wireing up the switch
whats the difference between home and touch off?
make sure you "connect" it to the motion probe input
I think I can do that with stepconf
let me see
yep u can
ok just connected it to probe in
this is actually nicer then the way I was picturing
because now I think I can get it to rezero
after a tool change
yes, you can
I do it with my plasma torch before each cut
how do you account for offset from the plate
or surface of the switch
I have a floating head
yes my bits are at ground
so is the table I think
so I need a third element
look in your nc_files folder for a file called tool lenght probe.ngc
it outlines what you need to do
after you get things hooked up
you the MAN Big J
why is that dmess?
Ok thanks for the help, I will check it out
One other question
your out of questions for the day LOL
is there a way to get say 0 - 400 hz square wave for spindle control
instead of pwm
that is beyond my guesspertise
yes me too!
ah well, I can stick with the touch probe for now
square wave is pwm?
I have enough torn apart to keep me busy for a couple of days
keep asking there are plenty that can answer you just have to catch them on line
well, I need to vary frequency instead of pulse width
I have an old controller card for the spindle
it seems to work fine if I hook it to a square wave generator and vary frequency
but the pwm gives me a limited range of speed
it does change, just not much control
* BigJohnT needs to go upstairs and get control of the remote as law and order is almost over and time for some MASH
i dunno, above my knowledge of emc2 there...
talk to you guys later