start:cnc:gcode:reprap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
start:cnc:gcode:reprap [2024/10/14 16:07] – créée gerardadmin | start:cnc:gcode:reprap [2024/10/14 16:13] (Version actuelle) – gerardadmin | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
+ | [[https:// | ||
- | {{Languages|G-code}} | + | {{ : |
- | ---- | + | |
- | Cette page tente de décrire le '' | ||
- | Il ya plusieurs façons de préparer un Gcode pour une imprimante. La première consiste à utiliser un trancheur comme [[Slic3r]], [[Skeinforge]] ou [[Cura]]. Ces programmes prennent un modèle CAO et le découpent en couches. Les trancheurs sont la meilleure façon de passer d'un modèle 3D en fichier gcode imprimable, mais l' | ||
- | == Introduction == | ||
- | |||
- | Un morceau de fichier Gcode d'une imprimante 3D Reprap peut ressembler à ça: | ||
- | |||
- | N3 T0*57 | ||
- | N4 G92 E0*67 | ||
- | N5 G28*22 | ||
- | N6 G1 F1500.0*82 | ||
- | N7 G1 X2.0 Y2.0 F3000.0*85 | ||
- | N8 G1 X3.0 Y3.0*33 | ||
- | |||
- | Le Gcode peut être stocké dans un fichier sur une carte SD, votre disque dur ou tout autre support. L' | ||
- | Pour les BFB/RapMan l' | ||
- | Le fichier Gcode stocké et/ou créé par un trancheur peut également rassembler à ça: | ||
- | |||
- | G92 E0 | ||
- | G28 | ||
- | G1 F1500 | ||
- | G1 X2.0 Y2.0 F3000 | ||
- | G1 X3.0 Y3.0 | ||
- | |||
- | |||
- | La signification de tous ces symboles et chiffres (et plus) est expliquée ci-dessous. | ||
- | |||
- | Les trancheurs peuvent éventuellement ajouter des scripts de gcode au début et à la fin de leur fichier afin d' | ||
- | |||
- | |||
- | Pour savoir quels GCode spécifique(s) sont mis en œuvre dans cette page, il y a de petites tables attachées à la description des commandes, comme celle-ci: | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup=automatic | sprinter={{no}} | marlin={{partial}} | repetier={{experimental}} | smoothie=deprecated }} | ||
- | |||
- | Légende: | ||
- | ; {{m|yes}} | ||
- | : Le Gcode est complètement supporté par le firmware. | ||
- | ; {{m|partial}} or {{m|experimental}} | ||
- | : Le Gcode peut fonctionner après manipulation. Souvent, il est nécessaire de consulter la branche de code source pour le firmware (généralement stocké dans une branche différente) ou pour inverser les commutateurs de configuration sur la carte mère. | ||
- | ; automatic | ||
- | : Le firmware gère cet GCode automatiquement, | ||
- | ; ??? | ||
- | : On ne sait pas si le firmware prend en charge ce GCode. Vous devez le tester vous-même. | ||
- | ; {{m|no}} | ||
- | : Le firmware ne support pas le Gcode. | ||
- | ; deprecated | ||
- | : Le firmware a retiré le support de ce Gcode. L' | ||
- | |||
- | == Fields == | ||
- | |||
- | Un GCode RepRap est une liste de champs qui sont séparés par des espaces blancs ou des sauts de ligne. Un champ peut être interprété comme une commande, paramètre, ou pour tout autre but spécial. Il se compose d'une lettre directement suivi d'un nombre, ou peut être seulement une lettre autonome (Flag). La lettre donne des informations sur le sens du champ (voir la liste ci-dessous dans cette section). Les nombres peuvent être '' | ||
- | |||
- | |||
- | {| class=" | ||
- | |- | ||
- | ! Lettre | ||
- | ! Signification | ||
- | |- | ||
- | | Gnnn | ||
- | | Commande GCode Standard, Déplacement d'un ou plusieurs axes | ||
- | |- | ||
- | | Mnnn | ||
- | | Commande defini pour les RepRap, M106 Pour allumé le ventilateur | ||
- | |- | ||
- | | Tnnn | ||
- | | Selectionné un outils nnn. En RepRap, outils et extrudeur | ||
- | |- | ||
- | | Snnn | ||
- | | Commande de paramètre , Le Temps ; Les temperatures; | ||
- | |- | ||
- | | Pnnn | ||
- | | Commande de paramètre, En milliseconeds; | ||
- | |- | ||
- | | Xnnn | ||
- | | Coordonnée X, Généralement pour le faire bouger . Il peut etre un nombre entier ou décimal. | ||
- | |- | ||
- | | Ynnn | ||
- | | Coordonnée Y, Généralement pour le faire bouger. Il peut etre un nombre entier ou décimal. | ||
- | |- | ||
- | | Znnn | ||
- | | Coordonnée Z, Généralement pour le faire bouger . Il peut etre un nombre entier ou décimal. | ||
- | |- | ||
- | | Innn | ||
- | | Paramètre - X-offset in arc move; integral (Ki) in PID Tuning | ||
- | |- | ||
- | | Jnnn | ||
- | | Paramètre - Y-offset in arc move | ||
- | |- | ||
- | | Dnnn | ||
- | | Paramètre- Utilisé pour le diametre ; derivé (Kd) pour le réglage du PID | ||
- | |- | ||
- | | Hnnn | ||
- | | Parameter - Utilisé pour la chauffe de la résistance pour le PID | ||
- | |- | ||
- | | Fnnn | ||
- | | Paramètre en mm/ | ||
- | |- | ||
- | | Rnnn | ||
- | | Paramètre - Utilisé pour la température | ||
- | |- | ||
- | | Qnnn | ||
- | | Paramètre - pas utilisé actuellement | ||
- | |- | ||
- | | Ennn | ||
- | | Longueur du matière extrudé. Il est identique à X, Y et Z, mais il correspond à la longueur de filament à extruder. | ||
- | |- | ||
- | | Nnnn | ||
- | | N° de ligne. | ||
- | |- | ||
- | | *nnn | ||
- | | Checksum. | ||
- | |- | ||
- | |} | ||
- | |||
- | |||
- | |||
- | |||
- | == G-commands == | ||
- | |||
- | ==== G0 & G1: Move ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | makerbot={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | * G0 : Déplacement rapide | ||
- | * G1 : Déplacement Linéaire | ||
- | |||
- | ; Usage | ||
- | : G0 Xnnn Ynnn Znnn Ennn Fnnn Snnn | ||
- | : G1 Xnnn Ynnn Znnn Ennn Fnnn Snnn | ||
- | ; Paramètre | ||
- | : Tous les paramètres ne nécessitent pas d' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemples | ||
- | : G0 X12 '' | ||
- | : G0 F1500 '' | ||
- | : G1 X90.6 Y13.8 E22.4 '' | ||
- | |||
- | Les Firmware RepRap ont la même spécificité pour les commandes G0 and G1 , .< | ||
- | |||
- | |||
- | <pre> | ||
- | 1. G1 F1500 | ||
- | 2. G1 X50 Y25.3 E22.4 | ||
- | </ | ||
- | |||
- | Dans l' | ||
- | |||
- | |||
- | |||
- | <pre> | ||
- | 1. G1 F1500 | ||
- | 2. G1 X50 Y25.3 E22.4 F3000 | ||
- | </ | ||
- | |||
- | Cependant, dans l' | ||
- | |||
- | La spécification RepRap traite l' | ||
- | |||
- | Pour inverser l' | ||
- | |||
- | ==== G2 & G3: Controle des mouvements des Cercles ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}}< | ||
- | |||
- | ; Usage | ||
- | : G2 Xnnn Ynnn Innn Jnnn Ennn Fnnn '' | ||
- | : G3 Xnnn Ynnn Innn Jnnn Ennn Fnnn '' | ||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Examples | ||
- | : G2 X90.6 Y13.8 I5 J10 E22.4 '' | ||
- | : G3 X90.6 Y13.8 I5 J10 E22.4 '' | ||
- | |||
- | ===== Notes ===== | ||
- | < | ||
- | |||
- | ==== G4: Attente ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | makerbot={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | ; Paramètres | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemple | ||
- | : G4 P200 | ||
- | |||
- | Dans ce cas, rien ne se passe pendant 200 millisecondes. Pendant les pauses, l' | ||
- | |||
- | Pour Marlin et Smoothie, le paramètre d' | ||
- | |||
- | ==== G20: Définir les unités en Pouces ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{no}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{yes}} | grbl={{yes}} }} | ||
- | |||
- | Example: G20 | ||
- | |||
- | À partir de cette commande, les unités sont en pouces. | ||
- | |||
- | ==== G21: Définir les unités en Millimètres ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{no}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | Example: G21 | ||
- | |||
- | À partir de cette commande, les unités sont en millimètre. (Le millimètre est l' | ||
- | |||
- | ==== G28: Déplacement aux origines (Homing) ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | makerbot={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | ; Paramètres | ||
- | : '' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemples | ||
- | : G28 '' | ||
- | : G28 X Z '' | ||
- | |||
- | Lorsque le firmware RepRap reçoit cette commande, il déplace le ou les axes vers leur(s) butées aussi rapidement que possible, puis les reculent d'un millimètre et les déplacent lentement vers les points d' | ||
- | |||
- | Si vous ajoutez une coordonnée, | ||
- | |||
- | ==== G29: Autolevel | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{no}}, | ||
- | |||
- | Example: G29 | ||
- | |||
- | Déplace l'axe Z sur 3 points ou plus pour calculer la planéité du plateau. La commande G28 est à exécuter avant le G29. | ||
- | |||
- | ==== G90: Position Absolue ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | Example: G90 | ||
- | |||
- | Toutes les coordonnées éxécutées à partir de maintenant sont en rapport à l' | ||
- | |||
- | ==== G91: Position Relative ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | Example: G91 | ||
- | |||
- | Toutes les coordonnées à partir de maintenant sont liés à la dernière position. | ||
- | |||
- | ==== G92: Définir la Position ==== | ||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | makerbot={{yes}} | grbl={{yes}} | redeem={{yes}} }} | ||
- | |||
- | ; Parameters | ||
- | : '' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemple | ||
- | : G92 X10 E90 | ||
- | |||
- | Permet la programmation du point zéro absolu, en réinitialisant la position actuelle aux valeurs spécifiées. Ici le X de la machine passe en coordonnée 10, et l' | ||
- | |||
- | Un G92 sans coordonnées définira tous les axes à 0. | ||
- | |||
- | == M-commandes == | ||
- | |||
- | ==== M0: Arret optionnel==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} | ||
- | |||
- | Permet de mettre en pause l' | ||
- | |||
- | Exemple de code pour insérer une pièces métallique dans une impression, pour un décapsuleur par exemple. Et d' | ||
- | Code à placer avant que l' | ||
- | |||
- | - G0 Z10 | ||
- | |||
- | - G0 Y200 | ||
- | |||
- | - M0 | ||
- | |||
- | Il suffit de relancer l' | ||
- | |||
- | ==== M18: Arret de tous les moteurs==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{yes|use M2}} | sprinter={{no}} | marlin={{yes|call M84}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} | ||
- | |||
- | Exemple: M18 | ||
- | |||
- | Arrête tous les moteurs et permet de les tourner librement à la main' | ||
- | |||
- | le firmware Marlin permet de désactiver un des moteurs pas à pas. Par exemple, M18 X permet de désactiver les moteurs X. | ||
- | |||
- | |||
- | ==== M80: ATX Power On ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup=automatic | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M80 | ||
- | |||
- | Active l' | ||
- | |||
- | |||
- | ==== M81: ATX Power Off ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup=automatic | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M81 | ||
- | |||
- | Éteint l' | ||
- | |||
- | ==== M82: Définir le mode Absolu pour l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M82 | ||
- | |||
- | Définit la position de l' | ||
- | |||
- | Ce mode est par défaut pour repetier. | ||
- | |||
- | ==== M83: Définir le mode relatif pour l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M83 | ||
- | |||
- | Défini la position de l' | ||
- | |||
- | ==== M92: Définir les steps/mm ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple (Sprinter et Marlin): M92 X< | ||
- | |||
- | Permet la programmation des pas par unité (généralement mm) de l'axe (ici X). Le firmware se remet par défaut lors de la réinitialisation, | ||
- | |||
- | |||
- | ==== M104: Définir la température de l' | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} | makerbot={{yes}} | redeem={{yes}} }} | ||
- | |||
- | ; Paramètres | ||
- | : ''' | ||
- | ; Exemple | ||
- | : M104 S190 | ||
- | |||
- | Règle la température de l' | ||
- | |||
- | ==== M105: Retourner la température de l' | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} | redeem={{yes}} }} | ||
- | |||
- | Example: M105 | ||
- | |||
- | Renvoie la température actuelle de l' | ||
- | ok T:201 B:117 | ||
- | |||
- | Extension/ | ||
- | |||
- | Dans Repetier, vous pouvez ajouter X0 pour récupérer la valeur brute si nécessaire : | ||
- | <pre> | ||
- | M105 X0 | ||
- | ==> 11: | ||
- | </ | ||
- | |||
- | ===== Extension Duet-dc42 ===== | ||
- | |||
- | Le firmware Duet-dc42 retourne une réponse au format JSON si le paramètre S2 ou S3 est ajouté dans la commande. C'est utilisé par le panneau de contrôle tactile. De plus, il est possible d' | ||
- | |||
- | La réponse contient un objet JSON, sans aucun objet ou tableau imbriqué, suivi par un caractère de saut de ligne. C'est similaire à l' | ||
- | |||
- | | ||
- | " | ||
- | |||
- | La signification de ces champs est la suivante: | ||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Quand le paramètre S3 est utilisé, la réponse contient ces champs, ainsi que quelques champs additionnels qui ne changent généralement pas, et donc n'ont pas besoin d' | ||
- | Ces champs additionnels comprennent: | ||
- | |||
- | | ||
- | | ||
- | |||
- | La réponse devrait fournir les champs dans cet ordre. D' | ||
- | |||
- | ==== M106: Allumer les ventilateurs ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} }} | ||
- | |||
- | ; Paramètres | ||
- | : ''' | ||
- | ; Exemple | ||
- | : M106 S127 | ||
- | |||
- | Allume les ventilateurs à la moitié de leur vitesse maximale. | ||
- | |||
- | Le paramètre obligatoire ' | ||
- | |||
- | ===== M106 dans le firmware Duet ===== | ||
- | |||
- | Duet-dc42 firmware support un paramètre optionnel I. Si ce paramètre est présent et plus grand que 0, la sortie du ventilateur de refroidissement est inversé. Cela rend la sortie du ventilateur de refroidissement adapté pour alimenter l' | ||
- | |||
- | Si le paramètre ' | ||
- | |||
- | ==== M107: Eteindre les ventilateurs ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{yes}} | machinekit={{yes}} }} | ||
- | |||
- | Déprécié dans le Teacup firmware. Utilisez M106 S0 plutôt. | ||
- | |||
- | ==== M108: Définir la vitesse d' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{yes}} | machinekit={{no}} }} | ||
- | |||
- | Défini la vitesse du moteur d' | ||
- | (Déprécié dans le firmware FiveD, voir M113) | ||
- | |||
- | ==== M109: Définir la température de l' | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{no|not needed}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{yes}} | makerbot={{yes}} | redeem={{yes}} }} | ||
- | |||
- | ; Paramètres | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemple | ||
- | : M109 T1 S215 Fixe la température de l' | ||
- | |||
- | ===== M109 dans Marlin, Sprinter (ATmega port) et Duet ===== | ||
- | |||
- | Définir la température de l' | ||
- | Exemple: M109 S185 | ||
- | |||
- | ==== M110: Set Current Line Number ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{no|not needed}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M110 N123 | ||
- | |||
- | Set the current line number to 123. Thus the expected next line after this command will be 124. | ||
- | <br style=" | ||
- | |||
- | ==== M111: Set Debug Level ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{experimental|Debug}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M111 S6 | ||
- | |||
- | Set the level of debugging information transmitted back to the host to level 6. The level is the OR of three bits: | ||
- | |||
- | <Pre> | ||
- | #define DEBUG_ECHO (1<< | ||
- | #define DEBUG_INFO (1<< | ||
- | #define DEBUG_ERRORS (1<< | ||
- | #define DEBUG_DRYRUN (1<< | ||
- | #define DEBUG_COMMUNICATION (1<< | ||
- | </ | ||
- | |||
- | Thus 6 means send information and errors, but don't echo commands. | ||
- | |||
- | For firmware that supports ethernet and web interfaces M111 S9 will turn web debug information on without changing any other debug settings, and M111 S8 will turn it off. Web debugging usually means that HTTP requests will be echoed to the USB interface, as will the responses. | ||
- | |||
- | ==== M112: Arrêt d' | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M112 | ||
- | N' | ||
- | |||
- | ==== M114: Retourner la postion courante des axes ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M114 | ||
- | |||
- | Cela retourne la position actuelle des axes X, Y, Z et E par rapport à leur 0 respectif de la machine . | ||
- | |||
- | Par exemple, la machine retourne une chaîne telle que: | ||
- | |||
- | < | ||
- | |||
- | La tête d' | ||
- | |||
- | ==== M115: Get Firmware Version and Capabilities ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M115 | ||
- | |||
- | Request the Firmware Version and Capabilities of the current microcontroller | ||
- | The details are returned to the host computer as key:value pairs separated by spaces and terminated with a linefeed. | ||
- | |||
- | sample data from firmware: | ||
- | ok PROTOCOL_VERSION: | ||
- | |||
- | This M115 code is inconsistently implemented, | ||
- | |||
- | RepRapFirmware-dc42 also uses M115 to tell the firmware about the hardware on which it is running. If the P parameter is present then the integer argument specifies the hardware being used. The following are currently supported: | ||
- | |||
- | :M115 P0 | ||
- | :M115 P1 Duet 0.6 | ||
- | :M115 P2 Duet 0.7 | ||
- | :M115 P3 Duet 0.85 | ||
- | |||
- | ==== M116: Attendre la température ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M116 | ||
- | |||
- | Attend que '' | ||
- | |||
- | Le firmware Duet-dc42 (versions 0.78c et supérieures) supporte un paramètre optionnel P, utilisé pour spécifier le numéro d' | ||
- | |||
- | Users of Duet-zpl may specify a list of the heaters to be waited for by specifying an ' | ||
- | |||
- | ==== M117: Afficher un Message ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M117 Hello World | ||
- | |||
- | |||
- | Cela provoque que le message renseigné soit affiché dans la ligne d' | ||
- | |||
- | ==== M119: Retourner le statut des fin de courses (endstop) ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M119 | ||
- | |||
- | Retourne l' | ||
- | |||
- | Si le retour de cette commande indique ' | ||
- | |||
- | ==== M120: Push ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Push the state of the RepRap machine onto a stack. | ||
- | |||
- | # Current feedrate, and | ||
- | # Whether moves (and separately extrusion) are relative or absolute | ||
- | |||
- | ==== M121: Pop ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Recover the last state pushed onto the stack. | ||
- | |||
- | ==== M120: Enable endstop detection ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ==== M121: Disable endstop detection ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | |||
- | ==== M126: Open Valve ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | makerbot={{yes}} }} | ||
- | |||
- | Example: M126 P500 | ||
- | |||
- | Open the extruder' | ||
- | |||
- | ===== M126 in MakerBot ===== | ||
- | |||
- | Example: M126 T0 | ||
- | |||
- | Enables an extra output attached to a specific toolhead (e.g. fan) | ||
- | |||
- | ==== M127: Close Valve ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | makerbot={{yes}} }} | ||
- | |||
- | Example: M127 P400 | ||
- | |||
- | Close the extruder' | ||
- | |||
- | ===== M127 in MakerBot ===== | ||
- | |||
- | Example: M127 T0 | ||
- | |||
- | Disables an extra output attached to a specific toolhead (e.g. fan) | ||
- | |||
- | ==== M140: Définir la température du plateau chauffant (Rapide) ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | ; Param-tres | ||
- | : ''' | ||
- | ; Exemple | ||
- | : M140 S55 | ||
- | |||
- | Définit la température du plateau chauffant à 55< | ||
- | |||
- | ==== M141: Set Chamber Temperature (Fast) ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{yes|1=uses M104}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|zpl, | ||
- | |||
- | Example: M141 S30 | ||
- | |||
- | Set the temperature of the chamber to 30< | ||
- | |||
- | Duet-zpl 1.08d+ and Duet-dc42 1.09d+ implement M141 and accept an additional ' | ||
- | |||
- | ==== M150: Set display color ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Example | ||
- | : M150 R255 U128 B192 | ||
- | |||
- | Set BlinkM Color via I2C. Range for values: 0-255 | ||
- | |||
- | ==== M163: Set weight of mixed material ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}}: | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | |||
- | Set weight for this mixing extruder drive. | ||
- | |||
- | ==== M164: Store weights ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}}: | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | |||
- | Store weights as virtual extruder S. | ||
- | |||
- | ==== M190: Wait for bed temperature to reach target temp ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}}: | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | ; Example | ||
- | : M190 S60 | ||
- | |||
- | This will wait until the bed temperature reaches 60 degrees, printing out the temperature of the hot end and the bed every second. | ||
- | <br style=" | ||
- | |||
- | ==== M200: Set filament diameter ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | Without parameters loads default grid, and with specified extension attempts to load the specified grid. If not available will not modify the current grid. | ||
- | If Z was saved with the grid file, it will load the saved Z with the grid. | ||
- | |||
- | M200 Dm.mmm sets the filament diameter to m.mmm millimeters. | ||
- | |||
- | M200 D0 or M200 D1.128 ; reset E multiplier to 1, since sqrt(1/ | ||
- | |||
- | See also [[Gcode# | ||
- | |||
- | Question: what does a firmware do with filament diameter? Has this an effect on how much an E command moves the extruder motor? --[[User: | ||
- | Smoothie implements the same thing as Marlin --[[User: | ||
- | |||
- | ==== M201: Définir l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M201 X1000 Y1000 Z100 E2000 | ||
- | |||
- | Définit l' | ||
- | |||
- | ==== M202: Définir la vitesse maximum d' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | en unités / s ^ 2 pour des mouvements de déplacement (M202 X1000 Y1000) inutilisés sur Marlin !! | ||
- | |||
- | ==== M203: Définir la vitesse maximum de déplacement des axes ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M203 X6000 Y6000 Z300 E10000 | ||
- | |||
- | Définit la vitesse maximum de déplacement des axes de votre machine quelle peut faire en mm/min (Marlin uses mm/sec). | ||
- | |||
- | ==== M204: Set default acceleration ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | S normal moves T filament only moves (M204 S3000 T7000) im mm/ | ||
- | |||
- | |||
- | ''' | ||
- | |||
- | P = Printing moves | ||
- | |||
- | R = Retract only (no X, Y, Z) moves | ||
- | |||
- | T = Travel (non printing) moves | ||
- | |||
- | |||
- | The command "M204 P800 T3000 R9000" set the acceleration for printing movements to 800mm/s^2, for travels to 3000mm/s^2 and for retracts to 9000mm/s^2. | ||
- | |||
- | ===== M204 Repetier ===== | ||
- | |||
- | M204 X[Kp] Y[Ki] Z[Kd] - | ||
- | |||
- | Set PID parameter. Values are 100*real value. | ||
- | |||
- | ==== M205: Advanced settings ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk | ||
- | |||
- | ===== M205 Repetier ===== | ||
- | |||
- | Output EEPROM settings. | ||
- | |||
- | ==== M206: ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ===== M206 Marlin, Sprinter, Smoothie - Set home offset ===== | ||
- | Example: M206 X10.0 Y10.0 Z-0.4 | ||
- | |||
- | The values specified are added to the endstop position when the axes are referenced. The same can be achieved with a G92 right after homing (G28, G161). | ||
- | |||
- | With Marlin firmware, this value can be saved to EEPROM using the M500 command. | ||
- | |||
- | A similar command is G10, aligning these two is [[Talk: | ||
- | |||
- | With Marlin 1.0.0 RC2 a negative value for z lifts(!) your printhead. | ||
- | |||
- | ===== M206 Repetier - Set eeprom value ===== | ||
- | |||
- | M206 T[type] P[pos] [Sint(long] [Xfloat] | ||
- | |||
- | Example: M206 T3 P39 X19.9 | ||
- | |||
- | Set Jerk to 19.9 | ||
- | |||
- | ==== M207: Set retract length ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}}}} | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Example | ||
- | : M207 S4.0 F2400 Z0.075 | ||
- | |||
- | Sets retract length, stays in mm regardless of M200 setting | ||
- | |||
- | ==== M208: Set axis max travel ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}}}} | ||
- | |||
- | Example: M208 X250 Y210 Z180 | ||
- | |||
- | The values specified set the software limits for axis travel in the positive direction. | ||
- | |||
- | RepRapPro' | ||
- | |||
- | With Duet-dc42 firmware, on a Cartesian printer you can also use this command to specify software limits for axis travel in the negative direction, by adding parameter S1. The axis limits you set are also the positions assumed when an endstop is triggered. | ||
- | |||
- | ==== M208: Set unretract length ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | |||
- | Sets recover=unretract length. | ||
- | |||
- | ==== M209: Enable automatic retract ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M209 S1 | ||
- | |||
- | This boolean value S 1=true or 0=false enables automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction. | ||
- | |||
- | ==== M210: Set homing feedrates ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M210 X1000 Y1500 | ||
- | |||
- | Set the feedrates used for homing to the values specified in mm per minute. | ||
- | |||
- | ==== M211: Disable/ | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | The boolean value S 1=enable or 0=disable controls state of software endstop. | ||
- | |||
- | The boolean value X, Y or Z 1=max endstop or 0=min endstop selects which endstop is controlled. | ||
- | |||
- | Example: M211 X1 Y1 Z1 S0 | ||
- | |||
- | Disables X,Y,Z max endstops | ||
- | |||
- | Example: M211 X0 S1 | ||
- | |||
- | Enables X min endstop | ||
- | |||
- | Example: M211 | ||
- | |||
- | Prints current state of software endstops. | ||
- | |||
- | ==== M212: Set Bed Level Sensor Offset ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}}* | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | This G-Code command is known to be available in the newer versions of PrintrBot' | ||
- | |||
- | Example: M212 Z-0.2 | ||
- | |||
- | Set the Z home to 0.2 mm lower than where the sensor says Z home is. This is extremely useful when working with printers with hard-to-move sensors, like the PrintrBot Metal Plus. | ||
- | |||
- | PrintrBot suggests that the user make minor (0.1-0.2) adjustments between attempts and immediately executes M500 & M501 after setting this. | ||
- | |||
- | ==== M218: Set Hotend Offset ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Sets hotend offset (in mm): T< | ||
- | |||
- | Example: M218 T1 X50 Y0.5 | ||
- | |||
- | ==== M231: Set OPS parameter ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | M231 S[OPS_MODE] X[Min_Distance] Y[Retract] Z[Backslash] F[ReatrctMove] | ||
- | |||
- | ==== M232: Read and reset max. advance values ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ==== M240: Déclencher l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M240 | ||
- | |||
- | Déclenche un appareil photo connecté sur la carte. | ||
- | |||
- | ==== M250: Set LCD contrast ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M250 C20 | ||
- | |||
- | Sets LCD contrast C< | ||
- | |||
- | ==== M251: Measure Z steps from homing stop (Delta printers) ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | M251 S0 - Reset, S1 - Print, S2 - Store to Z length (also EEPROM if enabled) | ||
- | |||
- | (This is a Repetier-Firmware only feature) | ||
- | |||
- | ==== M280: Définir la postion du servomoteur ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | (Marlin, Repetier [[Gcode# | ||
- | |||
- | Définir la postion absolue du servomoteur. P: determine le servomoteur , S: Angle ou Microsecondes (Marlin) | ||
- | |||
- | ==== M300: Jouer un son ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | ; Parametres | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemple | ||
- | : M300 S300 P1000 | ||
- | |||
- | Jouer un bip sonore de 300Hz pendant 1000 millisecondes, | ||
- | |||
- | ==== M301: Définir les paramétrage du PID ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}}: | ||
- | |||
- | ; Parametere | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemple | ||
- | |||
- | : M301 P1 I2 D3 ; Marlin | ||
- | |||
- | |||
- | Définir la valeur de la hotend pour la Proportionel (P), l' | ||
- | |||
- | ==== M302: Autoriser l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}}: | ||
- | |||
- | |||
- | Ceci indique à l' | ||
- | |||
- | Exemple: M302 | ||
- | |||
- | ==== M303: Executer un paramétrage automatic du PID ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | |||
- | [[PID Tuning]] se réfère à un algorithme de contrôle utilisé dans certains repraps pour les hotends et les lits chauffants. Cette commande génère le proportionnel (Kp), intégral (Ki), et (Kd) la valeur des produits dérivés pour la hotend ou lit (E-1). Envoyer le code M303 et attender la fin du programme. | ||
- | |||
- | |||
- | |||
- | Pid de la hotend: | ||
- | M303 E0 S< | ||
- | |||
- | Exemple: | ||
- | M303 E0 C8 S175 | ||
- | |||
- | le firmware va exécuter un test de la hotend 1 de 8 cycles avec une consigne de 175°. | ||
- | |||
- | ==== M304: Définir les parametre PID du Bed (plateau chauffant) ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}}: | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | : ''' | ||
- | : ''' | ||
- | ; Exemples | ||
- | : M304 P1 I2 D3 ; set kP=3, kI=2, kD=3 | ||
- | : M301 P1 I2 D3 T0.7 H0 B20 W127 ; Duet-dc42 firmware | ||
- | : M304 ; Retourner les parametres | ||
- | |||
- | |||
- | |||
- | Définit les valeurs proportionnelle, | ||
- | |||
- | |||
- | Regarder aussi [[PID Tuning]]. | ||
- | |||
- | ==== M305: Set thermistor and ADC parameters ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Sets the parameters for temperature measurement. Supported by RepRapFirmware from 0.78c, and Duet-dc42 firmware. | ||
- | |||
- | Example: M305 P1 T100000 R1000 B4200 | ||
- | |||
- | This tells the firmware that for heater 1 (P parameter: 0 = heated bed, 1 = first extruder) the thermistor 25C resistance (T parameter) is 100Kohms, the thermistor series resistance (R parameter) is 1Kohms, the thermistor beta (B parameter) is 4200. All parameters other than P are optional. If only the P parameter is given, the existing values are displayed. | ||
- | |||
- | Additionally, | ||
- | |||
- | Example: M305 P1 T100000 R1000 B4200 H14 L-11 X2 | ||
- | |||
- | Here the ADC high end correction (H parameter) is 14, the ADC low end correction (L parameter) is -11, and thermistor input #2 is used to measure the temperature of heater #1. | ||
- | |||
- | ==== M306: set home offset calculated from toolhead position ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | smoothie={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M306 Z0 | ||
- | |||
- | The values specified are added to the calculated end stop position when the axes are referenced. The calculated value is derived from the distance of the toolhead from the current axis zero point. | ||
- | |||
- | The user would typically place the toolhead at the zero point of the axis and issue the M306 command. | ||
- | |||
- | This value can be saved to EEPROM using the M500 command (as M206 value). | ||
- | |||
- | Implemented in Smoothieware | ||
- | |||
- | ==== M351: Toggle MS1 MS2 pins directly ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M351 | ||
- | |||
- | ==== M355: Turn case lights on/off ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup=use M106 | sprinter={{no}} | marlin={{no}} | repetier={{yes}}: | ||
- | |||
- | ; Examples | ||
- | : M355 S1 ''; | ||
- | : M355 S0 ''; | ||
- | : M355 ''; | ||
- | |||
- | Every call or change over LCD menu sends a state change for connected hosting software like | ||
- | <pre> | ||
- | Case lights on | ||
- | Case lights off | ||
- | No case lights | ||
- | </ | ||
- | |||
- | ==== M360: Report firmware configuration ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{yes}}: | ||
- | |||
- | ; Target | ||
- | This command helps hosting software to detect configuration details, which the user would need to enter otherwise. | ||
- | It should reduce configuration time considerably if supported. | ||
- | |||
- | ; Example | ||
- | : M360 | ||
- | |||
- | ;Response: | ||
- | <pre> | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | Config: | ||
- | </ | ||
- | |||
- | ==== SCARA calibration codes (Morgan) ==== | ||
- | |||
- | In order to ease calibration of Reprap Morgan, the following M-codes are used to set the machine up | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{partial}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ==== M360: Move to Theta 0 degree position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | The arms move into a position where the Theta steering arm is parallel to the top platform edge. The user then calibrates the position by moving the arms with the jog buttons in software like pronterface until it is perfectly parallel. | ||
- | |||
- | Smoothieware: | ||
- | |||
- | ==== M361: Move to Theta 90 degree position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Theta move to 90 degrees with platform edge. User calibrates by using jog arms to place exactly 90 degrees. | ||
- | |||
- | Smoothieware: | ||
- | |||
- | ==== M362: Move to Psi 0 degree position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Arms move to Psi 0 degree. | ||
- | |||
- | ==== M363: Move to Psi 90 degree position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Arms move to Psi 90 degree. | ||
- | |||
- | ==== M364: Move to Psi + Theta 90 degree position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Move arms to form a 90 degree angle between the inner and outer Psi arms. Calibrate by moving until angle is exactly 90 degree. | ||
- | |||
- | Smoothieware: | ||
- | |||
- | ==== M365: SCARA scaling factor ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{experimental}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Adjust X Y and Z scaling by entering the factor. | ||
- | |||
- | ==== M366: SCARA convert trim ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Executing this command translates the calculated trim values of the SCARA calibration to real home offsets. | ||
- | |||
- | ==== M370: Morgan manual bed level - clear map ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Clear the map and prepare for calibration | ||
- | ; Usage | ||
- | : M370 | ||
- | : M370 X< | ||
- | |||
- | Without parameters is defaults to X5 Y5 (25 calibration points) | ||
- | When specifying parameters, uneven numbers are recommended. | ||
- | |||
- | ==== M371: Move to next calibration position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Move to the next position for calibration. User moves the bed towards the hotend until it just touches | ||
- | |||
- | ==== M372: Record calibration value, and move to next position ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | The position of the bed is recorded and the machine moves to the next position. | ||
- | |||
- | ==== M373: End bed level calibration mode ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | End calibration mode and enable z correction matrix. | ||
- | |||
- | ==== M374: Save calibration grid ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Saves the calibration grid. (Smoothieware) | ||
- | ; Usage | ||
- | : M374 | ||
- | : M374 <file extension> | ||
- | |||
- | Without parameters safes the grid into the default grid file that gets loaded at boot | ||
- | Parameter specifies the extension of the grid file - useful for special grid files such as for a special print surface like a removable print plate. | ||
- | Addition of Z will additionally save the M206 Z homing offset into the grid file | ||
- | |||
- | ==== M375: Display matrix / Load Matrix ==== | ||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Display the bed level calibration matrix (Marlin) | ||
- | Load Grid matrix file (Smoothieware) | ||
- | ; Usage | ||
- | : M375 | ||
- | : M375 <file extension> | ||
- | |||
- | Without parameters loads default grid, and with specified extension attempts to load the specified grid. If not available will not modify the current grid. | ||
- | If Z was saved with the grid file, it will load the saved Z with the grid. | ||
- | |||
- | ==== M380: Activate solenoid ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M380 | ||
- | |||
- | Activates solenoid on active extruder. | ||
- | |||
- | ==== M381: Disable all solenoids ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M381 | ||
- | |||
- | ==== M400: Wait for current moves to finish ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | Finishes all current moves and and thus clears the buffer. That's identical to < | ||
- | |||
- | Example: M400 | ||
- | |||
- | ==== M401: Lower z-probe ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M401 | ||
- | |||
- | Lower z-probe if present. | ||
- | |||
- | ==== M402: Raise z-probe ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M402 | ||
- | |||
- | Raise z-probe if present. | ||
- | |||
- | ==== M404: Filament width and nozzle diameter ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M404 N1.75 | ||
- | |||
- | N<dia in mm> | ||
- | Enter the nominal filament width (3mm, 1.75mm) or will display nominal filament width without parameters. | ||
- | |||
- | While Marlin only accepts the N parameter, Duet-zpl further allows to specify the nozzle diameter (in mm) via the D-parameter. It is used to properly detect the first layer height when a new print is being started. | ||
- | |||
- | Example: M404 N3.0 D1.0 | ||
- | |||
- | ==== M405: Allumage du capteur de filament ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M405 | ||
- | |||
- | Allume le contrôle d' | ||
- | |||
- | ==== M406: Extinction du capteur de filament | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M406 | ||
- | |||
- | Extinction du capteur de filament. | ||
- | |||
- | ==== M407: Display filament diameter ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | reprapfirmware={{partial}} }} | ||
- | |||
- | Example: M407 | ||
- | |||
- | Displays measured filament diameter. In RepRapFirmware M407 does the same as M404. | ||
- | |||
- | ==== M421: Set a Mesh Bed Leveling Z coordinate ==== | ||
- | |||
- | M421 - Set a single Z coordinate in the Mesh Leveling grid. X< | ||
- | |||
- | ==== M500: Défini les paramètres dans l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | reprapfirmware={{partial|dc42, | ||
- | |||
- | Exemple: M500 | ||
- | |||
- | Sauvegarder les paramètres actuels dans l' | ||
- | |||
- | ==== M501: Lire les parametres à partir de l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | reprapfirmware={{partial|dc42, | ||
- | |||
- | Exemple: M501 | ||
- | |||
- | Lit les paramètres enregistrés dans l' | ||
- | |||
- | ==== M502: Réinitialiser " | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | repetier={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M502 | ||
- | |||
- | |||
- | Cette commande réinitialise tous les paramètres ajustables à leurs valeurs par défaut, comme indiqué dans le firmware. Cela ne réinitialise pas les paramètres stockés dans la mémoire EEPROM, donc il doit être suivi avec M501 si vous voulez le faire. | ||
- | |||
- | ==== M503: Print settings ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{yes}} | marlin={{yes}} | reprapfirmware={{partial|dc42, | ||
- | |||
- | Example: M503 | ||
- | |||
- | This command asks the firmware to reply with the current print settings stored in EEPROM. The reply output includes the G-Code commands to produce each setting. For example, the Steps Per Unit values are displayed as an M92 command. | ||
- | |||
- | ==== M540: Enable/ | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | ; Parameters | ||
- | : ''' | ||
- | ; Example | ||
- | : M540 S1 | ||
- | |||
- | ==== M557: Set Z probe point ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M557 P1 X30 Y40.5 | ||
- | |||
- | Set the points at which the bed will be probed to compensate for its plane being slightly out of horizontal. | ||
- | |||
- | ==== M558: Set Z probe type ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M558 P0 X1 Y0 Z1 | ||
- | |||
- | A Z probe may be a switch, an IR proximity sensor, or some other device. | ||
- | |||
- | The X, Y and Z parameters specify whether each axis uses the Z probe for homing or not. If the parameter is nonzero, the Z probe is used for homing that axis. if the parameter is zero, the endstop switch for that axis is used for homing instead. | ||
- | |||
- | Duet-dc42 and zpl-dc42 firmware support an additional R parameter, which specifies the modulation channel. Channel 0 (the default) uses the standard Z probe modulation pin on the Duet 0.6. Channel 1 selects the alternative Z probe modulation pin on the Duet 0.7. Note that on RADDS electronics, | ||
- | |||
- | Duet-dc42 firmware versions 1.00e onwards supports additional parameter H. This specifies the dive height (default 3mm) from which probing is done in response to a G30 command when the P parameter is present, or a G32 command. | ||
- | |||
- | ==== M559: Upload configuration file ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M559 | ||
- | |||
- | If the RepRap supports it, this uploads a file that is run on re-boot to configure the machine. | ||
- | |||
- | ==== M560: Upload web page file ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M560 | ||
- | |||
- | For RepRaps that have web support and that can be driven by a web browser, this uploads the file that is the control page for the RepRap. | ||
- | |||
- | |||
- | ==== M561: Set Identity Transform ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M561 | ||
- | |||
- | This cancels any bed-plane fitting as the result of probing (or anything else) and returns the machine to moving in the user's coordinate system. | ||
- | |||
- | ==== M562: Reset temperature fault ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M562 P2 | ||
- | |||
- | Reset a temperature fault on heater/ | ||
- | |||
- | ==== M563: Define or remove a tool ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M563 P3 D0:5:6 H1:3 | ||
- | |||
- | Tools are usually (though not necessarily) extruders. | ||
- | |||
- | Tools are driven using multiple values in the E field of G1 commands, each controlling the corresponding drive in the D field above, as follows: | ||
- | |||
- | <pre> | ||
- | G1 X90.6 Y13.8 E2.24: | ||
- | G1 X70.6 E0:0:42.4 | ||
- | </ | ||
- | |||
- | The first line moves straight to the point (90.6, 13.8) extruding a total of 2.24mm of filament from both drives 0 and 5 and 15.98mm of filament from drive 6. | ||
- | |||
- | The second line moves back 20mm in X extruding 42.4mm of filament from drive 6. | ||
- | |||
- | Normally an M563 command is immediately followed by a G10 command to set the tool's offsets and temperatures. | ||
- | |||
- | It is permissible for different tools to share some (or all) of their drives and heaters. | ||
- | |||
- | If you use the M563 command with a P value for a tool that has already been defined, that tool is redefined using the new values you provide. | ||
- | |||
- | Duet-dc42 firmware supports an additional form of the M563 command. The command: | ||
- | |||
- | <pre> | ||
- | M563 S1 | ||
- | </ | ||
- | |||
- | means add 1 (the value of the S parameter) to all tool numbers found in the remainder of the current input stream (e.g. the current file if the command is read from a file on the SD card), or until a new M563 command of this form is executed. The purpose of this is to provide compatibility between the Duet firmware, in which tool numbers typically start at 1, and programs such as slic3r that assume tools are numbered from zero. | ||
- | |||
- | Duet-zpl firmware allows the deletion of existing tools if M563 is called in this way: | ||
- | |||
- | <pre> | ||
- | M563 P1 D-1 H-1 | ||
- | </ | ||
- | |||
- | ==== M564: Limit axes ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M564 S0 | ||
- | |||
- | Allow moves outside the print volume, or not. If the S parameter is 0, then you can send G codes to drive the RepRap outside its normal working volume, and it will attempt to do so. User beware... | ||
- | |||
- | ==== M565: Set Z probe offset ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware= {{no}}: See G31 | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M565 X3 Y4.5 Z-2.37 | ||
- | |||
- | Set the offset from the extruder tip to the probe position. The X, Y and Z values are the delta between the extruder and the actual trigger position of the probe. If the probe trigger point is below the extruder (typical) the Z offset will be negative. This just records the point offset; it does not actually do the probing. | ||
- | |||
- | Example: M572 P3 S0.06 | ||
- | |||
- | This sets the pre-compensation time in seconds (S parameter) for Bowden extruder elasticity for the specified drive (P parameter). Supported by RepRapFirmware-dc42. Normally, compensation should be applied to extruder drives only (drives 3 and higher). | ||
- | |||
- | Pre-compensation causes the extruder drive position to be increased by an additional amount proportional to the rate of extrusion. At the end of a move when the extrusion rate is decreasing, this may result in the extruder drive moving backwards (i.e. retracting). Therefore, if you enable this feature, you may need to reduce the amount of retraction you use in your slicing program to avoid over-retraction. | ||
- | |||
- | ==== M573: Report heater PWM ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M573 P1 | ||
- | |||
- | This gives a running average (usually taken over about five seconds) of the PWM to the heater specified by the P field. | ||
- | |||
- | ==== M574: Set endstop configuration ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M574 X1 Y2 Z0 S1 | ||
- | |||
- | This defines the type of endstop switch or opto sensor that the printer has for each axis: 0 = none, 1 = low end, 2 = high end. The optional S parameter defines whether the endstop input is active high (S1, the default) or low (S0). Intended for use with boards that provide a single endstop input for each axis that may be used for either a high or a low end endstop, such as the Duet. Supported by Duet-dc42 firmware. On delta printers, the XYZ parameters refer to the towers and the endstops should normally all be high end. | ||
- | |||
- | ==== M575: Set serial comms parameters ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M575 P1 B57600 S1 | ||
- | |||
- | This sets the communications parameters of the serial comms channel specified by the P parameter. P0 specifies the main serial interface (typically a USB port, or serial-over-USB), | ||
- | |||
- | ==== M576: Set axis/ | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|not yet}} | bfb={{no}} | machinekit={{no}} | ||
- | |||
- | Example: M576 X0 Y1 Z2:3 A4 E5:6:7 | ||
- | |||
- | This maps each letter to the specified drive number(s). In this example the Z axis configuration consists of two motors that need to be controlled simultaneously. An extra axis ' | ||
- | |||
- | See also M569, which also provides for setting the drive mapping. | ||
- | |||
- | ==== M577: Wait until endstop is triggered ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|Duet-zpl}} | bfb={{no}} | machinekit={{no}} | ||
- | |||
- | Example: M577 E0 S1 | ||
- | |||
- | Wait for an endstop switch to be pressed. The example above will wait until the first extruder endstop is triggered. | ||
- | |||
- | The following trigger types may be used using the ' | ||
- | |||
- | 0: Endstop not hit | ||
- | 1: Low endstop hit | ||
- | 2: High endstop hit | ||
- | 3: Near endstop (only Z probe) | ||
- | |||
- | ==== M578: Fire inkjet bits ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} | ||
- | |||
- | Example: M578 P3 S5 | ||
- | |||
- | This fires inkjet head 3 (the P field) using the bit pattern specified by the S field. | ||
- | |||
- | This is a version of the M700 command used by the [[Inkshield]], | ||
- | |||
- | ==== M579: Scale Cartesian axes ==== | ||
- | |||
- | Example: M579 X1.0 Y0.997 Z1.001 | ||
- | |||
- | On a Cartesian RepRap you can get prints exactly the right size by tweaking the axis steps/mm using the M92 G Code above. | ||
- | |||
- | ==== M580: Select Roland ==== | ||
- | |||
- | Example: M580 R1 PVS4; | ||
- | |||
- | This is not really anything to do with RepRap, but it is convenient. | ||
- | |||
- | |||
- | ==== M600: Set line cross section ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | bfb={{no}} | machinekit={{yes}} }} | ||
- | |||
- | Example: M600 P0.061 | ||
- | |||
- | Sets the cross section for a line to extrude in velocity extrusion mode. When the extruder is enabled and movement is executed the amount of extruded filament will be calculated to match the specified line cross section. | ||
- | |||
- | ==== M600: Filament change pause ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | reprapfirmware={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M600 | ||
- | |||
- | Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]. | ||
- | |||
- | ==== M605: Set dual x-carriage movement mode ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M605 S1 | ||
- | |||
- | Sets the dual x-carriage movement mode: S< | ||
- | |||
- | M605 S0: Full control mode. The slicer has full control over x-carriage movement | ||
- | M605 S1: Auto-park mode. The inactive head will auto park/unpark without slicer involvement | ||
- | M605 S2 [Xnnn] [Rmmm]: Duplication mode. The second extruder will duplicate the first with nnn millimeters x-offset and an optional differential hotend temperature of mmm degrees. E.g., with "M605 S2 X100 R2" the second extruder will duplicate the first with a spacing of 100mm in the x direction and 2 degrees hotter. | ||
- | |||
- | ==== M665: Set delta configuration ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M665 L250 R160 S200 (Marlin), M665 L250 R160 B80 H240 X0 Y0 Z0 (RepRapFirmware-dc42) | ||
- | |||
- | Set the delta calibration variables. L = diagonal rod length, R = delta radius. For Marlin: S = segments per second. For RepRapFirmware-dc42: | ||
- | |||
- | : I don't think it's a good idea to have two different implementations for the same G-code, and I also question the practical value of specifying the print bed radius when defining a delta configuration, | ||
- | |||
- | : The implementations are not different, they have the same L and R parameters, but each has additional parameters that are not relevant to the other implementation. I'm not against defining a new Gcode to define bed size and shape; however, you can already define the limits of a rectangular print area using M208. Even when a delta printer has a square bed, the printable area is not square. It is usually taken to be circular, although it is in reality more complicated. My purpose in adding the B parameter was to make it easy to define a radius outside which movement will not normally be attempted. I have changed "bed radius" | ||
- | |||
- | ==== M666: Définir l' | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple M666 X-0.1 Y+0.2 Z0 | ||
- | |||
- | Définir l' | ||
- | |||
- | ==== M667: Select CoreXY mode ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | reprapfirmware={{partial|dc42}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | M667 S0 selects Cartesian mode (unless the printer is configured as a delta using the M665 command). Forward motion of the X motor moves the head in the +X direction. Similarly for the Y motor and Y axis, and the Z motor and Z axis. This is the default state of the firmware on power up. | ||
- | |||
- | M667 S1 selects CoreXY mode. Forward movement of the X motor moves the head in the +X and +Y directions. Forward movement of the Y motor moves the head in the -X and +Y directions. | ||
- | |||
- | M667 S2 selects CoreXZ mode. Forward movement of the X motor moves the head in the +X and +Z directions. Forward movement of the Z motor moves the head in the -X and +Z directions. | ||
- | |||
- | M667 S3 selects CoreYZ mode. Forward movement of the Y motor moves the head in the +Y and +Z directions. Forward movement of the Z motor moves the head in the -Y and +Z directions. | ||
- | |||
- | Additional parameters X, Y and Z may be given to specify factors to scale the motor movements by for the corresponding axes. For example, to specify a CoreXZ machine in which the Z axis moves 1/3 of the distance of the X axis for the same motor movement, use M667 S2 Z3. The default scaling factor after power up is 1.0 for all axes. | ||
- | |||
- | To change the motor directions, see the M569 command. | ||
- | |||
- | ==== M700: Level plate ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{partial|bq}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | < | ||
- | |||
- | Example: M700 | ||
- | |||
- | Script to adjust the plate level. | ||
- | |||
- | ==== M701: Load filament ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{partial|bq}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | < | ||
- | |||
- | Example: M701 | ||
- | |||
- | ==== M702: Unload filament==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{partial|bq}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | < | ||
- | |||
- | Example: M702 | ||
- | |||
- | ==== M851: Set Z-Probe Offset ==== | ||
- | |||
- | {{firmware Support | marlin={{yes}} }} | ||
- | |||
- | Sets the Z-Probe Offset saved in the EEPROM and this setting also works like M206 as well and this has priority over the z probe offset you set in marlin configuration.h setting | ||
- | |||
- | Example: M851 Z-4 | ||
- | |||
- | The example above will set the z-probe offset EEPROM setting to -4mm below the nozzle and enables the nozzle travel 4mm lower than the probe triggered position. It is however, a good idea to keep the setting inside your configuration.h as well for your own future reference. | ||
- | |||
- | This command appears on pronterface after marlin dev 1.1.0, it is unknown that this command can be used on marlin 1.0.0 | ||
- | |||
- | ==== M906: Set motor currents ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie=M907? | ||
- | |||
- | Example: M906 X300 Y500 Z200 E350 | ||
- | |||
- | Sets the currents to send to the stepper motors for each axis. The values are in milliamps. | ||
- | |||
- | The dc42 fork of RepRapFirmware supports an additional I parameter. This is the percentage of normal that the motor currents should be reduced to when the printer becomes idle but the motors have not been switched off. | ||
- | |||
- | ==== M907: Set digital trimpot motor ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | smoothie={{yes}} | repetier={{no}} | bfb={{no}} | machinekit={{no}} | redeem={{yes}} }} | ||
- | |||
- | Set digital trimpot motor current using axis codes (X, Y, Z, E, B, S). | ||
- | In [https:// | ||
- | |||
- | ==== M908: Control digital trimpot directly ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}}: | ||
- | |||
- | M908 P< | ||
- | |||
- | ==== M909: Set microstepping ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | redeem={{yes}} }} | ||
- | |||
- | Example: M909 X3 Y5 Z2 E3 | ||
- | |||
- | Set the microstepping value for each of the steppers. | ||
- | In [[Redeem]] this is implemented as 2^value, so <br> | ||
- | M909 X2 sets microstepping on X-axis to 2^2 = 4, <BR> | ||
- | M909 Y3 sets microstepping on Y-axis to 2^3 = 8 etc. | ||
- | |||
- | ==== M910: Set decay mode ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | redeem={{yes}} }} | ||
- | |||
- | Example: M910 X3 Y5 Z2 E3 | ||
- | |||
- | Set the decay mode for each stepper controller | ||
- | The decay mode controls how the current is reduced and recycled by the H-bridge in the stepper motor controller. | ||
- | It varies how the implementations are done in silicone between controllers. Typically you have an on phase where the current flows in the | ||
- | target current, then an off phase where the current is reversed and then a slow decay phase where the current is recycled. | ||
- | |||
- | ==== M928: Start SD logging ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Example: M928 filename.g | ||
- | |||
- | Ended by M29. | ||
- | |||
- | ==== M998: Request resend of line ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{no}} | repetier={{no}} | smoothie={{no}} | bfb={{no}} | machinekit={{no}} | reprapfirmware={{yes}} }} | ||
- | |||
- | Example: M998 P34 | ||
- | |||
- | Request a resend of line 34. In some implementations the input-handling code overwrites the incoming G Code with this when it detects, for example, a checksum error. | ||
- | Then it leaves it up to the GCode interpreter actually to request the resend. | ||
- | |||
- | ==== M999: Redémarrez après avoir été arrêté par erreur ==== | ||
- | |||
- | {{firmware Support | fived={{no}} | teacup={{no}} | sprinter={{no}} | marlin={{yes}} | repetier={{no}} | smoothie={{yes}} | reprapfirmware={{yes}} | bfb={{no}} | machinekit={{no}} }} | ||
- | |||
- | Exemple: M999 | ||
- | |||
- | Redémarre le firmware apres une erreur. | ||
- | |||
- | == Other commands == | ||
- | |||
- | ==== G: List all G-codes ==== | ||
- | |||
- | {{firmware Support | reprapfirmware={{no}} }} | ||
- | |||
- | Example: G | ||
- | |||
- | This lists all implemeted G-codes in the firmware with description and sends it back to the host.< | ||
- | (Note: this has been implemented in [[Redeem]], and so is only a proposition) | ||
- | |||
- | ==== M: List all M-codes ==== | ||
- | |||
- | {{firmware Support | }} | ||
- | |||
- | Example: M | ||
- | |||
- | This lists all implemeted M-codes in the firmware with description and sends it back to the host.< | ||
- | (Note: this has been implemented in [[Redeem]], and so is only a proposition) | ||
- | |||
- | ==== T: Select Tool ==== | ||
- | |||
- | {{firmware Support | fived={{yes}} | teacup={{yes}} | sprinter={{no}} | marlin={{yes}} | repetier={{yes}} | smoothie={{yes}} | reprapfirmware={{yes}} }} | ||
- | |||
- | Example: T1 | ||
- | |||
- | Select tool (or in older implementations extruder) number 1 to build with. | ||
- | |||
- | The sequence followed is: | ||
- | |||
- | # Set the current tool to its standby temperatures specified by G10 (see above), | ||
- | # Set the new tool to its operating temperatures specified by G10 and wait for ''' | ||
- | # Apply any X, Y, Z offset for the new tool specified by G10, | ||
- | # Use the new tool. | ||
- | |||
- | Selecting a non-existent tool (100, say) just does Step 1. above. | ||
- | |||
- | Note that you may wish to move to a parking position '' | ||
- | |||
- | If the Z value changes in the offsets and the tool moves up, then the Z move is made before the X and Y moves. | ||
- | |||
- | Some implementations (e.g. RepRapFirmware) allow you to specify tool-change G Code macros. | ||
- | |||
- | # Actions to do with the old tool before it is released - macro name: ''' | ||
- | # (Old tool is released); | ||
- | # Actions to do with the new tool before it is selected - macro name: ''' | ||
- | # (New tool is selected); and | ||
- | # Actions to do with the new tool after it is selected - macro name: ''' | ||
- | |||
- | With such implementations there is no wait for temperature stabilisation. | ||
- | |||
- | After a reset tools will not start heating until they are selected. | ||
- | |||
- | Tool numbering may start at 0 or 1, depending on the implementation. | ||
- | |||
- | == Proposed EEPROM configuration codes == | ||
- | |||
- | BRIEFLY: | ||
- | |||
- | [[Marlin]] uses codes M500-M503 to manipulate EEPROM values. | ||
- | |||
- | [[Sprinter]] has implemented the following commands to manipulate EEPROM [https:// | ||
- | |||
- | [[Teacup]] uses codes M130-M136 to set, read, and save some parameters. | ||
- | |||
- | == Replies from the RepRap machine to the host computer == | ||
- | |||
- | All communication is in printable ASCII characters. | ||
- | to the host computer are terminated by a newline and look like this: | ||
- | | ||
- | ''' | ||
- | | ||
- | ''' | ||
- | | ||
- | ''' | ||
- | |||
- | ''' | ||
- | |||
- | '''< | ||
- | | ||
- | ''' | ||
- | |||
- | ''' | ||
- | |||
- | '''< | ||
- | shut down immediately after it has sent this message. | ||
- | |||
- | The ''' | ||
- | and the bed respectively, | ||
- | | ||
- | ''' | ||
- | sent in response to M114 and M117. | ||
- | |||
- | The RepRap machine may also send lines that look like this: | ||
- | |||
- | '''// | ||
- | |||
- | Such lines will always be preceded by '''//''' | ||
- | |||
- | On the latest version of Pronterface and soon Octoprint a special comment of the form: | ||
- | |||
- | '''// | ||
- | |||
- | is allowed to be sent from the firmware, the command can currently be pause, resume or disconnect which will execute those commands on the host. | ||
- | As this is also a comment other hosts will just ignore these commands. | ||
- | |||
- | The most common response is simply: | ||
- | |||
- | ''' | ||
- | |||
- | When the machine boots up it sends the string | ||
- | | ||
- | ''' | ||
- | | ||
- | once to the host before sending anything else. This should not be replaced or augmented | ||
- | by version numbers and the like. M115 (see above) requests those. | ||
- | |||
- | All this means that every line sent by RepRap to the host computer except the start line has a two-character prefix (one of ''' | ||
- | |||
- | |||
- | ''' | ||
- | |||
- | 1. Marlin 1.0.0 Gen6 Firmware does not follow the two character rule. ' | ||
- | Example Lines: | ||
- | * Error: Line Number is not current line + 1. Last Line: 7 | ||
- | * Resend: 8 | ||
- | * Writing to File: print.gco | ||
- | * Done saving file. | ||
- | * File opened: | ||
- | * File selected | ||
- | |||
- | When in the code base did this change take place and what other firmwares are affected? | ||
- | |||
- | 2. The dc42 fork of RepRapFirmware responds to some commands with a reply string in JSON format, terminated by a newline. This allows later firmware revisions to include additional information without confusing clients (e.g. PanelDue) that do not expect it, and to make responses self-describing so that the client will not be confused if responses are delayed or lost. The commands affected are: | ||
- | * M105 S2 | ||
- | * M105 S3 | ||
- | * M20 S2 | ||
- | * M36 | ||
- | * M408 | ||
- | |||
- | == Proposal for sending multiple lines of G-code == | ||
- | |||
- | So far, this is a proposal, open for discussion. | ||
- | |||
- | ==== Problem to solve ==== | ||
- | |||
- | When using Marlin firmware or emulating Marlin, each line of G-code sent from the host to the controller is answered with an ''' | ||
- | |||
- | For more details on this proposal, some suggested solutions and comments, please see [[GCODE_buffer_multiline_proposal]] | ||
- | |||
- | == Alternatives to G-code == | ||
- | : '' | ||
- | |||
- | Several people have suggested using STEP-NC or some other control language; | ||
- | or perhaps designing a completely new control language. | ||
- | |||
- | [[Category: | ||
- | [[Category: | ||
- | [[Category: | ||
/home/chanteri/www/fablab37110/data/attic/start/cnc/gcode/reprap.1728914838.txt.gz · Dernière modification : de gerardadmin