Guide complet codes G/M et sous-routines fixes Fadal pour tourneurs CNC
Codes G, codes M, sous-routines fixes Fadal pour tourneurs CNC travaillant sur centres d'usinage verticaux Fadal.

Codes G
| Code G | Description |
|---|---|
| G0 | Déplacement rapide |
| G1 | Interpolation linéaire |
| G2 | Interpolation circulaire (horaire) |
| G3 | Interpolation circulaire (anti-horaire) |
| G4 | Temporisation P= Temps en millisecondes Aussi : Vérification position non modale |
| G5 | Déplacement rapide non modal |
| G8 | Accélération (Pas de rampes d'avance) |
| G9 | Décélération (Rampes d'avance) Aussi : Vérification en position |
| G10 | Saisie programmable de données L02= Bride X, Y, Z, A, B, P= 0, 1-48 L10= Longueur, P= 1-99, R0= Montant L12= Diamètre, P= 1-99, R0= Montant L13= Lecture bride, P= 1-24, R0= Z, R1= X, R2= Y L14= Lecture longueur, P= 1-99, R0= Montant L15= Lecture diamètre, P= 1-99, R0= Montant L100 à L109= Valeurs R, P= Montant |
| G15 | Interpolation circulaire YZ avec axe A |
| G17 | Sélection plan XY Aussi : Enveloppement came axe Y Q= Rapport axe A / [5p (diam came en pouces)] Q= Rapport axe A / [(5/25.4p (diam came en mm)] P0= Axe A, P1= Axe B |
| G17.1 | Permutation mots A/B ON |
| G17.2 | Permutation mots A/B OFF |
| G18 | Plan ZX |
| G19 | Plan YZ |
| G20 | Vérification paramètre pouces |
| G21 | Vérification paramètre métrique |
| G28 | Retour au zéro |
| G28.1 | Retour depuis jog away |
| G29 | Retour depuis zéro |
| G31 | Fonction touche palpeur |
| G31.1 | Fonction non-touche palpeur |
| G40 | Annulation compensation rayon outil |
| G41 | Compensation rayon outil gauche (escalade) |
| G42 | Compensation rayon outil droite (conventionnel) |
| G43 | Compensation longueur outil positive |
| G44 | Compensation longueur outil négative |
| G45 | Compensation longueur outil expansion simple |
| G46 | Compensation longueur outil réduction simple |
| G47 | Compensation longueur outil expansion double |
| G48 | Compensation longueur outil réduction double |
| G49 | Annulation compensation longueur outil |
| G50 | Annulation contrôle pente rampe |
| G50.1 | Annulation image miroir |
| G51 | Contrôle pente rampe R0= Valeur vitesse rampe 0,5 – 2. R0+= Axe Z, R0-= Axes XY |
| G51.1 | Image miroir |
| G51.2 | Compensation charge outil Définir vitesse avance avant ligne G51.2 R1= Charge broche cible R2= % min réduction avance R3= % max augmentation avance R4= Temps à avance min pour initier maintien glissement |
| G51.3 | Mise à l'échelle axes R1= Programme (Les trois axes) R2= X R3= Y R4= Z |
| G52 | Décalage système de coordonnées |
| G53 | Utiliser système coordonnées machine |
| G54-59 | Brides 1-6 G66 Appel sous-routine modal G67 Annulation sous-routine modale G68 Rotation (R0= Angle, XY= Centre rotation) G69 Annulation rotation G70 Vérification paramètre pouces G71 Vérification paramètre métrique |
| G73 | Perçage par pics Q= Taille pic P= Distance avance avant pic suivant (optionnel) I= Pic initial J= Valeur réduction pics suivants K= Taille pic minimum |
| G74 | Taraudage main gauche Format 1 Q= Pas filet (1/pas), F= TR/MIN Format 2 S= TR/MIN, F= Avance (Pas * TR/MIN) |
| G74.1 | Taraudage rigide main gauche Format 1 Q= Pas filet (1/pas), F= TR/MIN Format 2 S= TR/MIN, F= Avance (Pas * TR/MIN) |
| G74.2 | Préparation pour G74.1 |
| G75 | Cycle tête de taraudage Format 1 Q= Pas filet (1/pas), F= TR/MIN Format 2 S= TR/MIN, F= Avance (Pas * TR/MIN) |
| G76 | Alesage fin Q= Décalage Y+ ou I= Montant & direction décalage X J= Montant & direction décalage Y |
| G80 | Annulation cycle fixe |
| G81 | Perçage, perçage de repérage |
| G82 | Perçage centrage, alésage P= Temps temporisation en millisecondes 180,000/TR/MIN= Temps temporisation pour 3 tours |
| G83 | Cycle trou profond Q= Taille pic P= Distance avance avant pic suivant (optionnel) I= Pic initial J= Valeur réduction pics suivants K= Taille pic minimum |
| G84 | Taraudage main droite Format 1 Q= Pas filet (1/pas), F= TR/MIN Format 2 S= TR/MIN, F= Avance (Pas * TR/MIN) |
| G84.1 | Taraudage rigide main droite Format 1 Q= Pas filet (1/pas), F= TR/MIN Format 2 S= TR/MIN, F= Avance (Pas * TR/MIN) |
| G84.2 | Préparation pour G84.1 |
| G85 | Alésage entrée / sortie |
| G86 | Alésage entrée / broche arrêt / sortie rapide |
| G87 | Alésage entrée / sortie |
| G88 | Alésage entrée / temporisation / sortie, P= Millisecondes |
| G89 | Alésage entrée / temporisation / sortie, P= Millisecondes |
| G90 | Positionnement absolu |
| G91 | Positionnement incrémental |
| G91.1 | Exécution haute vitesse (-2 Système uniquement) |
| G91.2 | Annulation exécution haute vitesse Aussi : Compression binaire / Point fin analyseur |
| G91.3 | Compression binaire / Point départ analyseur |
| G92 | Préréglage absolu |
| G93 | Spécification avance 1/T (Temps inverse) |
| G94 | Spécification avance DPM, IPM |
| G98 | Retour plan initial |
| G99 | Retour plan dégagement R0 |
Codes M
| Code M | Description |
|---|---|
| M0 | Arrêt programme |
| M1 | Arrêt optionnel |
| M2 | Fin de programme |
| M3 | Broche ON horaire |
| M3.1 | Sous-broche ON ignorer aimant CW |
| M3.2 | Acquittement aimant broche |
| M4 | Broche ON anti-horaire |
| M4.1 | Sous-broche ON ignorer aimant CCW |
| M4.2 | Acquittement aimant broche |
| M5 | Broche OFF |
| M6 | Changement outil |
| M7.1 | Lubrifiant servo ON |
| M8 | Lubrifiant ON |
| M8.1 | Lubrifiant servo ON |
| M9 | Lubrifiant OFF |
| M10 | Annulation alternance |
| M11 | Alternance axe X |
| M12 | Alternance axe Y |
| M13 | Alternance axe Z |
| M14 | Alternance axe B |
| M15 | Alternance axe A |
| M16 | Alternance axe C |
| M17 | Fin sous-routine |
| M18 | Cycle indexeur Cushman |
| M19 | Arrêt broche / Orientation |
| M20 | Cycle indexeur usage général Aussi : Fermeture portes automatiques Aussi : Basculement ON/OFF Hydrosweep |
| M30 | Fin de toutes sous-routines Aussi : Fin programme (Format 2) |
| M31 | Échange palettes |
| M32 | Stockage/Chargement palette A |
| M32.1 | Chargement et vérification palette A |
| M33 | Stockage/Chargement palette B |
| M33.1 | Chargement et vérification palette B |
| M41 | Gamme basse TR/MIN |
| M42 | Gamme haute TR/MIN |
| M45 | Exécution cycle fixe |
| M46 | Approche positive ON |
| M47 | Annulation approche positive |
| M48 | Potentiomètre avance et TR/MIN actif |
| M48.1 | Potentiomètre lubrifiant servo actif |
| M48.2 | Potentiomètre double rotatif actif palette A |
| M48.3 | Potentiomètre double rotatif actif palette B |
| M49 | Potentiomètre avance et TR/MIN inactif |
| M49.1 | Potentiomètre lubrifiant servo inactif |
| M49.2 | Potentiomètre double rotatif inactif palette A |
| M49.3 | Potentiomètre double rotatif inactif palette B |
| M60-69 | Dispositifs utilisateur M60 Frein axe A ON M65 Sonde TS-20 active M61 Frein axe A OFF M66 Sonde MP-12 active M62 Frein axe B ON M67 Sonde laser active M63 Frein axe B OFF M68 Moteur Delta M64 Sonde MP active M69 Moteur Wye |
| M80 | Ouverture portes automatiques |
| M81 | Fermeture portes automatiques |
| M90 | Gain par défaut (depuis commande SV) |
| M90.1 | Gain avance avancé ON P=Gain (50-250) |
| M91 | Gain normal |
| M92 | Gain intermédiaire |
| M94 | Avance avant P= Tolérance angle Q= Longueur ligne (Mouvements inférieurs non vérifiés) Exemple: M94 P91 Q.002 |
| M94.1 | Avance avant par modification vitesse avance Définir vitesse avance avant ligne M94.1 P= Angle Q= % changement chaque modification R0+= Modification avance min R1+= Longueur ignorer M94.1 R2+= Modifier avance tous les cet angle, depuis P Exemple: M94.1 P170 Q10. R0+50. R1+1. R2+15. |
| M94.2 | Avance avant avancée ON, P= Rampe, Q= Fenêtre détail |
| M95 | Annulation avance avant |
| M95.1 | Annulation modification avance avant |
| M95.2 | Annulation avance avant avancée |
| M96 | CRC roulage |
| M97 | CRC intersectionnel |
| M98 | Exécution sous-programme P= N° programme L= N° répétitions |
| M99 | Fin sous-programme Aussi : Saut ligne, P= N° ligne, Exemple: M99 P# |
Sous-routines fixes
| Sous-routines | Description/Paramètres |
|---|---|
| L9101 | Fonctions palpeur R1+1-10, Voir manuel utilisateur pour détails |
| L9201 | Gravure: R1+0= Police standard R1+1= Police pochoir R1+2= Standard sérialisé R1+3= Pochoir sérialisé R2+= Hauteur lettres R3+= Angle mot R4+= Incrément sérialisation R0= Plan dégagement Z= Profondeur finale F= Vitesse avance |
| L93NN | Cercle de trous R0= 1 (distance X incrémentale et direction 1ère position vers centre) R1= J (distance Y incrémentale et direction 1ère position vers centre) R2= Pas angulaire entre trous (+ angles CCW, – angles CW) NN= Nombre trous |
| L94NN | Cycle alésage fraisage CCW: R0+= Avance, R1+= Diamètre trou, NN= Répétitions |
| L95NN | Cycle alésage fraisage CW: R0+= Avance, R1+= Diamètre trou, NN= Répétitions |
| L9601 | Poche rectangulaire CCW: R0+= Avance, R1+= Rayon coin outil, R2+= X, R3+= Y |
| L9701 | Poche rectangulaire CW: R0+= Avance, R1+= Rayon coin outil, R2+= X, R3+= Y |
| L9801 | Poche circulaire CCW: R0+= Avance, R1+= Rayon coin outil, R2+= Diamètre trou |
| L9901 | Poche circulaire CW: R0+= Avance, R1+= Rayon coin outil, R2+= Diamètre trou |
Résumé mots NC
| Mot NC | Définition |
|---|---|
| A | Commande mouvement angulaire axe A (ou lubrifiant servo optionnel) |
| B | Commande mouvement angulaire axe B |
| C | Commande mouvement angulaire axe C |
| D | Compensation diamètre outil |
| E | Compensation bride |
| F | Vitesse avance, ou vitesse broche pour taraudage |
| G | Fonction préparatoire |
| H | Compensation longueur outil ou Longueur et diamètre compensation Format 1 |
| I | Distance axe X centre arc ou Taille pic initial perçage (G73 G83) ou Décalage axe X cycle alésage (G76) |
| J | Distance axe Y centre arc ou Valeur réduction pic initial (G73, G83) ou Décalage axe Y cycle alésage (G76) |
| K | Distance axe Z centre arc ou Taille pic minimum perçage (G73, G83) |
| L | Définition ou appel sous-routine ou Fonction répétition sous-programme (M98) ou Saisie programmable données (G10) ou Fonction répétition ligne ou Répétitions cycle fixe |
| M | Code fonction machine |
| N | Numéro séquence programme |
| O | Numéro identification programme |
| P | Temps temporisation millisecondes (G04) ou Facteur pourcentage rétraction taraudage ou N° bride et compensation outil (G10) ou N° sous-programme (M98) ou Valeur R0-R9 (G10) ou Saut séquence/ligne (M99) ou Distance avance avant pic (G73 G83) ou P1 avec G17 Q pour utiliser axe B pendant mapping ou Tolérance angulaire avance avant |
| Q | Taille pic cycles perçage (G73, G83) ou Pas filet cycles taraudage (G74, G75, G84) ou Diamètre pour substitution auto diamètre outil (H99) ou Facteur échelle programmation came plate sur table rotative ou Tolérance longueur ignorer avance avant |
| R | Paramètre entrée sous-routine R0 à R9 R0 Plan cycle fixe ou Désignation rayon (interpolation circulaire, G2 & G3) ou Valeur compensation outil (G10) Variables paramétriques R0, R1 – R9 |
| S | Vitesse broche (TR/MIN) |
| S.1 | Régler gamme courroie basse |
| S.2 | Régler gamme courroie haute |
| T | Sélecteur numéro outil pour tourelle |
| V | Variables macros (V1-V100) |
| X | Commande mouvement axe X |
| Y | Commande mouvement axe Y |
| Z | Commande mouvement axe Z |
Résumé caractères
| Caractère | Définition |
|---|---|
| 0-9 | Chiffres numériques |
| A-Z | Caractères alphabétiques |
| % | Début ou fin programme, retour début |
| + | Plus, positif |
| – | Moins, négatif |
| ( | Début commentaire (programme NC standard), ou Début texte gravure (Sous-routine fixe L9201), ou Opérateur mathématique (Programmation macro) |
| . | Point décimal |
| , | Virgule |
| EOB | Touche ENTRÉE, retour chariot / saut ligne (ASCII 13,10) |
| * | Début commentaire |
| / | Saut bloc optionnel |
| : | Numéro identification programme (Format 2) |
| # | Identification ligne macro |
commande numérique par ordinateur
- Outils CNC équilibrés : Moins de vibrations pour fraisage grande vitesse, grande avance
- Maîtriser le Mode Essai (Dry Run) CNC : Précision & Efficacité Accrues
- Override Vitesse et Avance CNC : Guide Complet
- Maîtriser les M-Codes CNC : Introduction Complète
- G-code G95 : Maîtriser l'avance par tour pour usinage CNC
- Guide complet des M-Codes Haas Fraiseuse : Fonctions, réglages & usage
- Guide Complet des M-Codes Mach3 pour Usinage CNC
- Maîtrise des codes M : Quiz programmation CNC
- Maîtrisez les codes G : Quiz programmation CNC