Kirk, Thanks, I a am now leaning toward classic ladder. I know ladder logic so it should be my quickest path to getting something working. My understanding is fuzzy on how to get a T? command to cause a bit or bits to react in classic ladder but once I have that mastered I should be set. I have been doing a lot of reading and going back and forth with different options and it's starting to get a little overwhelming. EMC is very powerful and flexible but there is a lot to learn.
So it looks like I could use halui.tool.number or iocontrol.0.tool-number to give me the correct tool number. It also looks like when M6 is run iocontrol.0.tool-change is set high until iocontrol.0.tool-change is driven high? My hal file will have this added to it. net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared (not sure what this does exactly) net tool-change-start iocontrol.0.tool-change => parport.1.pin-?-out (to send a signal to arduino to start cycle gets turned on when M6 is executed) System is paused at M6 until....below net tool-change-done parport.1.pin-?-in => iocontrol.0.tool-changed (to send signal from arduino to emc that cycle is complete) EMC continues.... net tnum-current iocontrol.0.tool-number => classicladder.0.s32in-00 (Ladder will get tool number from this) My ladder will look something like this: --[compare %IWO = 1]-----------------------(%Q1)- N.O. Coil linked to parport pin |-(/%Q2)- N.C. Coil linked to parport pin |-(/%Q3)- N.C. Could linked to parport pin --[compare %IWO = 2]-----------------------(%/Q1)- N.C. Coil linked to parport pin |-(%Q2)- N.O. Coil linked to parport pin |-(/%Q3)- N.C. Could linked to parport pin etc........... Does this make sense? Thanks, Mike On Mon, 2010-10-04 at 12:18 -0400, Mike Cinquino wrote: ... snip > Is there a specific link to info on tool changes in HAL? > > Thanks, > > Mike Just in case it might be helpful, here is what I have done with my lathe turret using a custom comp:http://www.wallacecompany.com/cnc_lathe/HNC/emc2/ The comp needs to get a Park sensor feature as well as some time-outs added for each state, but it there is enough here to make my turret function. If you already know the Ladder language, that may be the way to go. Either way, you end up with HAL pins for invoking your tool changer and then signaling that your changer finished. Just connect these in your .hal file. -- Kirk Wallacehttp://www.wallacecompany.com/machine_shop/http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users