Adding PETG to the pre-heat menu.

Post Reply
GAQ
Posts: 101
Joined: Mon Jan 08, 2018 9:10 pm
Location: Manchester UK
Contact:

Adding PETG to the pre-heat menu.

Post by GAQ » Sun Jun 09, 2019 10:22 am

Hi,

I use the pre-heat function quite a lot.
I print from the SD card and I find that if I pre-heat the nozzle and bed, I can give them a while to settle down.
This also allows the bed some time to heat more uniformly.

I print with PETG and I'd like to add this material to the menu list.

Now I've looked at the configuration.h file and find a reference to this, and I've also found a reference in the Configuration_adv.h file.

Is adding PETG to the menu as simple as making the changes below - or is there another file to be changed ?
Or indeed can I not do this at all ?

Found in the Configuration.h file

Existing is...

Code: Select all

// @section temperature

// Preheat Constants
#define PREHEAT_1_TEMP_HOTEND 180
#define PREHEAT_1_TEMP_BED     70
#define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255

#define PREHEAT_2_TEMP_HOTEND 225
#define PREHEAT_2_TEMP_BED    90
#define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255

/**
Can I simply change this to...

Code: Select all

// @section temperature

// Preheat Constants
#define PREHEAT_1_TEMP_HOTEND 180
#define PREHEAT_1_TEMP_BED     70
#define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255

#define PREHEAT_2_TEMP_HOTEND 225
#define PREHEAT_2_TEMP_BED    90
#define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255

#define PREHEAT_3_TEMP_HOTEND 245
#define PREHEAT_3_TEMP_BED    75
#define PREHEAT_3_FAN_SPEED     0 // Value from 0 to 255

/**

Found in the Configuration_adv.h file

Existing is...

Code: Select all

//#define CUSTOM_USER_MENUS
#if ENABLED(CUSTOM_USER_MENUS)
  #define USER_SCRIPT_DONE "M117 User Script Done"
  #define USER_SCRIPT_AUDIBLE_FEEDBACK
  //#define USER_SCRIPT_RETURN  // Return to status screen after a script

  #define USER_DESC_1 "Home & UBL Info"
  #define USER_GCODE_1 "G28\nG29 W"

  #define USER_DESC_2 "Preheat for PLA"
  #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)

  #define USER_DESC_3 "Preheat for ABS"
  #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)

  #define USER_DESC_4 "Heat Bed/Home/Level"
  #define USER_GCODE_4 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"

  #define USER_DESC_5 "Home & Info"
  #define USER_GCODE_5 "G28\nM503"
#endif

Can I just change this to...

Code: Select all

//#define CUSTOM_USER_MENUS
#if ENABLED(CUSTOM_USER_MENUS)
  #define USER_SCRIPT_DONE "M117 User Script Done"
  #define USER_SCRIPT_AUDIBLE_FEEDBACK
  //#define USER_SCRIPT_RETURN  // Return to status screen after a script

  #define USER_DESC_1 "Home & UBL Info"
  #define USER_GCODE_1 "G28\nG29 W"

  #define USER_DESC_2 "Preheat for PLA"
  #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)

  #define USER_DESC_3 "Preheat for ABS"
  #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)

  #define USER_DESC_4 "Preheat for PETG"
  #define USER_GCODE_4 "M140 S" STRINGIFY(PREHEAT_3_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_3_TEMP_HOTEND)

  #define USER_DESC_5 "Heat Bed/Home/Level"
  #define USER_GCODE_5 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"

  #define USER_DESC_6 "Home & Info"
  #define USER_GCODE_6 "G28\nM503"
#endif
Or will I mess something else up ?

Any suggestions ?

Gerry

GAQ
Posts: 101
Joined: Mon Jan 08, 2018 9:10 pm
Location: Manchester UK
Contact:

Re: Adding PETG to the pre-heat menu.

Post by GAQ » Sun Jun 09, 2019 11:12 am

Many thanks vert

I did wonder if I'd be limited to just two settings in the menu.

I can live with just changing the 'Preheat ABS' into 'Preheat PETG' as I will very rarely use ABS.
I'll just have the two options then with the correct preheat temperatures and labels.

Gerry

GAQ
Posts: 101
Joined: Mon Jan 08, 2018 9:10 pm
Location: Manchester UK
Contact:

Re: Adding PETG to the pre-heat menu.

Post by GAQ » Sun Jun 09, 2019 8:32 pm

Hi Vert,

So I'm a little of the way there...

I changed the Configuration_adv.h file and it now reads...

Code: Select all

#define USER_DESC_3 "Preheat for PETG"
  #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
- All I've done is changed the name of 'ABS' to 'PETG' ...


I changed the Configuration.h file to read...

Code: Select all

#define PREHEAT_2_TEMP_HOTEND 245
#define PREHEAT_2_TEMP_BED    75
#define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255

- I've just changed the temperatures...

Now when I go to the menu system, under 'Prepare' - I still get the ABS choices listed...
No mention of PETG at all
However, I do note that the Temperatures are now the ones I want for PETG !

Hence, I think another file is controlling the menu list, but it still uses the variables PREHEAT_2_TEMP_HOTEND and PREHEAT_2_TEMP_BED such that the pre-set temperatures have moved during the update...

I suppose I can live with this !

Gerry

GAQ
Posts: 101
Joined: Mon Jan 08, 2018 9:10 pm
Location: Manchester UK
Contact:

Re: Adding PETG to the pre-heat menu.

Post by GAQ » Wed Jun 12, 2019 7:25 pm

Many thanks Vert !

I noted that my version of 'Custom Commands' was in fact commented out with the " // " at the start...
I've now changed this in line with your posted version.
I see that I do indeed have the power to have 5 commands that I can customise at will, I didn't know this facility existed !
I now have my 5 set up - to 'Home, Level and set the three Bed & Nozzle Material Temperatures all correctly labelled.
Many thanks once again.

Just one quick question... How come I've not seen this facility documented anywhere ? - It's pretty useful.

Gerry

Post Reply