Page 1 of 2 12 LastLast
  1. #1
    Hi there, can anyone tell me where to get the script for manual tool change in mach3 to post into the VB editor?
    Thanks Kev

  2. #2
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 3 Hours Ago Has been a member for 9-10 years. Has a total post count of 2,121. Received thanks 233 times, giving thanks to others 5 times.
    M6start and M6end macros control everything IIRC.

    You also need to select the correct option in the main setup screen. I seem to remember top left corner, and gives the option to ignore, or pause on M6. I'd confirm that, however I've not got Mach3 installed on anything convenient just now.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  3. #3
    There are starting-point macros loaded with Mach3 so you should have them already - names as per m_c's post. You can then tweak these to suit your machine. There will be a set of machine-specific folders in c:/Mach3/macros, and I think that each folder gets pre-populated with the standard set of macros. I use a text editor as I'm not sure that you can really call the scripting language BASIC.

  4. #4
    Ok thanks for the replyís I think Iíve cracked it just need to tweak it a bit because when I put the next tool in it measures it but the z goes up too high

  5. #5
    Standard M6 macros don't do any tool height measurement. Can you say a bit more about what you are doing? Are you also doing tool height measurement with a touch probe during the tool change? Are you also using a motion controller?

  6. #6
    Yes tool measurement as well but havenít got that part done yet. It looked as if it was going to work but no luck so far

  7. #7
    No canít get the tool measurement part to work

  8. #8
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 3 Hours Ago Has been a member for 9-10 years. Has a total post count of 2,121. Received thanks 233 times, giving thanks to others 5 times.
    Have you searched over on the Mach forums for code?

    It's not something I've ever done in Mach 3, but standard macros only run at a 10Hz refresh rate, so if you're relying on the macro to start/stop motion depending on the touchplate/probe input, then it won't work. You have to use the specific probing commands, but I'm not sure how they work where macros are involved.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  9. #9
    Ger21's Avatar
    Lives in Detroit, United States. Last Activity: 21 Hours Ago Has been a member for 6-7 years. Has a total post count of 603. Received thanks 83 times, giving thanks to others 0 times. Referred 1 members to the community.
    It's not something I've ever done in Mach 3, but standard macros only run at a 10Hz refresh rate, so if you're relying on the macro to start/stop motion depending on the touchplate/probe input, then it won't work.
    That info is incorrect. Macros run plenty fast enough, and in fact are used by thousands of people to auto zero there tools. The macro just calls the G31 move, and then retrieves the locations and sets the zero position.
    Gerry
    ______________________________________________
    UCCNC 2017 Screenset

    Mach3 2010 Screenset

    JointCAM - CAM for Woodworking Joints

  10. #10
    Indeed, the g31 gcode command causes a probing operation (unless you are using a CSMIO controller which has its own version plus an odd gotcha). Cnczone has plenty of examples if you can wade through a lot of dross to find them. I wrote my own height probing macros based on what I found there; I would be happy to post them but I have modified them to work with a CSMIO so they are not useful for non-CSMIO machines as they stand. I have three in the set - simple tool-height set, set tool height and then touch off fixed plate, touch off fixed plate for second-tool operation. I also have a tweaked first-page of the standard screenset to assign these to buttons.

    Or you could contact Gerry/ger21 and buy his reasonably-priced and well-regarded 2010 screenset which has all these functions and more already built in. I wrote my own because I wanted an excuse to play with a bit of macro coding and screenset tweaking, not because they are any better.

Page 1 of 2 12 LastLast

Similar Threads

  1. WANTED: Coventry easy change tool holders
    By Benja in forum Items Wanted
    Replies: 0
    Last Post: 01-07-2017, 01:04 AM
  2. Ignoring tool change
    By dudz in forum Machine Discussion
    Replies: 6
    Last Post: 15-02-2014, 05:34 PM
  3. Mach3 Tool Change Position
    By Mad Professor in forum Artsoft Mach
    Replies: 7
    Last Post: 15-07-2013, 05:54 PM
  4. XYZ Centurian 450 VMC tools sticking during tool change (M06)
    By craftydonkey in forum Milling Machines, Builds & Conversions
    Replies: 0
    Last Post: 19-10-2011, 02:11 PM
  5. WANTED: Tool holders for T2 (I think) quick change toolpost
    By Jonathan in forum Items Wanted
    Replies: 22
    Last Post: 07-05-2011, 09:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •