On Sun, 2009-05-03 at 07:04 -0500, Ray Henry wrote:
> On Sun, 2009-05-03 at 09:56 +0100, robert wrote:
> > this is a shame if emc does not store current tool into a paramiter 
> > looks like i need to keep a perm record in plc some how then.
> 
> You could use a parameter in the var file to keep track of current tool
> number.  This ability has been a part of the EMC for all the years I've
> been hanging around it.  IMO this is more a user interface issue than it
> is a core EMC problem.

Parameter as in .var file or with g-code #?

I did a little more research, I think iocontrol.0.tool-number and
iocontrol.0.tool-prep-number will work. Using a sim config and Hal
Meter, it looks like tool-prep-number changes on the completion of the
Tx word, and the tool-number changes on the completion of the M6 word. I
suspect they where designed to work that way :). So tool
prepare-prepared can stay tied together (logical short circuit). Then
the change-changed loop could be opened to insert a script that checks
iocontrol.0.tool-number, checks the carousel encoder and insures they
match, invoke a tool removal, read iocontrol.0.tool-prep-number, move
the carousel to the prep-number, move the tool from the carousel to the
spindle, set tool-changed to true.

Other parts of the script could be made to clean the tool taper, verify
the tool is seated properly, verify the changer arm is in the proper
positions, time-out if any procedure takes too long, check for adequate
air pressure if needed, check for proper sensor operation, etc.

One problem might be that EMC2 seems to start with
iocontrol.0.tool-number = 0, and iocontrol.0.tool-prep-number = -1, so
an init script may be needed to read the carousel encoder, or maybe
better, require the operator to check or set the carousel, spindle and
tool status at start up.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to