Linuxcnc stops working (testing While loop in While loop)

More
11 Apr 2019 23:32 #130699 by NullStudent
been playing around with circles and while loops, try to do a while loop in another while loop.
G20
G0 X1.000Y1.000
G1 Z-0.5000F5.00
#1 = 0.9975
#3 = 0.4375
o101 while [#1 GT 0.3125]
       G0 Z0.100
       #2 = 0.0000
       G0 X[#1]Y1.000
       G1 Z-0.0625F5.00
       o102 while[#2 GT -0.5]
               G2 X[#1]Y1.000 i[#3]j0 Z[#2]
               #2 = [#2 -0.0025]
       o102 endwhile
       #1 = [#1 -0.0025]
       #3 = [#3 +0.0025]
o101 endwhile
G0 Z0.100
G0 X0Y0
M30

Please Log in or Create an account to join the conversation.

More
12 Apr 2019 00:24 - 12 Apr 2019 00:30 #130701 by PCW
Yeah, ~55,000 ~1 inch circles at 5 IPM _will_ take a while...

( plus the backplot uses ~3 GB )
Last edit: 12 Apr 2019 00:30 by PCW.
The following user(s) said Thank You: NullStudent

Please Log in or Create an account to join the conversation.

More
17 Apr 2019 18:38 #131065 by NullStudent
Yup, I got worried and thought I broke it, had to increase the depth and width of the circles to lower the loops.

Please Log in or Create an account to join the conversation.

More
20 Apr 2019 22:33 #131334 by andypugh
You can turn off the axis backplot using "magic comments" to save waiting for very long files to render.

linuxcnc.org/docs/2.7/html/gui/axis.html#axis:preview-control

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum