paynterf
Posts: 18
Joined: Thu Dec 01, 2016 9:17 am

Flashforge M118 gcode in start code section

I have a FlashForge Creator Pro 2. I created a print file for a simple 20x20x10mm cube printed with a single extruder (T1), and saw the following in the 'start gcode' section on the scripts tab.

M118 X0 Y0 Z150 T0 T1
M140 S[bed0_temperature] T0 ; heat build platform
M104 S[extruder0_temperature]] T0 ; set right extruder temperature
M104 S[extruder1_temperature] T1 ; set left extruder temperature
M107 ; turn off cooling fan
G90 ; absolute coordinates
G28 ; home all axes
M132 X Y Z A B ; recall offsets
G1 Z50.000 F420 ; position build platform
G161 X Y F3300 ; home X and Y to minimum
M7 T0 ; stabilize build platform
M6 T0 ; stabilize right extruder
M6 T1 ; stabilize left extruder
M651 ; turn on chamber fan

I understand most of this, but not the first line - 'M118 X0 Y0 Z150 T0 T1'. There is little or no documentation for the M118, and what there is seems to indicate that M118 is used to send text to a display - clearly not how it is being used here.

When I use FlashPrint5 to print the same model, I see the same M118 command as the first line, but it appears to contain some approximation to the the model extents in mm, as shown below:

M118 X29.05 Y16.60 Z11.65 T1

I have also seen one other place where the M118 command was used with 'build_size_?' parameters, as follows:

M118 X {EVAL "[build_size_x]/2"} Y {EVAL "[build_size_y]/2"} Z {EVAL "[build_size_z]"} T0

Can anyone here point me to a definitive syntax description for this command?

TIA,

Frank
paynterf
Posts: 18
Joined: Thu Dec 01, 2016 9:17 am

Re: Flashforge M118 gcode in start code section

Another mystery with the S3D start code:

G90
M82
M127
M118 X29.05 Y16.60 Z11.65 T1
M140 S30 T0 ; heat build platform
M104 S210] T0 ; set right extruder temperature
M104 S210 T1 ; set left extruder temperature
M107 ; turn off cooling fan
G90 ; absolute coordinates
G28 ; home all axes
M132 X Y Z A B ; recall offsets
G1 Z50.000 F420 ; position build platform
G161 X Y F3300 ; home X and Y to minimum
M7 T0 ; stabilize build platform
M6 T0 ; stabilize right extruder
M6 T1 ; stabilize left extruder
M651 ; turn on chamber fan

The highlighted lines above (M127 & M107) appear to do the same thing - turn off the cooling fan. However, according to this linkhttps://uptimefab.com/2016/05/04/slic3r ... e-dreamer/, Flashforge printers don't understand M127 and therefore M107 should be used. If so, why are *both* in the startup section?

Any help would be appreciated

Frank

Return to “Troubleshooting and Bug Reports”