-
Notifications
You must be signed in to change notification settings - Fork 2k
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
G-Code generated starts not with "Start G-Code" inputbox, M80 command Marlin not working /not supported #5345
Comments
Why? What is going wrong? What does M80? |
M80: Turn power supply [PSU] on
For users who would like to turn the PSU at the beginning of the printing and then turn it off when the print is done, Prusaslicer can not do the job.
It has nothing to do with a Ender 3 or a Ender 5.
Please help your users to save energy! |
Also you would have to place the print bed and preheat commands into your
custom G-code.
I am not sure however that all the G-code will disappear from before the
custom start G-code. Fan off may be still left.
I still wonder what is your hardware configuration: What does this power
off G-code do? Who interprets it? How is your hardware powered? Marlin
board powered from different power supply than the rest of the printer?
út 1. 12. 2020 v 10:57 odesílatel rtyr <notifications@github.com> napsal:
… It should be doable in 2.3.0-beta.
Try this:
M80 ; power on
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
G28 ; home all axes
; ENABLE_LEVELING_FADE_HEIGHT
M420 Z3
M201 X500 Y500 Z100 E5000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z10 E50 ; sets maximum feedrates, mm/sec
....
....
As for the machine limits (M20X commands) you have more options.
[image: noemit]
<https://user-images.githubusercontent.com/36745189/100722964-7e8ff380-33c1-11eb-99c3-17bca64201f2.jpg>
Emit to G-code - M20X commands will be placed to the beginning of the
gcode (before M80)
Use for time estimate - probably the best option in this case. PS will
not emit any M20X commands to the gcode (but the values will be used for
time estimate). You can add those commands manually to your start g-code
(if needed).
Ignore - Machine limits are ignored (time estimate may not be accurate)
https://github.com/prusa3d/PrusaSlicer/releases
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMPSI7PXWZUVZBC5RZTZLDSSS4Y5ANCNFSM4UH6QHRQ>
.
|
Unfortunately no, see below. `; generated by PrusaSlicer 2.2.0+win64 on 2020-12-01 at 11:22:47 UTC ; ; external perimeters extrusion width = 0.45mm M73 P0 R15
How can I upgrade without losing all my 2.2 configurations?
My hardware is what I hope all future 3D Printer will/should have. The controller board is powered by a 5V source independent by the main big 12V-24V PSU (for the heaters/stepper you name it). This can be done easily for example by any raspberry (octoprint host) USB 5V cable connected to the printer board, so nothing NASA complicated. I can send gcode to the board WITHOUT the main PSU on. In Marlin you can configure that at startup with The big PSU 12V/24V can be turned off and on by Marlin with M80/M81, 5V it always present (raspi always on). Normally you do not need any 12V/24V if you are not printing (fan noise and energy reduction), this is the magic behind everything. How you get the main PSU responding to M80/M81 is a little challenging, normally the solution is to connect a relay controlled by the board in series to the PSU mains. Tons of how to in internet. In my particular case I have a SKR mini E3 V3 connected with a The BIGTREETECH managers in their immense wisdom have dropped the M80 support in the new relay board V1.2 (V1.0 could do that.... ), so I had to hack it. DO NOT THINK I AM A SINGLE PARTICULAR HACKER WITH A VERY SPECIFIC NEED! If you are asking me so much about M80/M81 and by looking at your PrusaSlicer I assume the Prusa printers do not support a M80/M81, please give a call to the rnd guys and let them do thier magic for future models. Remote PSU Contol
|
True I wanted just to see where the |
You can see the placeholders in my example start g-code....so the temperatures will be automatically translated into the g-code of course. So no difference from previous behavior, it will use temperatures from your filament profiles. |
Ahhh okay sorry I interpreted those BTW: How funny is this . I suggest to implement two checkboxes for the PSU control. Easy. |
Yeah this change is causing me issues as well, I use a custom preheat macro (klipper), which soaks the bed based off the current bed temp->target bed temp, this no longer works as the bed is already at the set temperature by the time Start G-code is called. Cheers |
Adding
To custom gcode works, but this is going to trip up a few people, I assume previously it just looked for the variables being used in the custom gcode.. |
I have this problem as well, I am using klipper and my start gcode looks like this: Let us decide what gcode gets included, please.... |
apparently it was sorted out in SuperSlicer with 'klipper' as additional gcode flavor supermerill#232 |
So in general, this issue is about the same thing as #2420. Closing this one as a duplicate. |
Sorry for pushing this again. Even if the flavour is set to Klipper the filament Gcode nevertheless auto generates temperature gcodes to the file. How to disable this? This behavior is kind of irritating
|
Version
2.20
Operating system type + version
Win 10
3D printer brand / version + firmware version (if known)
Creality Ender 5
Behavior
Set a Start G-Code
Gcode generated:
`; generated by PrusaSlicer 2.2.0+win64 on 2020-11-30 at 18:25:21 UTC
;
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.40mm
; first layer extrusion width = 0.70mm
;FIRST LINE START G-CODE
M80 ; power on
G28 ; home all axes
; ENABLE_LEVELING_FADE_HEIGHT
M420 Z3
.....
M73 P0 R57
M73 Q0 S68
M201 X500 Y500 Z100 E5000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z10 E50 ; sets maximum feedrates, mm/sec
M204 P500 R1000 T500 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2
M205 X8.00 Y8.00 Z0.30 E5.00 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
M107
M190 S75 ; set bed temperature and wait for it to be reached
M104 S215 ; set temperature
Gcode generated:
`; generated by PrusaSlicer 2.2.0+win64 on 2020-11-30 at 18:25:21 UTC
;
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.40mm
; first layer extrusion width = 0.70mm
M73 P0 R57
M73 Q0 S68
M201 X500 Y500 Z100 E5000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z10 E50 ; sets maximum feedrates, mm/sec
M204 P500 R1000 T500 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2
M205 X8.00 Y8.00 Z0.30 E5.00 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
M107
M190 S75 ; set bed temperature and wait for it to be reached
M104 S215 ; set temperature
;FIRST LINE START G-CODE
M80 ; power on
G28 ; home all axes
; ENABLE_LEVELING_FADE_HEIGHT
M420 Z3
...
As you can see in the PrusaSlicer generated G-CODE , the "Start G-Code" block is not the first, even a M190 and a M104 are placed before the
;FIRST LINE START G-CODE
so in my case the printer quit the printing job and goes in error state.My understanding of the input box "Start G-Code" to be placed before everything.
As a stop gap solution you should add a checkbox in general printer setting for M80/M81 support.
Thanks.
The text was updated successfully, but these errors were encountered: