Hello Guest it is November 15, 2019, 06:14:57 PM

Author Topic: ATC VB script example for rotary changer...  (Read 29838 times)

0 Members and 1 Guest are viewing this topic.

Offline Chaoticone

*
  • *
  •  5,628 5,628
  • Precision Chaos
    • View Profile
Re: ATC VB script example for rotary changer...
« Reply #10 on: October 02, 2007, 08:13:42 PM »
Scott has Brian on the brain.  ;D

Watch the brains intro video tutorials, they will help.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline drew

*
  •  79 79
    • View Profile
Re: ATC VB script example for rotary changer...
« Reply #11 on: October 03, 2007, 10:03:39 PM »
 :o  I didn't know Mach had brains.    ;)  Drew
If I had something important to say it would be here.
Re: ATC VB script example for rotary changer...
« Reply #12 on: October 13, 2007, 10:02:56 AM »
When using any of the toolchange macros described above, what file name would one save the macro to in order for it to work with Mach3.  M06.m1s ???
Normal tool change command is M06 TXX. The M06 calls for a tool change but how does the T value get passed to the macro?
TIA from a macro writing infant,
Claude

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: ATC VB script example for rotary changer...
« Reply #13 on: October 13, 2007, 10:08:55 AM »
Claude,

   Call it "M6Start.m1s"

The T value is grabbed by the Macro from the G code and from your tool number dro.

scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline drew

*
  •  79 79
    • View Profile
Re: ATC VB script example for rotary changer...
« Reply #14 on: October 14, 2007, 11:08:55 AM »
I just guessed to save it as "M6Start.m1s" like Scott replied. In MDI  put "t0606" hit enter and it runs the macro.
Drew

ps This example is for a Mach lathe setup not a mill. 
« Last Edit: October 17, 2007, 03:17:13 PM by drew »
If I had something important to say it would be here.
Re: ATC VB script example for rotary changer...
« Reply #15 on: November 09, 2007, 02:14:37 PM »
Hi, I've just posted a simple toolchanger BRAIN that might be worth looking at to give you some idea's for your application. Your ATC brain would be simpler as you only need to compare the tool encoder position to your tool request.

John

Offline BOB88

*
  •  20 20
    • View Profile
Re: ATC VB script example for rotary changer...
« Reply #16 on: December 30, 2007, 02:18:03 PM »
For Drew,

Does your VB script for the HNC Turret changer require a PLC?  How did you connect to the turret encoder, and air cylinders, to read the BCD code?  Can it all be done through parallel port inputs and outputs?  I'm doing an HNC and would really like to try out MACH3 if I can get by the Turret programming problem.  The machine has a Fanuc  Control with Fanuc 00 motor/encoders on it now, which are coming off.

Offline drew

*
  •  79 79
    • View Profile
Re: ATC VB script example for rotary changer...
« Reply #17 on: December 30, 2007, 04:09:42 PM »
My machine pics at http://www.machsupport.com/forum/index.php/topic,4618.0.html
My turret uses only LPT and M6Start.m1s macro ( no PLC, macropump or brains) to control 2 solenoids and read the 4 bit BCD and turret down(lock) position. Note when tool changing in lathe only the 'T' code is used no M6 in the g-code program.
The macro indexes at the current machine position so move your turret to a safe position before hand.
My Hnc had a GE 550 control. What fanuc control did/does your Hnc have?
If I had something important to say it would be here.
Re: ATC VB script example for rotary changer...
« Reply #18 on: June 30, 2013, 08:05:53 AM »
Hi everyone this is my first post here, I have been using Mach3 for years and am about to retrofit a mill with an analam 3300mk control and thought to add an arm type tool changer but not sure about the software part. I have a DL-06 plc and can wire everything up with no problem but programming from scratch is not my strong point. Any help would be greatly appreciated.