Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:18:36 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  ATC VB script example for rotary changer...
Pages: « 1 2   Go Down
Print
Author Topic: ATC VB script example for rotary changer...  (Read 5096 times)
0 Members and 2 Guests are viewing this topic.
Chaoticone
South Carolina, US
Administrator
*
Offline Offline

Posts: 3,598


Precision Chaos



View Profile WWW
« Reply #10 on: October 02, 2007, 07:13:42 PM »

Scott has Brian on the brain.  Grin

Watch the brains intro video tutorials, they will help.

Brett
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
drew
Active Member

Offline Offline

Posts: 68



View Profile
« Reply #11 on: October 03, 2007, 09:03:39 PM »

 Shocked  I didn't know Mach had brains.    Wink  Drew
Logged

If I had something important to say it would be here.
cowpoke
Active Member

Offline Offline

Posts: 27


View Profile
« Reply #12 on: October 13, 2007, 09: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 Huh
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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #13 on: October 13, 2007, 09: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
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
drew
Active Member

Offline Offline

Posts: 68



View Profile
« Reply #14 on: October 14, 2007, 10: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, 02:17:13 PM by drew » Logged

If I had something important to say it would be here.
cjmerlin
Active Member

Offline Offline

Posts: 180


View Profile
« 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
Logged
BOB88
Active Member

Offline Offline

Posts: 18


View Profile
« 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.
Logged
drew
Active Member

Offline Offline

Posts: 68



View Profile
« 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?
Logged

If I had something important to say it would be here.
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!