- Posts: 8
- Thank you received: 0
Linuxcnc stops working (testing While loop in While loop)
- NullStudent
- Topic Author
- Offline
- New Member
-
Less
More
7 years 6 months ago #130699
by NullStudent
been playing around with circles and while loops, try to do a while loop in another while loop.
Code:
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 to join the conversation.
7 years 6 months ago #130701
by PCW
Replied by PCW on topic Linuxcnc stops working (testing While loop in While loop)
Yeah, ~55,000 ~1 inch circles at 5 IPM _will_ take a while...
( plus the backplot uses ~3 GB )
( plus the backplot uses ~3 GB )
Please Log in to join the conversation.
- NullStudent
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
7 years 6 months ago #131065
by NullStudent
Replied by NullStudent on topic Linuxcnc stops working (testing While loop in While loop)
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 to join the conversation.
7 years 6 months ago #131334
by andypugh
Replied by andypugh on topic Linuxcnc stops working (testing While loop in While loop)
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
linuxcnc.org/docs/2.7/html/gui/axis.html#axis:preview-control
Please Log in to join the conversation.
Time to create page: 0.614 seconds
