<p>I thought I am not bad at Google, but simply I am unable to find a G-code for doing circular motion for nozzle cleaning. It is possible to write a simple circular motion in G-code?</p>

[{'answer_id': 18434, 'author': 'R.. GitHub STOP HELPING ICE', 'author_id': 11157, 'author_profile': 'https://3dprinting.stackexchange.com/users/11157', 'pm_score': 2, 'selected': False, 'text': '<p>To draw a circle, you need to approximate the circle as a sufficient number of line segments. This requires computing or using a table of sine and cosine values for each angle step. Then you just emit a sequence of <code>G1</code> commands.</p>\n<p>Some printer firmware also supports arc drawing commands you could use instead in principle, but support is not widespread, and the quality of the results varies enough that I would not recommend trying to do it this way.</p>\n'}, {'answer_id': 18435, 'author': 'Davo', 'author_id': 4922, 'author_profile': 'https://3dprinting.stackexchange.com/users/4922', 'pm_score': 1, 'selected': False, 'text': '<p>While many 3D printers support using G2 and G3 for circles and arcs, most people are not used to them because the STL files consist entirely of flat triangles (straight lines).</p>\n<p>If you want a simple 2D circle, see the following for help:</p>\n<p><a href="https://marlinfw.org/docs/gcode/G002-G003.html" rel="nofollow noreferrer">https://marlinfw.org/docs/gcode/G002-G003.html</a></p>\n<p><a href="https://makezine.com/2016/10/24/get-to-know-your-cnc-how-to-read-g-code/" rel="nofollow noreferrer">https://makezine.com/2016/10/24/get-to-know-your-cnc-how-to-read-g-code/</a></p>\n<p><a href="https://reprap.org/wiki/G-code#G2_.26_G3:_Controlled_Arc_Move" rel="nofollow noreferrer">https://reprap.org/wiki/G-code#G2_.26_G3:_Controlled_Arc_Move</a></p>\n<p>Note: it can take a while to get used to the I and J parameters.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/18433', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/6364/']