On Sat, 2009-05-02 at 23:06 +0100, robert wrote:
> > My guess is that you need to make sure that your PLC sets
> tool-prepared
> > true when the tool is ready to be changed. The T word invokes the
> > prepare - prepared thread, the M invokes the change - changed
> thread.
> > You should be able to check the prepare and prepared signal status
> with
> > HALmeter.
> >   
> >   
> changer is a caracel, so tool prepared is not realy done/ready untill 
> new tool is in the spindle old one out back into the caracel.
> using halmeter i should of said, i did not see the 
> iocontrol.0.tool-change change to true, only saw the 
> iocontrol.0.tool-prepare go true.
> 
> this is why i questioned the m06 chain is EMC waiting for prepared 
> befroe the m06 chain can go.
> 
> i will do some more debugging tomorow when im back at the machine

In that case, don't use prepare-prepared. Just link the two signals so
that as soon as the prepare is set true, prepared becomes true. Most
example configurations have this because they don't usually have
changers. This will put all of the control burden on the M6. Do you have
a tool position encoder on your carousel? If not, you will need to get
fancy with how to keep track of tool and slot numbers. Actually, if you
have a tool slot encoder, you could use prepare-prepared to insert a
program to insure that the proper slot, for the old tool, is in
position. Then Tx (tool-change) will invoke the PLC to remove the old
tool, park it, then pick up the new tool, insert it in the spindle and
finally set tool-changed.

On my HNC lathe, I have a tool turret, so I didn't use prepare-prepared:
...
### TURRET ###
# create signals for tool loading loopback
linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared
linkpp iocontrol.0.tool-change turret.0.position-change
linkpp turret.0.position-changed iocontrol.0.tool-changed
...
( http://www.wallacecompany.com/cnc_lathe/HNC/emc2/configs/hnc_io-3a.hal )

My turret HAL component handles the turret control.

I have a carousel on my Shizuoka, which I haven't gotten working yet:
http://www.wallacecompany.com/machine_shop/Shizuoka/tool_changer_video.html 
http://www.wallacecompany.com/machine_shop/Shizuoka/00030-1a.jpg 

The plan is to have an twenty-four position encoder. Now that you got me
thinking about it, I suppose that there will be no prepare-prepared
thread. I'll need to check that the slot for the old tool is in
position, remove the old tool from the spindle, then rotate the carousel
to the new tool position, pick it up, insert it and set changed true.
Timers and other tests will be needed to insure the change proceeds
properly. I guess the question now is how to keep track of the old tool
slot number, because I think Tx (prepare-prepared) will change the tool
number before the M6 change.

-- 
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