Gcode macro help haas ngc control


Results 1 to 3 of 3

Thread: Gcode macro help haas ngc control

  1. #1
    Member hemmi71328's Avatar
    Join Date
    Dec 2022
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default 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.

    Similar Threads:


  2. #2
    eckitsch's Avatar
    Join Date
    Aug 2007
    Location
    Suhl
    Posts
    403
    Downloads
    0
    Uploads
    0

    Default Re: Gcode macro help haas ngc control

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

    or

    WHILE [...] DO1
    ...
    END1



  3. #3
    Member
    Join Date
    Feb 2006
    Location
    usa
    Posts
    49
    Downloads
    0
    Uploads
    0

    Default 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?



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Gcode macro help haas ngc control

Gcode macro help haas ngc control