#+title: Algorithm for refining the trajectory of the cutting tool of a CNC machine with compensation motions #+subtitle: G-Code postprocessor #+keywords: CNC MACHINE, LASER MACHINING, CONTROL PROGRAM, G-CODE, MOTION TRAJECTORY, MOTION PLANNING, CRITICAL POINTS, COMPENSATION MOTIONS, TRAJECTORY SMOOTHNESS, FEED RATE, ACCELERATION, JERK. #+date: 2026H1 #+options: toc:nil num:nil * Abstract :PROPERTIES: :CUSTOM_ID: abstract :END: Keywords: {{{keyword(KEYWORDS)}}} This work addresses motion planning for CNC machines that process contours described by G-code control programs. The problem considered is the traversal of kinematically unfavorable path sections, where acceleration, deceleration, and sharp direction changes prevent the machine from maintaining the commanded feed rate on the working contour. The problem is important for laser cutting and engraving because speed variations change local energy input and may degrade edge or marking quality. To address it, a post-processing method is proposed: critical points are detected in the original G-code, and compensation motions are added outside the working contour with the tool turned off. A software prototype was developed, refined G-code was generated, and a decrease of jerk and velocity error was demonstrated on the working contour while preserving the original geometry of the working sections. The method can be used in control-program postprocessors, CAM systems, and trajectory preparation tools for laser and other CNC machines. * Documentation :PROPERTIES: :CUSTOM_ID: documentation :END: The exported thesis can be found at [[https://git.michalec.dev/files/uni/term-08/thesis/thesis.pdf][this link]] and the presentation at [[https://git.michalec.dev/files/uni/term-08/thesis/presentation.pdf][this link]]. * Unlicense :PROPERTIES: :CUSTOM_ID: unlicense :END: #+include: UNLICENSE verse