Page 1 of 1

Starting G-Code help?

Posted: Wed Sep 16, 2020 2:10 pm
by quad121
I wonder if anyone can advise.

I've been using Cura and recently have changed to Simplify3D.

my starting G-Code was
M190 S[first_layer_bed_temperature]
M109 S[first_layer_temperature]
START_PRINT

and the remaining G-Code is contained with in the Firmware File.

So, Can someone please help in to what the commands would be in Simplify3D? as when i use the above i get an error saying unable to parse.

Re: Starting G-Code help?

Posted: Thu Sep 17, 2020 4:25 pm
by gorf26
I set my layer temps with the Process, and not the start gcode
you can set different temp's for say layer 1 layer 2 for both bed and hotend
just go to edit process settings - temp..

hope this helps

Re: Starting G-Code help?

Posted: Thu Sep 17, 2020 4:43 pm
by parallyze
quad121 wrote: Wed Sep 16, 2020 2:10 pm M190 S[first_layer_bed_temperature]
M109 S[first_layer_temperature]
Cura and S3D do have different variable names for this, you might want to have a look at this post: viewtopic.php?f=8&t=1959

[extruder0_temperature]
[bed0_temperature]

are probably the ones you're looking for.

Re: Starting G-Code help?

Posted: Thu Sep 17, 2020 4:45 pm
by parallyze
gorf26 wrote: Thu Sep 17, 2020 4:25 pm I set my layer temps with the Process, and not the start gcode
you can set different temp's for say layer 1 layer 2 for both bed and hotend
just go to edit process settings - temp..
S3D will add the commands for heating to those temperatures. But when using a custom start script you
can use variables which will be replaced accordingly and S3D won't add those commands any longer.

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 4:24 am
by quad121
ImageMany thanks for your advise.

Would this be correct in this application?

M190 S[bed0_temperature] T1
M109 S[extruder0_temperature] T0
START_PRINT

The Primary Bed Ident. is T1, and Primary Extruder Ident. is T0

This is my G-Code in the Firmware:-

[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 60
default_parameter_EXTRUDER_TEMP: 190
gcode:
M204 P500.00 R1000.00 T500.00
M220 S100
M221 S100
G90
G29
SET_GCODE_OFFSET Z=-3.50
G28 Z0
G92 E0
G1 Z20 F3000
G1 X10.1 Y20 Z0.28 F5000.0
G1 X10.1 Y190.0 Z0.28 F1500.0 E15
G1 X10.4 Y190.0 Z0.28 F5000.0
G1 X10.4 Y20 Z0.28 F1500.0 E30
G92 E0
G1 Z2.0 F3000

[gcode_macro END_PRINT]
gcode:
G91
G1 E-2 F2700
G1 E-2 Z0.2 F2400
G1 X5 Y5 F3000
G1 Z10
G90
G1 X210 Y190
M106 S0
M104 S0
M140 S0
M84

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 7:23 am
by parallyze
Hi,
quad121 wrote: Fri Sep 18, 2020 4:24 am Would this be correct in this application?

M190 S[bed0_temperature] T1
M109 S[extruder0_temperature] T0
START_PRINT

The Primary Bed Ident. is T1, and Primary Extruder Ident. is T0
Sorry, but I can't tell you if that's correct. So far I don't even know what printer you're using and why you're adding
T0/T1 if your Cura startup script didn't include them...

If that's what your previous start script looked like:
my starting G-Code was

Code: Select all

M190 S[first_layer_bed_temperature]
M109 S[first_layer_temperature]
START_PRINT
...then why are you adding T0/T1 now?

Same goes for the start/end scripts (klipper macros?). Having G92 commands there which the slicer isn't aware of
might lead to unwanted behavior when creating the gcode. If it did work before, keep it and compare the created
gcode from cura and s3d.

Edit:
[first_layer_bed_temperature]
Are you sure this is from your cura profile? Actually it does look more like Slic3r/PE...

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 7:52 am
by quad121
Hi,
Sorry my mistake the [first_layer_bed_temperature]

Yes, this is being used on Klipper. and my printer is the Ender 5 pro

was taken from SuperSlicer

I added the T0 and T1, which I thought was needed to correspond to the T0 and T1 of the Extruder and Bed

In Cura I only had 'START_PRINT' Which worked, It waited till the bed and Extruder had heated to temp before starting. But if you only add this line in S3D it won't wait till temp and will go straight into bed levelling etc

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 7:58 am
by quad121
So because the bed is on T1 should I changed this line:

M190 S[bed0_temperature]

to

M190 S[bed1_temperature]

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 11:06 am
by parallyze
quad121 wrote: Fri Sep 18, 2020 7:52 am In Cura I only had 'START_PRINT' Which worked, It waited till the bed and Extruder had heated to temp before starting. But if you only add this line in S3D it won't wait till temp and will go straight into bed levelling etc
When there's no custom commands for heating Cura will insert them automatically. Easiest way to replicate the behavior would be
by having a look at the created gcode from Cura and trying to recreate it using S3D.
An example of what your S3D profile does create would be helpful, too. Not waiting for temperatures sounds like there's M140 inserted
instead of M190 for the bed and M104 instead of M109 for the extruder...

M190/M140 don't support the T parameter according to Marlin documentation.

Do you have "Wait for temperature controller to stabilize before beginning build" enabled on the Temperature tab for Extruder/Bed?

Re: Starting G-Code help?

Posted: Fri Sep 18, 2020 11:26 am
by quad121
Hi parallyze
Many thanks for your time and help, yes I have the ‘wait till temp stabalises’ ticked in the settings