586,693 active members*
2,883 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2017
    Posts
    2

    Macro progam to prevent machine crashes

    I run and teach on a number of different Haas machines. Most frequently we run the students on Mini-mills for a variety of introductory classes. Naturally, a long term issue I have is damage to the vises that we use, both on the jaws as well as the body. I've recently gotten into macro-programming and am starting to write some of my own; I'm currently working on a WIPS probing macro that gathers a bunch of reference points on the vise being used. Next I intend on writing a second macro that takes the current machine position and verifies that the machine tools do not run through the vise based on the reference points gathered via my first macro.

    My question to you macro gurus is about the current machine coordinates. I've had a lot of trouble finding manuals that have a specific list of settings for Haas and/or fanuc, but I know that #5021-5023 are current machine coordinates for x,y and z. I want to know if there are specific settings for simulated coordinates or whether or not the machine coordinate settings actually change simulation as the simulation progresses.

    Any extra tips or advice for a beginner to macros is also appreciated!

  2. #2
    Join Date
    Jun 2015
    Posts
    119

    Re: Macro progam to prevent machine crashes

    There are no specific macros for simulated machine position. The macros do update as you run a simulation, so they are simulated (as your machine has not actually moved), and will re-update when you exit graphics.

    You can download the Haas manuals here: https://diy.haascnc.com/user-guide#gsc.tab=0 All of the macros are listed in the manual.
    ____________________________
    My blog: http://www.fletch1.com

  3. #3
    Join Date
    Feb 2006
    Posts
    1792

    Re: Macro progam to prevent machine crashes

    If you are serious about macro programming, you may like to read these books:
    https://www.amazon.com/Fanuc-Custom-...534SZCG1MEZD05
    https://www.amazon.com/Programming-u...oding=UTF8&me=

Similar Threads

  1. Prevent the Laser Cutting Machine Radiation-VICCAM
    By VICCAM-Laser in forum Questions or Problems
    Replies: 0
    Last Post: 08-15-2016, 03:10 AM
  2. MadCam 4-axis, Mach3 & machine crashes??
    By dwneumann in forum MadCAM
    Replies: 2
    Last Post: 12-27-2012, 09:39 PM
  3. Machine crashes in program run
    By cnctoolman in forum Laser Engraving / Cutting Machine General Topics
    Replies: 20
    Last Post: 04-19-2012, 07:46 AM
  4. Machine Crashes and Tool Explosions
    By AssassinXCV in forum DIY CNC Router Table Machines
    Replies: 6
    Last Post: 04-28-2011, 10:07 AM
  5. input progam into machine
    By bolton78 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 01-14-2010, 09:43 PM

Tags for this Thread

Posting Permissions

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