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