In sample I showed you G112 (g12.1) starts polar mode and G113 (G13.1) cancels it, There are two key functions of polar mode and polar mode only works in G17 plane..
1) It converts all Y axis Cartesian moves in G17 plane into movement of C axis in degrees, for every X axis coordinate there is corresponding translation of Y coordinate in form of angle position.
2) Any time tool is about to cross center line of spindle, C axis is rotated instead so that tool always works on positive side of X axis.
"I" and "K" variables are used in arcs as far more accurate then "R" variable, you can set your post to use either one, in many cases you can switch that in user variable window before posting file.
M codes shown in my sample are adequate for machine I run, yours will very depending on machine tool brand and control type.
Basically, orient your tool as shown in my sample and program tool path, if your post processor is set correctly for machine you have, code should be valid to run.
If you want tool to start at certain point on milled feature, set your X axis in setup to point to that feature or actual location by using model edge or sketch to set X axis orientation.
When you post process the file, that point becomes C0 and initial C axis orientation only deviates from it to execute any lead in arc move and cutter compensation.
Confused yet?,........ practice makes perfect and there are books that teach all that, one likely came with your machine and I can't learn things for you and then tell you what to do, it's not core purpose of this forum, but I don't mind sharing what I offered so far.