PID adjust

Hello, I wish to adjust parameters PID of the nozzle… How does one make?

Thank you.

(I am french !)

From Repetier manual control, send :

M303 Sddd

ddd is the temperature (°C) where to adjust the PID parameters.

Wait a few minutes and optimized PID parameters will be displayed in the log window.

Savec those parameters in EPROM.

Thank you for your response…
But i have this message :
09:00:04.561 : PID Autotune failed! Temperature to high
09:00:04.561 : ok
But it is a good function !
Patrick Levesque

Good evening,
I decreased the tension and this time it calculates me a correct PID.
Thank you again for the information.
Patrick Levesque

Bonsoir,

(c’est un peu bête de se parler en rosbif entre français).

J’ai trouvé la commande pour le réglage automatique du PID dans le microcode du contrôleur, que l’on peut ouvrir avec Arduino.

Ci-joint le copié-collé des codes de commande (tout est en rosbif) :

Implemented Codes

  • G0 -> G1
  • G1 - Coordinated Movement X Y Z E
  • G4 - Dwell S or P
  • G20 - Units for G0/G1 are inches.
  • G21 - Units for G0/G1 are mm.
  • G28 - Home all axis or named axis.
  • G90 - Use absolute coordinates
  • G91 - Use relative coordinates
  • G92 - Set current position to cordinates given

RepRap M Codes

  • M104 - Set extruder target temp
  • M105 - Read current temp
  • M106 - Fan on
  • M107 - Fan off
  • M109 - Wait for extruder current temp to reach target temp.
  • M114 - Display current position

Custom M Codes

  • M80 - Turn on Power Supply
  • M20 - List SD card
  • M21 - Init SD card
  • M22 - Release SD card
  • M23 - Select SD file (M23 filename.g)
  • M24 - Start/resume SD print
  • M25 - Pause SD print
  • M26 - Set SD position in bytes (M26 S12345)
  • M27 - Report SD print status
  • M28 - Start SD write (M28 filename.g)
  • M29 - Stop SD write
  • M30 - Delete file on sd card
  • M32 create subdirectory
  • M42 P S<value 0…255> - Change output of pin P to S. Does not work on most important pins.
  • M80 - Turn on power supply
  • M81 - Turn off power supply
  • M82 - Set E codes absolute (default)
  • M83 - Set E codes relative while in Absolute Coordinates (G90) mode
  • M84 - Disable steppers until next move,
    or use S to specify an inactivity timeout, after which the steppers will be disabled. S0 to disable the timeout.
  • M85 - Set inactivity shutdown timer with parameter S. To disable set zero (default)
  • M92 - Set axis_steps_per_unit - same syntax as G92
  • M112 - Emergency kill
  • M115- Capabilities string
  • M117 - Write message in status row on lcd
  • M119 - Report endstop status
  • M140 - Set bed target temp
  • M190 - Wait for bed current temp to reach target temp.
  • M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
  • M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000)
  • M203 - Set temperture monitor to Sx
  • M204 - Set PID parameter X => Kp Y => Ki Z => Kd S Default is current extruder. NUM_EXTRUDER=Heated bed
  • M205 - Output EEPROM settings
  • M206 - Set EEPROM value
  • M220 S - Increase/decrease given feedrate
  • M221 S - Increase/decrease given flow rate
  • M231 S<OPS_MODE> X<Min_Distance> Y Z F - Set OPS parameter
  • M232 - Read and reset max. advance values
  • M233 X Y - Set temporary advance K-value to X and linear term advanceL to Y
  • M251 Measure Z steps from homing stop (Delta printers). S0 - Reset, S1 - Print, S2 - Store to Z length (also EEPROM if enabled)
  • M303 P<extruder/bed> S Autodetect pid values. Use P<NUM_EXTRUDER> for heated bed.
  • M350 S X Y Z E P : Set microstepping on RAMBO board
  • M400 - Wait until move buffers empty.
  • M401 - Store x, y and z position.
  • M402 - Go to stored position. If X, Y or Z is specified, only these coordinates are used. F changes feedrate fo rthat move.
  • M500 Store settings to EEPROM
  • M501 Load settings from EEPROM
  • M502 Reset settings to the one in configuration.h. Does not store values in EEPROM!
  • M908 P S : Set stepper current for digipot (RAMBO board)

Hi cormier,

please correct your list of codes, some are false. E.g. M204 does not edit PID settings, but rather set the default acceleration (see RepRap wiki).

Cheers,
kuraasu