Simplify3d not starting heated bed

#1
I just got a heated bed for the gMax 2. I can get it to work from the control panel but cannot get Simplify3d to start it with the GCODE. I have set it up in Simplify3d the way the instructions say (see below). I have also add GCODE to my End Script to turn it off, just like the instructions say (see below). However, whenever I slice an STL and send it to the printer, it does not turn on the heated bed and I have to turn it on manually from the printer. Any ideas?
1597178077098.png
1597178154713.png
 
#3
I sorted it out. My starting script looks like this now:

Code:
M140 S{material_bed_temperature_layer_0} ; start bed heating up
G28 ; Home all
M190 R{material_bed_temperature_layer_0} ; wait for bed to reach printing temp
G29 ; run auto bed leveling routine
M500 ;
M201 X500 Y500; Set X and Y acceleration values
M204 S500; Set default acceleration
G1 Z15 F5000; Raise nozzle
M107 ; Turn off fan
M104 S[extruder0_temperature] T0
M104 S[extruder1_temperature] T1
M109 S[extruder0_temperature] T0
M109 S[extruder1_temperature] T1