Am 08.09.2011 22:22, schrieb Don Stanley:
> Thanks Andy;
> The thing I am stumbling over is What to connect the touch switch pin to
> in the .hal file. After that I have no idea ask but I think you may have
> answered some of it.
The intenal signal is "motion.probe-input" which you should connect to
the probe switch.
a few months ago i wrote a little skript (tool-length-set.ngc) which
measures all tool lengths and writes the offset to the reference tool
into the tool table.
The reference tool is the first one in the script and has no tool number
(T0). The comments are mostly german but i think the script is not very
complex to understand. :)
Ciao,
Rainer
(Automatisches ausmessen der verschiedenen Tool Längen und eintragen in die
tool.tbl)
(PROBEOPEN probe.txt)
(Subroutine, welche das aktuelle Tool ausmisst)
O100 sub
O101 repeat [#<_count>]
(messe naechstes tool)
G0 Z30
T[#<_tool_nr>] M6 (insert used tool number)
G30 (fahre auf vordefinierte position, gesetzt mit g30.1)
G38.2 Z-20 F70 (messe solange bis schalter gedrueckt)
G38.4 Z20 F10 (messe solange bis schalter geoeffnet)
#<diff> = [#5063-#<_ref>]
(debug, Laengenunterschied Tool #<_tool_nr> zur Referenz = #<diff>)
G10 L1 P[#<_tool_nr>] Z[#<diff>] (tool offset speichern)
#<_tool_nr> = [#<_tool_nr> + 1] (tool nummer erhoehen)
O101 endrepeat
O100 endsub
(messe referenz tool nummer 1)
T0 M6 (kein Tool auswaehlen)
G30 (fahre auf vordefinierte position, gesetzt mit g30.1)
G49 (tool offset deaktivieren)
G91 (relative distanz verfahren)
G38.2 Z-20 F70 (messe solange bis schalter gedrueckt)
G38.4 Z20 F10 (messe solange bis schalter geoeffnet)
#<_ref>=#5063 (save reference tool length)
#<_count> = 5 (5 tools ausmessen)
#<_tool_nr> = 10 (erste toolnummer, welche sequenziell erhoeht wird)
O100 call
G0 Z5 (relative 5mm ueber dem geoeffneten schalter)
G90 (absolute koordinaten)
(PROBECLOSE)
(debug, Tool Offset ist immer noch aktiv!)
M2 (programm ende)
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users