547,444 active members*
1,572 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > while/endwhile constructs do longer work
Results 1 to 8 of 8
  1. #1

    Join Date
    Aug 2021
    Posts
    4

    while/endwhile constructs do longer work

    I have over 100 hand coded gcode files that ran perfectly on a Mk1 controller with 2.10.1412.1501 on WindowsNT. I recently updated to 2.10.1807.2601. After the update all my existing files that had while/endwhile constructs stopped execution (actual and simulated) after the first encountered endwhile statement. All existing files that did not have while/endwhile constructs continued to run perfectly after the update.

    Any suggestions?
    Is a download of 2.10.1412.1501 available to revert my update?

  2. #2
    Member
    Join Date
    Jun 2015
    Posts
    3389

    Re: while/endwhile constructs do longer work

    hy what about replacing all your loops with linear code ? maybe i can help you

  3. #3
    Moderator
    Join Date
    Mar 2017
    Posts
    869

    Re: while/endwhile constructs do longer work

    Send me this g-code and I'll check what is wrong.

  4. #4

    Join Date
    Aug 2021
    Posts
    4

    Re: while/endwhile constructs do longer work

    Here's an example of the g-code. Before the software update to 2.10.1807.2601 this gcode drew two concentric five point stars (it's a test pattern). After the update it only draws the smaller star and stops execution after line 30. I've attached a screen shot. It shows only the single star.

    Thanks. Your help is greatly appreciated!

    %
    (Star test pattern - little first)
    (For 450nm laser)
    (Laser uses output 1)
    (Use M3 to turn laser on)
    (Use M5 to turn laser off)

    (X, Y = 0 is the center of the star)
    (Z = 0 is laser focal point)

    G17 G21 G40 G80 G90
    G92.1

    F[1000]

    #1 = [15] (little R)
    #2 = [#1 * [1.5 - [sqrt[5] / 2]]]
    #3 = [0] (rotation angle)

    G0 x[0] y[#1] (starting point)

    M7 (turn mist/air on)
    M3 (turn laser on)

    o100 while [#3 LE 288]
    G1 x[#2 * sin[36 + #3]] y[#2 * cos[36 + #3]]
    G1 x[#1 * sin[72 + #3]] y[#1 * cos[72 + #3]]
    #3 = [#3 + 72]
    o100 endwhile

    M5 (turn laser off)

    #1 = [25] (big R)
    #2 = [#1 * [1.5 - [sqrt[5] / 2]]]
    #3 = [0] (rotation angle)

    G0 x[0] y[#1]

    M3 (turn laser on)

    o200 while [#3 LE 288]
    G1 x[#2 * sin[36 + #3]] y[#2 * cos[36 + #3]]
    G1 x[#1 * sin[72 + #3]] y[#1 * cos[72 + #3]]
    #3 = [#3 + 72]
    o200 endwhile

    M5 (turn laser off)
    M9 (turn mist/air off)

    M2
    %

  5. #5
    Moderator
    Join Date
    Mar 2017
    Posts
    869

    Re: while/endwhile constructs do longer work

    I can confirm this is a bug.

  6. #6

    Join Date
    Aug 2021
    Posts
    4

    Re: while/endwhile constructs do longer work

    Thanks. Do you know where I can find a download of 2.10.1412.1501? That was the version I was using before the update that worked.

    I checked the planet-cnc.com web site but there didn't appear to be any place to download older versions.

  7. #7
    Moderator
    Join Date
    Mar 2017
    Posts
    869

    Re: while/endwhile constructs do longer work

    Contact our support

  8. #8

    Join Date
    Aug 2021
    Posts
    4

    Re: while/endwhile constructs do longer work

    Thanks! I'll contact support now.

Similar Threads

  1. Z levels no longer work after update
    By justCNCit in forum MadCAM
    Replies: 2
    Last Post: 07-31-2017, 04:34 AM
  2. CNC Router Work Station
    By StgIIIWi in forum Newly Posted Classifieds Listings
    Replies: 0
    Last Post: 06-09-2015, 07:06 PM
  3. O codes and WHILE/ENDWHILE loops
    By greybeard in forum G-Code Programing
    Replies: 1
    Last Post: 04-05-2010, 09:53 AM
  4. WHILE, ENDWHILE, Case, switch
    By haecker1 in forum SIEMENS > Sinumerik 802D/840D/810D/828D
    Replies: 2
    Last Post: 08-30-2008, 08:35 AM
  5. No longer Looking for work around Arlington, TX
    By Rick57 in forum Employment Opportunity
    Replies: 0
    Last Post: 04-22-2006, 04:23 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
  •