pocketing program
- 858PSJ
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 6
24 Aug 2026 19:01 - 24 Aug 2026 19:24 #348970
by 858PSJ
Replied by 858PSJ on topic pocketing program
attached find a screen dump of /tmp/isotri.ngc . This file was generated by an execution of polygonpockete.ngc (zipped). My original goal was to make a log file which listed origin, endpoint, length and tilt of every line in my pocketed figure. This could be used to take advantage of highlighting in the MDI window on my version of linuxcnc. Length and tilt are stored as comments on lines in the log file where a g0 gcode command to the line's origin and a g1 gcode command to the line's endpoint executed in a MDI window highlights an individual line after the execution ofpolygonpockete.ngc and an erasure of the lines it already highlighted. To my surprise the MDI window ignored the length and tilt following the ; and the linuxcnc interpreter went right by the g0 gcode command and executed the list of lines like it was a gcode program, a program containing lots of nasty numbers instead of nasty trigonometry. You'll have to edit polygonpockete.ngc to put the log file where you want it, see (logopen, (log, and (logclose) The logfile does not contain any curved lines, nor does it contain the shortlines I put into polygonpockete.ngc to discourage the linuxcnc trajectoryplanner from rounding over the vertices.
Attachments:
Last edit: 24 Aug 2026 19:24 by 858PSJ. Reason: remove a duplicate .png file and correct some punctuation
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds