Anyone interested in Lotta/CNC 101 in English

##Annotated G Code Turner’s Cube for Lotta 101-en course session 4:

The program uses the 3rd work coordinate set to define the position of the workpiece (G56).
The G56 origin is placed in the middle of the top face of the cube. The cube is positioned in the vise using parallel bars as positioning aids.

This is the same code as above but with annotations to explain what everything does:
O1000 (ohjelman numero [oltava 4 numeroa, ei saa törmätä muistissa oleviin])
(program number [must be 4 digits, must not collide with existing in memory])
(AJETAAN 3 SAMANKESKEISTA YMPYRATASKUA KUUTION SIVUN KESKELLE)
(TASKUJEN HALKAISIJAT 44MM, 40MM, 36MM ja SYVYYDET 4,8,12MM)
(Mill 3 CONCENTRIC POCKETS IN THE CENTER OF A CUBE FACE)
(POCKET DIAMETERS 44MM, 40MM, 36MM AND DEPTHS 4,8,12MM)
(ohjelman alkutoimet)
(program start actions)
G80 G40 G17 G21 G90 (alustus-“boilerplate”. Tähän koodit joilla varmistetaan alkutila halutuksi)
(initial boilerplate. Include codes to set the machine to a known state)
(G80 - peruuta kaikki työkierrot)
( - cancel all canned cycles)
(G40 - peruuta työkalun halkaisijakompensointi)
( - cancel tool diameter compensation)
(G17 - ympyränkaaret interpoloidaan X/Y -tasossa)
( - circular interpolations in X/Y plane)
(G21 - mittayksiköt ovat millejä)
( - units in millimeters)
(G90 - koordinaatit absoluutisina origosta)
( - coordinates are absolute values from current origin)
G56 (G56 - valitaan 3. työkoordinatisto aktiiviseksi)
( - make 3rd Work Coordinate set active)
G28 G91 Z0. (G28 - palautetaan akseli kotiasemaan)
( - return one or more axes to home position)
(G91 - koordinaatit suhteellisina edellisestä sijainnista)
( - coordinates to relative from last position)
(Z0. - liike Z-asemaan 0.0 (ei liiku koska suhteellinen))
( - move to position Z0.0 (no motion since relative))
G90 (G90 - palautetaan koordinaatit absoluuttisiksi)
( - return coordinates to absolute)
T04 M06 (T04 - valitse seuraavaksi työkaluksi nro 04)
( - select next tool to be #4)
(M06 - suorita työkalun vaihto)
( - execute tool change)
(lähestytään työkappaletta)
(approach the workpiece)
G00 X0. Y0. (G00 - pikaliike)
( - rapid traverse)
(X0. Y0. - pikaliikkeen koordinaatit (Z ei muutu koska ei mainittu))
( - traverse coordinates (Z stays unchanged because not mentioned))
S4000 M03 (S - karan pyörimisnopeus 4000 - kierrosluku rpm)
( - spindle speed 4000 rpm)
(M03 - kara pyörimään myötäpäivään)
( - start spindle clockwise)
M08 (M08 - leikkuunestepumppu päälle [panelista valittava “COOLANT AUTO”])
( - start coolatn pump [also select COOLANT AUTO" from the panel])
G43 Z100. H04 (G43 - työkalun pituuskompensointi summaten)
( - tool length compensation in positive direction)
(Z100. - siirry koordinaattiin Z100.0 [huomaa aikaisempi G00 on voimassa])
( move to coordinate Z100.0 [note earlier G00 is in effect])
(H04 - pituuskompensaation lukuarvo taulukon positiosta 4 [sama kuin työkalun makasiinipositio])
( - index 4 of tool compensation in the table [same as the tool magazine position])
G01 Z15. F350 (G01 - koordinoitu syöttöliike työstönopeudella)
( - coordinated motion at feed speed)
(Z15. - syöttö asemaan Z15.0 )
( - to position Z15.0)
(F350 - syöttöliikkeen nopeus 350 mm/min)
( - feed speed 350 mm/min)
Z5. (Z5. - syöttö asemaan Z5.0 [modaalinen G01 edelleen voimassa])
( - feed to position Z5.0mm [modal G01 still in effect])
Z0. (Z0. - syötö asemaan Z0.0)
( - feed to Z0.0)
(siirrytään ensimmäiseen työstöasemaan)
(move to first milling position)
G01 X18. (G01 - syöttöliike asemaan X18.0)
( -feed to position X18.0)
(leikataan ensimmäinen tasku)
(mill the first pocket)
G03 I-18. Z-4. (G03 - ympyräinterpolaatio vastapäivään valitussa interpolaatiotasossa [G17 voimassa = X/Y])
( - circular interpolation CCW in selected plane [G17 in effect = X/Y plane])
(I-18. - ympyrän keskipisteen suhteellinen X-koorinaatti suunnassa -18.0mm)
( - relative X coordinate to circle center at -18.0mm)
(Z-4. - samanaikainen syöttö pystysuunnassa tasoon -4mm)
( - while simultaneously descending to Z-4.0mm)
G03 I-18. (edellinen ympyrä uudelleen (nyt kokonaan tasossa -4mm jolloin pohja oikenee suoraksi))
( - repeat the above circle to cut the bottom even at -4mm level)
G01 X10. (syöttöliike asemaan X10.0mm jolloin terä on tullut halkaisijansa verran kohti taskun keskustaa)
( - feed to X10.0mm so that the mill comes one diameter closer to pocket center)
G03 I-10. (ajetaan ympyrä taskun keskustan ympäri säteellä 10mm tasossa Z-4.0mm)
( - mill a circular pocket at 10mm radius on level -4.0mm)
G01 X2. (syöttöliike asemaan X2.0mm)
( - feed to X2.0mm)
G03 I-2. (ympyrä taskun keskustan ympäri säteellä 2mm jolloin keskusta puhdistuu kokonaan)
( - mill a circle at radius 2mm thus clearing the pocket centre)
(leikataan toinen tasku)
(mill the second pocket)
G01 X14. (syöttöliike asemaan X14.0mm)
(feed to X14.0mm)
G03 I-14. Z-8. (ympyrä taskun keskustan ympäri samalla laskeutuen tasoon -8.0mm)
(circle around center while descending to level -8.0mm)
G03 I-14. (toinen ympyrä tasossa -8.0mm jolloin pohja tasaantuu)
(run once more at -8.0mm to even out the bottom)
G01 X6. (syöttöliike terän halkaisijan verran kohti taskun keskustaa asemaan X6.0mm)
(feed on tool diameter closer to center to X6.0mm)
G03 I-6. (ympyrä taskun keskustan ympäri)
(a circle around center)
G01 X0. (syöttöliike taskun keskelle jolloin keskelle jäänyt tappi poistuu)
(feed to circle center point which removes the plug remaining at the center)
(leikataan kolmas tasku)
(cut the 3rd pocket)
G01 X10. (syöttöliike asemaan X10.0mm)
(feed to position X10.0mm)
G03 I-10. Z-12. (ympyrä taskun keskipisteen ympäri samalla laskeutuen asemaan Z-12.0mm)
(feed a circle around center while descending to level Z-12.0mm)
G03 I-10. (toinen kierros jolloin pohja tasaantuu)
(a second round to even out the bottom)
G01 X3. (syöttöliike asemaan X3.0mm)
(feed to X3.0mm)
G03 I-3. (ympyrä taskun keskipisteen ympäri)
(circle around center)
(ohjelman lopetustoimet)
(program end maneuvers)
G28 G91 Z0. (karan ajo kotiasemaan kuten ohjelman alussa)
(run the spindle home as in the beginning)
G90 (absoluuttikoordinaattien palautus)
(back to absolute coordinates)
M09 (leikkuunestepumppu pois päältä)
(turn coolant pump off)
M05 (kara seis)
(stop spindle)
M30 (ohjelman lopetus ja paluu alkuun)
(terminate program and rewind (cursor) to beginning)