- while/endwhile constructs do longer work
-
Member
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?
Similar Threads:
-
-
Member
-
Member
Re: while/endwhile constructs do longer work
Send me this g-code and I'll check what is wrong.
-
Member
-
Member
Re: while/endwhile constructs do longer work
I can confirm this is a bug.
-
Member
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.
-
Member
Re: while/endwhile constructs do longer work
-
Member
Re: while/endwhile constructs do longer work
Thanks! I'll contact support now.
-
Member
Re: while/endwhile constructs do longer work
Is there any fix for this bug?
-
Member
-
Member
Re: while/endwhile constructs do longer work
Hello,
yesterday I was playing with nested while and it seems that only one cycle of the outside loop is executed.
I've also tried to use a simple counter in the outside loop instead of the derided behaviour to exlude any programming error
%
G21G54G90G17
#1=12 (diameter)
#2=30 (x side)
#3=22 (y side)
#4=0.4 (stepover)
#5=0 (z)
#9=300 (vertical feedrate)
#<_DEPTH>=-10
#<_ZSTEP>=-1
#<_HFEED>=2000
#<_STEPOV>=[#1*#4]
#<_RADIUS>=[#<_STEPOV>/2]
#<_ENDY>=[#3+#1]
(start outside)
#10=[0 - #1*2]
#11=[0 - #1*[1-#4]]
G0 X#10 Y#11
G0Z0.1
#10=[#2+#1]
#<_CURRZ>=#<_ZSTEP>
(cycle Z)
#100=0
(O100 WHILE [#<_CURRZ> GT #<_DEPTH>])
O100 WHILE [#100 LT 10]
(G1 Z#<_CURRZ> F#9)
G1 Z#100 F#9
(cycle XY)
O110 WHILE [#11 LT #<_ENDY>]
G1 X#10 F#<_HFEED>
#11=[#11+#<_STEPOV>]
G3 Y#11 R#<_RADIUS>
G1 X[0-#1]
#11=[#11+#<_STEPOV>]
G2 Y#11 R#<_RADIUS>
O110 ENDWHILE
#<_CURRZ>=[#<_CURRZ> + #<_ZSTEP>]
#100=[#100+1]
O100 ENDWHILE
G0Z10
G28
%
P.S. I have version 2.10.1807.2601 like the user at the beginning of the thread
-
Member
Re: while/endwhile constructs do longer work
CNC USB software is obsolete for 10 years and not supported any more.
You should update to latest TNG software.
-
Member
Re: while/endwhile constructs do longer work
Problem is: I have a MK2/4 board. I suppose it is not supported by TNG. Am I wrong?
Unluckly, I bought the MK2/4 board many years ago but I have completed my cnc project only this year!
- while/endwhile constructs do longer work
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
-
Forum Rules