Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Too much fixes needed since PRO UI MPC menus #25232 #25251

Closed
1 task done
studiodyne opened this issue Jan 18, 2023 · 11 comments
Closed
1 task done

[BUG] Too much fixes needed since PRO UI MPC menus #25232 #25251

studiodyne opened this issue Jan 18, 2023 · 11 comments

Comments

@studiodyne
Copy link
Contributor

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

@thinkyhead
Impossible to compile because of the big commits PRO UI MPC menus
Preprocessor/Macro/class / members

You can use my TronxyV7 , try to compile and see where to fix

Thks

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

bf2.1

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Marlin.zip

@studiodyne studiodyne changed the title [BUG] Too much fixes needed since PRO UI MPC menus #25232 : Need finition/Not ready [BUG] Too much fixes needed since PRO UI MPC menus #25232 Jan 18, 2023
@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

none of the errors so far are related to code.

1066 | #error "FILAMENT_RUNOUT_SENSOR requires FIL_RUNOUT_PIN."
1274 | #error "SERVO1_PIN must be defined for your SWITCHING_NOZZLE."
1289 | #error "SERVO2_PIN must be defined for your SWITCHING_NOZZLE."
1759 | #error "SERVO0_PIN must be defined for your servo or BLTOUCH probe."
1808 | #error "BLTOUCH requires DEACTIVATE_SERVOS_AFTER_MOVE to be to disabled. Please update your Configuration.h file."

All of these are configuration issues

You haven't told marlin where you have all these things plugged in.

In total you have 11 missing pin defines

FIL_RUNOUT_PIN
SERVO0_PIN
SERVO1_PIN
SERVO2_PIN
FIL_RUNOUT2_PIN
RGB_LED_R_PIN
RGB_LED_G_PIN
RGB_LED_B_PIN
RGB_LED_W_PIN
COOLANT_MIST_PIN
COOLANT_FLOOD_PIN

@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

Your FILAMENT_RUNOUT_SCRIPT is massively wrong, causing large warning.

you have #define FILAMENT_RUNOUT_SCRIPT "M7/n G4 S2/n M9/n M125T"

Firstly you use \n for command separators not /n
T on is own is not a valid g-code
spaces are not needed

I suspect this is what you intended.

#define FILAMENT_RUNOUT_SCRIPT "M7\nG4S2\nM9\nM125T%c"

@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

Having PREVENT_COLD_EXTRUSION disabled is showing a bug, this was added in #25176

Marlin/src/gcode/lcd/M145.cpp: In static member function 'static void GcodeSuite::M145()':
Marlin/src/gcode/lcd/M145.cpp:50:72: error: 'class Temperature' has no member named 'extrude_min_temp'
   50 |         mat.hotend_temp = constrain(parser.value_int(), thermalManager.extrude_min_temp, thermalManager.hotend_max_target(0));

This code presumes extrude_min_temp exists

    #if HAS_HOTEND
      if (parser.seenval('H'))
        mat.hotend_temp = constrain(parser.value_int(), thermalManager.extrude_min_temp, thermalManager.hotend_max_target(0));
    #endif

But extrude_min_temp is only setup when PREVENT_COLD_EXTRUSION is defined

    #if ENABLED(PREVENT_COLD_EXTRUSION)
      static bool allow_cold_extrude;
      static celsius_t extrude_min_temp;

@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

Commit 6fe387b
replaced constants with mpc, but missed one in Marlin/src/lcd/menu/menu_advanced.cpp

causing

Marlin/src/lcd/menu/menu_advanced.cpp:380:76: error: 'hotend_info_t' {aka 'struct MPCHeaterInfo'} has no member named 'constants'
  380 |           MPC_t &mpc = thermalManager.temp_hotend[MenuItemBase::itemIndex].constants; \
      |                                                                            ^~~~~~~~~

simply rename constants to mpc

@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

PR created to fix the issues.

@ellensp ellensp closed this as completed Jan 19, 2023
@studiodyne
Copy link
Contributor Author

studiodyne commented Jan 19, 2023

Thank you very much , good job

Filament runout script explaination
"M7/n G4 S2/n M9/n M125T"

M7 ' connect to simcard board to send SMS with ' pause ' message + M8 to send ' STOP/END of successfull printing' sms message because 3g/4g/5g not available everywhere , it's why i prefer SMS to know if something happen
G4 to pause2 seconds before
Output state recover M9
M125 T ' go to pause ' , this is 'MY ' pause , the best than others , try it , look my PR ' not merged yet ' , the best pause ever lol

Simple !

I go to rebase my tronxyv7 firm and i will tell you if something wrong

@ellensp
Copy link
Contributor

ellensp commented Jan 19, 2023

/n is still wrong... it is meant to be \n ie a newline character

@studiodyne
Copy link
Contributor Author

studiodyne commented Jan 19, 2023

Yes , I go to fix this
Bltouch with switching nozzle is because you just use cfg + adv , but not all my firm , i have tweaked some authorisations
Servo pin ,runout pins , are defined in my pin cfg not in adv or cfg
Cold extrusion because tons of testing and no time to heat eternally for just a move test and

I really enjoy , the speed of your answer , the quality too
Are u human ? 😄

Please , can you take a look on my ' serious PR' , ' toolchange evolutions ' + ' M125T'
Really some serious features

@GMagician
Copy link
Contributor

M125 T ' go to pause '

Not so sure but T should be reserved to tool change in gcode and can't be used as parameter, more or less like G and M

@studiodyne
Copy link
Contributor Author

studiodyne commented Jan 19, 2023

Make corrections/fixing , and give it to the communauty for intensive testing
We need a serious pause , with available menus , to clean nozzle manually , to change nozzle , to park somewhere we can insert a wire in the nozzle , M125 T or any letter , is not a feature , it's simply the ' base ' pause , for a robotic machine that need human intervention anytime during a print. Now we all use the airbrush nozzle , that can be changed in one minute to avoid long cleaning or repetitive clogs , but we need to stop the machine and move carriage somewhere is possible without force to loose steps

Thanks for the ' \n' 😄 , pause testing if for tomorow , you just avoid me one or two hours of searching issues lolllllllllll
i had the same issue on the SDCARD script the last week lolll , I know this !

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants