https://github.com/nkp2169/G71 A few words - how it all moves: the work is based on remap (so it's a bit easier to proceed if remap already configured in the system). Qсad is also desirable, for two reasons: it works under Linux (free) and is tested for "our" work)). setting: sudo apt-get install qcad the version does not matter, since we do not need any bells and whistles (and there are none in qcad))) ======================== Here you need to immediately note one feature: since qcad is sharpened strictly for the X, Y axes (and there is no way to turn it under the lathe), then (as you can see from the video) we draw a contour, as if placing the workpiece with its end up. For the drawing, we use segments and arcs (circles), fillets. got a .dxf file ============================== Next, open our .dxf file in ems, in which the filter is configured so that dxf opens the dxf2gcode program. In it we change the processing settings (of the main ones: removal depth in one pass, allowance for finishing processing) Of the imperfections: the outline that is displayed in the dxf2gcode preview window must be located "top-down", that is - as if in the course of finishing. The direction is indicated by arrows at the beginning and at the end of the path (blue and green). and so - some contours need to be "flipped" - select the contour with the mouse, RMB (right mouse button), item: "Switсh Direction" -------------------------------------------------- ----------------------------------- edits in ems config add: [FILTER] PROGRAM_EXTENSION = .dxf Script dxf = dxf2gcode / dxf2gcode_v01.py [RS274NGC] REMAP = G71.2 modalgroup = 1 argspec = PQDKifjslt py = g712 add a section to the .ini file [G71] BOUNCE_X = 0.5 BOUNCE_Z = 0.5 there will be internal settings (BOUNCE_n = 0.5 - the amount of the tool departure along the n axis) ------------------------------------------ remap must be "configured" ---------------------------------------------- put dxf2gcode_v01 and dxf2gcode folders in the config folder (in principle - no difference if you correct the paths) --------------------- the "main" code in remap.py if it exists and is actually used, then you need to supplement it with the code from "my" remap.py file, and if not used, then it can be replaced completely with "mine" ------------------ ngc folder with outlines examples (this is for checking the settings) all files from it should open correctly)) ----------------------------------- remap works without dxf2gcode, there is R_R.ngc in ngc folder it opens "directly" that is, if we write the G71 code with "pens" - everything should work ... here are the parameters of the code: PQDKifjslt PQDK - Required ifjslt - optional PQ - denote the number of the starting line of the code and the end (gcode of the machining contour) D - take off per pass K- finishing allowance are the optional parameters for finishing? t - tool number for finishing i - number of finishing passes (K / i) f - feed for finishing j - allows you to "repeat" only finishing passes s - reserve