585,992 active members*
5,178 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1

    Gcode macro help haas ngc control

    N10 G90 G17
    N15 G20
    N20 G53 G0 Z0.

    IF[[#3901 MOD 10] EQ 0] DO1
    G154 P99 G0 XO YO
    END1

    N330 M5
    N335 M9
    N340 G53 G0 Z0.
    N345 X0.
    N350 G53 G0 Y0.
    N355 M30


    can someone tell me why that macro just loops indefinetly
    its on a haas ngc control

    it never gets to the end of the program.
    and it seems to run the conditional no matter what the value of 3901 is.

  2. #2
    Join Date
    Aug 2007
    Posts
    413

    Re: Gcode macro help haas ngc control

    IF [...] THEN
    or
    IF [...] GOTO123
    ...
    N123

    or

    WHILE [...] DO1
    ...
    END1

  3. #3
    Join Date
    Feb 2006
    Posts
    49

    Re: Gcode macro help haas ngc control

    it might be that [#3901 mod 10] address #3901 is not overwrite able or that #3901 mod 10 will always be 0?

Similar Threads

  1. Converting from .ngc gcode to .bpp biesse
    By Bode96 in forum Biesse
    Replies: 0
    Last Post: 01-29-2023, 04:18 PM
  2. Haas Machine Serial Number Variable with NGC
    By hjwilson in forum Haas Mills
    Replies: 0
    Last Post: 10-07-2021, 12:40 PM
  3. HAAS VF2 NGC & HSM post files names.. max 6 numbers??
    By SoCalPlaneDoc in forum Autodesk Post Processors
    Replies: 2
    Last Post: 05-05-2018, 03:36 PM
  4. How to attach a macro or gcode to a new screen button ??
    By Beefy in forum UCCNC Control Software
    Replies: 1
    Last Post: 05-13-2016, 02:52 PM
  5. macro to gcode
    By foxvalley in forum G-Code Programing
    Replies: 1
    Last Post: 02-19-2011, 05:54 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
  •