587,366 active members*
3,787 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2023
    Posts
    0

    Warning: LoopLimitCount=

    Hi

    I'm using modbus to control my Huanyang VFD and I use the scripts for M3, M4 and M5 from your blog. The problem is that when I load a .nc file i get the message 'Warning: LoopLimitCount=2' and the toolpath is not displayed. The .nc program runs as normal.
    If I remove the script for M3 it works as normal, no warning message and the toolpath is displayed.

  2. #2
    Join Date
    Mar 2017
    Posts
    1329

    Re: Warning: LoopLimitCount=

    When g-code is loaded for display it goes into endless loop. You should modify your scripts to prevent this.
    Use ACTIVE[] function
    https://cnc.zone/gcode/functions/func-active
    to detect if g-code is actively controlling machine.
    For example default M3 script uses this code:
    Code:
    o<chk> if[LNOT[ACTIVE[]]]
      M99
    o<chk> endif
    to exit script af g-code is running for display only.

  3. #3
    Join Date
    Jun 2017
    Posts
    15
    Quote Originally Posted by PlanetCNC View Post
    When g-code is loaded for display it goes into endless loop. You should modify your scripts to prevent this.
    Use ACTIVE[] function
    https://cnc.zone/gcode/functions/func-active
    to detect if g-code is actively controlling machine.
    For example default M3 script uses this code:
    Code:
    o<chk> if[LNOT[ACTIVE[]]]
    
      M99
    o<chk> endif
    to exit script af g-code is running for display only.
    Where should this code be inserted into the script? I have the same issues with the MODBUS. Get the loopcount warning/error and can no longer see the image of what I’m cutting on the screen. Or has the MODBUS script been updated with this?

Similar Threads

  1. DROPBOX warning
    By dannirr in forum Tormach PathPilot™
    Replies: 5
    Last Post: 12-28-2017, 12:20 AM
  2. WARNING
    By kevbud in forum Australia, New Zealand Club House
    Replies: 3
    Last Post: 08-20-2013, 04:41 AM
  3. MC x3 Warning
    By jimmiethekid in forum Mastercam
    Replies: 2
    Last Post: 05-13-2010, 05:03 AM
  4. ShopCam Warning !!
    By routerman in forum Shopsabre
    Replies: 11
    Last Post: 11-26-2009, 12:11 AM
  5. Warning!
    By andy.f in forum MetalWork Discussion
    Replies: 2
    Last Post: 01-25-2008, 04:38 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
  •