{
	"type": "machine",
	"name": "Bambu Lab X1 Carbon 0.8 nozzle",
	"inherits": "Bambu Lab X1 Carbon 0.4 nozzle",
	"from": "system",
	"setting_id": "GM004",
	"instantiation": "true",
	"nozzle_diameter": [
		"0.8"
	],
	"printer_model": "Bambu Lab X1 Carbon",
	"printer_variant": "0.8",
	"default_filament_profile": [
		"Bambu PLA Basic @BBL X1C 0.8 nozzle"
	],
	"default_print_profile": "0.40mm Standard @BBL X1C 0.8 nozzle",
	"max_layer_height": [
		"0.56"
	],
	"min_layer_height": [
		"0.16"
	],
	"retract_length_toolchange": [
		"3",
		"3"
	],
	"retraction_length": [
		"3",
		"3"
	],
	"upward_compatible_machine": [
		"Bambu Lab P1S 0.8 nozzle",
		"Bambu Lab P1P 0.8 nozzle",
		"Bambu Lab X1 0.8 nozzle",
		"Bambu Lab X1E 0.8 nozzle",
		"Bambu Lab A1 0.8 nozzle",
		"Bambu Lab H2D 0.8 nozzle",
		"Bambu Lab H2D Pro 0.8 nozzle",
		"Bambu Lab H2S 0.8 nozzle",
		"Bambu Lab P2S 0.8 nozzle"
	],
	"machine_start_gcode": ";===== machine: X1-0.8 ====================\n;===== date: 20250909 ==================\n;===== start printer sound ================\nM17\nM400 S1\nM1006 S1\nM1006 A0 B10 L100 C37 D10 M60 E37 F10 N60\nM1006 A0 B10 L100 C41 D10 M60 E41 F10 N60\nM1006 A0 B10 L100 C44 D10 M60 E44 F10 N60\nM1006 A0 B10 L100 C0 D10 M60 E0 F10 N60\nM1006 A46 B10 L100 C43 D10 M70 E39 F10 N100\nM1006 A0 B10 L100 C0 D10 M60 E0 F10 N100\nM1006 A43 B10 L100 C0 D10 M60 E39 F10 N100\nM1006 A0 B10 L100 C0 D10 M60 E0 F10 N100\nM1006 A41 B10 L100 C0 D10 M100 E41 F10 N100\nM1006 A44 B10 L100 C0 D10 M100 E44 F10 N100\nM1006 A49 B10 L100 C0 D10 M100 E49 F10 N100\nM1006 A0 B10 L100 C0 D10 M100 E0 F10 N100\nM1006 A48 B10 L100 C44 D10 M60 E39 F10 N100\nM1006 A0 B10 L100 C0 D10 M60 E0 F10 N100\nM1006 A44 B10 L100 C0 D10 M90 E39 F10 N100\nM1006 A0 B10 L100 C0 D10 M60 E0 F10 N100\nM1006 A46 B10 L100 C43 D10 M60 E39 F10 N100\nM1006 W\n;===== turn on the HB fan =================\nM104 S75 ;set extruder temp to turn on the HB fan and prevent filament oozing from nozzle\n;===== reset machine status =================\nM290 X40 Y40 Z2.6666666\nG91\nM17 Z0.4 ; lower the z-motor current\nG380 S2 Z30 F300 ; G380 is same as G38; lower the hotbed , to prevent the nozzle is below the hotbed\nG380 S2 Z-25 F300 ;\nG1 Z5 F300;\nG90\nM17 X1.2 Y1.2 Z0.75 ; reset motor current to default\nM960 S5 P1 ; turn on logo lamp\nG90\nM220 S100 ;Reset Feedrate\nM221 S100 ;Reset Flowrate\nM73.2   R1.0 ;Reset left time magnitude\nM1002 set_gcode_claim_speed_level : 5\nM221 X0 Y0 Z0 ; turn off soft endstop to prevent protential logic problem\nG29.1 Z{0.0} ; clear z-trim value first\nM204 S10000 ; init ACC set to 10m/s^2\n\n;===== heatbed preheat ====================\nM1002 gcode_claim_action : 2\nM140 S[bed_temperature_initial_layer_single] ;set bed temp\nM190 S[bed_temperature_initial_layer_single] ;wait for bed temp\n\n{if scan_first_layer}\n;=========register first layer scan=====\nM977 S1 P60\n{endif}\n\n;=============turn on fans to prevent PLA jamming=================\n{if filament_type[initial_no_support_extruder]==\"PLA\"}\n    {if (bed_temperature[initial_no_support_extruder] >45)||(bed_temperature_initial_layer[initial_no_support_extruder] >45)}\n    M106 P3 S180\n    {endif};Prevent PLA from jamming\n    M142 P1 R35 S40\n{endif}\nM106 P2 S100 ; turn on big fan ,to cool down toolhead\n\n;===== prepare print temperature and material ==========\nM104 S[nozzle_temperature_initial_layer] ;set extruder temp\nG91\nG0 Z10 F1200\nG90\nG28 X\nM975 S1 ; turn on\nG1 X60 F12000\nG1 Y245\nG1 Y265 F3000\nM620 M\nM620 S[initial_no_support_extruder]A   ; switch material if AMS exist\n    M109 S[nozzle_temperature_initial_layer]\n    G1 X120 F12000\n\n    G1 X20 Y50 F12000\n    G1 Y-3\n    T[initial_no_support_extruder]\n    G1 X54 F12000\n    G1 Y265\n    M400\nM621 S[initial_no_support_extruder]A\nM620.1 E F{flush_volumetric_speeds[initial_no_support_extruder]/2.4053*60} T{flush_temperatures[initial_no_support_extruder]}\n\n\nM412 S1 ; ===turn on filament runout detection===\n\nM109 S250 ;set nozzle to common flush temp\nM106 P1 S0\nG92 E0\nG1 E50 F200\nM400\nM104 S[nozzle_temperature_initial_layer]\nG92 E0\nG1 E50 F200\nM400\nM106 P1 S255\nG92 E0\nG1 E5 F300\nM109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-20} ; drop nozzle temp, make filament shink a bit\nG92 E0\nG1 E-0.5 F300\n\nG1 X70 F9000\nG1 X76 F15000\nG1 X65 F15000\nG1 X76 F15000\nG1 X65 F15000; shake to put down garbage\nG1 X80 F6000\nG1 X95 F15000\nG1 X80 F15000\nG1 X165 F15000; wipe and shake\nM400\nM106 P1 S0\n;===== prepare print temperature and material end =====\n\n\n;===== wipe nozzle ===============================\nM1002 gcode_claim_action : 14\nM975 S1\nM106 S255\nG1 X65 Y230 F18000\nG1 Y264 F6000\nM109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-20}\nG1 X100 F18000 ; first wipe mouth\n\nG0 X135 Y253 F20000  ; move to exposed steel surface edge\nG28 Z P0 T300; home z with low precision,permit 300deg temperature\nG29.2 S0 ; turn off ABL\nG0 Z5 F20000\n\nG1 X60 Y265\nG92 E0\nG1 E-0.5 F300 ; retrack more\nG1 X100 F5000; second wipe mouth\nG1 X70 F15000\nG1 X100 F5000\nG1 X70 F15000\nG1 X100 F5000\nG1 X70 F15000\nG1 X100 F5000\nG1 X70 F15000\nG1 X90 F5000\nG0 X128 Y261 Z-1.5 F20000  ; move to exposed steel surface and stop the nozzle\nM104 S140 ; set temp down to heatbed acceptable\nM106 S255 ; turn on fan (G28 has turn off fan)\n\nM221 S; push soft endstop status\nM221 Z0 ;turn off Z axis endstop\nG0 Z0.5 F20000\nG0 X125 Y259.5 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y262.5\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y260.0\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y262.0\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y260.5\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y261.5\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 Z0.5 F20000\nG0 X125 Y261.0\nG0 Z-1.01\nG0 X131 F211\nG0 X124\nG0 X128\nG2 I0.5 J0 F300\nG2 I0.5 J0 F300\nG2 I0.5 J0 F300\nG2 I0.5 J0 F300\n\nM109 S140 ; wait nozzle temp down to heatbed acceptable\nG2 I0.5 J0 F3000\nG2 I0.5 J0 F3000\nG2 I0.5 J0 F3000\nG2 I0.5 J0 F3000\n\nM221 R; pop softend status\nG1 Z10 F1200\nM400\nG1 Z10\nG1 F30000\nG1 X128 Y128\nG29.2 S1 ; turn on ABL\n;G28 ; home again after hard wipe mouth\nM106 S0 ; turn off fan , too noisy\n;===== wipe nozzle end ================================\n\n;===== check scanner clarity ===========================\nG1 X128 Y128 F24000\nG28 Z P0\nM972 S5 P0\nG1 X230 Y15 F24000\n;===== check scanner clarity end =======================\n\n;===== bed leveling ==================================\nM1002 judge_flag g29_before_print_flag\nM622 J1\n\n    M1002 gcode_claim_action : 1\n    G29 A X{first_layer_print_min[0]} Y{first_layer_print_min[1]} I{first_layer_print_size[0]} J{first_layer_print_size[1]}\n    M400\n    M500 ; save cali data\n\nM623\n;===== bed leveling end ================================\n\n;===== home after wipe mouth============================\nM1002 judge_flag g29_before_print_flag\nM622 J0\n\n    M1002 gcode_claim_action : 13\n    G28\n\nM623\n;===== home after wipe mouth end =======================\n\nM975 S1 ; turn on vibration supression\n\n;=============turn on fans to prevent PLA jamming=================\n{if filament_type[initial_no_support_extruder]==\"PLA\"}\n    {if (bed_temperature[initial_no_support_extruder] >45)||(bed_temperature_initial_layer[initial_no_support_extruder] >45)}\n    M106 P3 S180\n    {endif};Prevent PLA from jamming\n    M142 P1 R35 S40\n{endif}\nM106 P2 S100 ; turn on big fan ,to cool down toolhead\n\nM104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]} ; set extrude temp earlier, to reduce wait time\n\n;===== mech mode fast check============================\nG1 X128 Y128 Z10 F20000\nM400 P200\nM970.3 Q1 A7 B30 C80  H15 K0\nM974 Q1 S2 P0\n\nG1 X128 Y128 Z10 F20000\nM400 P200\nM970.3 Q0 A7 B30 C90 Q0 H15 K0\nM974 Q0 S2 P0\n\nM975 S1\nG1 F30000\nG1 X230 Y15\nG28 X ; re-home XY\n;===== mech mode fast check============================\n\n{if scan_first_layer}\n;start heatbed  scan====================================\nM976 S2 P1\nG90\nG1 X128 Y128 F20000\nM976 S3 P2  ;register void printing detection\n{endif}\n\n;===== nozzle load line ===============================\nM975 S1\nG90\nM83\nT1000\nG1 X18.0 Y0.5 Z0.8 F18000;Move to start position\nM109 S{nozzle_temperature[initial_no_support_extruder]}\nG1 Z0.2\nG0 E2 F300\nG0 X129 E15 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\nG0 X240 E15\nG0 Y11 E1.364 F{outer_wall_volumetric_speed/(0.3*1.0)/ 4 * 60}\nG0 X239.5\nG0 E0.3\nG0 Y1.5 E1.300\nG0 X231 E1.160 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}\nM400\n\n;===== for Textured PEI Plate , lower the nozzle as the nozzle was touching topmost of the texture when homing ==\n;curr_bed_type={curr_bed_type}\n{if curr_bed_type==\"Textured PEI Plate\"}\nG29.1 Z{-0.04} ; for Textured PEI Plate\n{endif}\n\n;===== draw extrinsic para cali paint =================\nM1002 judge_flag extrude_cali_flag\nM622 J1\n\n    M1002 gcode_claim_action : 8\n\n    G0 F1200.0 X231 Y12 Z0.2 E1.154\n    G0 F1200.0 X226 Y12 Z0.2 E0.550\n    G0 F1200.0 X226 Y1.5 Z0.2 E1.154\n    G0 F1200.0 X220 Y1.5 Z0.2 E0.660\n    G0 F1200.0 X220 Y8 Z0.2 E0.716\n    G0 F1200.0 X210 Y8 Z0.2 E1.098\n    G0 F1200.0 X210 Y1.5 Z0.2 E0.714\n\n    G0 X48.0 E24.107 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}\n    G0 X48.0 Y12 E1.420 F1200.0\n    G0 X45.0 E0.404 F1200.0\n    G0 X35.0 Y6.0 E1.580 F1200.0\n\n    ;=========== extruder cali extrusion ==================\n    T1000\n    M83\n    {if default_acceleration > 0}\n        {if outer_wall_acceleration > 0}\n            M204 S[outer_wall_acceleration]\n        {else}\n            M204 S[default_acceleration]\n        {endif}\n    {endif}\n    G0 X35.000 Y6.000 Z0.300 F30000 E0\n    G1 F1500.000 E0.800\n    M106 S0 ; turn off fan\n    G0 X110.000 E9.35441 F4800\n    G0 X185.000 E9.35441 F4800\n    G0 X187 Z0\n    G1 F1500.000 E-0.800\n    G0 Z1\n    G0 X180 Z0.3 F18000\n\n    M900 L1000.0 M1.0\n    M900 K0.020\n    G0 X45.000 F30000\n    G0 Y8.000 F30000\n    G1 F1500.000 E0.800\n    G1 X65.000  E2.4945 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X70.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X75.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X80.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X85.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X90.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X95.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X100.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X105.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X110.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X115.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X120.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X125.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X130.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X135.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X140.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X145.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X150.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X155.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X160.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X165.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X170.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X175.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X180.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 F1500.000 E-0.800\n    G1 X183 Z0.15 F30000\n    G1 X185\n    G1 Z1.0\n    G0 Y6.000 F30000 ; move y to clear pos\n    G1 Z0.3\n    M400\n\n    G0 X45.000 F30000\n    M900 K0.010\n    G0 X45.000 F30000\n    G0 Y10.000 F30000\n    G1 F1500.000 E0.800\n    G1 X65.000  E2.4945 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X70.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X75.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X80.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X85.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X90.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X95.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X100.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X105.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X110.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X115.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X120.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X125.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X130.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X135.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X140.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X145.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X150.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X155.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X160.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X165.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X170.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X175.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X180.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 F1500.000 E-0.800\n    G1 X183 Z0.15 F30000\n    G1 X185\n    G1 Z1.0\n    G0 Y6.000 F30000 ; move y to clear pos\n    G1 Z0.3\n    M400\n\n    G0 X45.000 F30000\n    M900 K0.000\n    G0 X45.000 F30000\n    G0 Y12.000 F30000\n    G1 F1500.000 E0.800\n    G1 X65.000  E2.4945 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X70.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X75.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X80.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X85.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X90.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X95.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X100.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X105.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X110.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X115.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X120.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X125.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X130.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X135.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X140.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X145.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X150.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X155.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X160.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X165.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X170.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X175.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X180.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 F1500.000 E-0.800\n    G1 X183 Z0.15 F30000\n    G1 X185\n    G1 Z1.0\n    G0 Y6.000 F30000 ; move y to clear pos\n    G1 Z0.3\n\n    G0 X45.000 F30000 ; move to start point\n\nM623 ; end of \"draw extrinsic para cali paint\"\n\nM1002 judge_flag extrude_cali_flag\nM622 J0\n    G0 X231 Y1.5 F30000\n    G0 X129 E14 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G0 X18 E15 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}\nM623\n\nM104 S140\n\n\n;=========== laser and rgb calibration ===========\nM400\nM18 E\nM500 R\n\nM973 S3 P14\n\nG1 X120 Y1.0 Z0.3 F18000.0;Move to first extrude line pos\nT1100\nG1 X235.0 Y1.0 Z0.3 F18000.0;Move to first extrude line pos\nM400 P100\nM960 S1 P1\nM400 P100\nM973 S6 P0; use auto exposure for horizontal laser by xcam\nM960 S0 P0\n\nG1 X240.0 Y6.0 Z0.3 F18000.0;Move to vertical extrude line pos\nM960 S2 P1\nM400 P100\nM973 S6 P1; use auto exposure for vertical laser by xcam\nM960 S0 P0\n\n;=========== handeye calibration ======================\nM1002 judge_flag extrude_cali_flag\nM622 J1\n\n    M973 S3 P1 ; camera start stream\n    M400 P500\n    M973 S1\n    G0 F6000 X228.500 Y4.750 Z0.000\n    M960 S0 P1\n    M973 S1\n    M400 P800\n    M971 S6 P0\n    M973 S2 P0\n    M400 P500\n    G0 Z0.000 F12000\n    M960 S0 P0\n    M960 S1 P1\n    G0 X215.00 Y4.750\n    M400 P200\n    M971 S5 P1\n    M973 S2 P1\n    M400 P500\n    M960 S0 P0\n    M960 S2 P1\n    G0 X228.5 Y6.75\n    M400 P200\n    M971 S5 P3\n    G0 Z0.500 F12000\n    M960 S0 P0\n    M960 S2 P1\n    G0 X228.5 Y6.75\n    M400 P200\n    M971 S5 P4\n    M973 S2 P0\n    M400 P500\n    M960 S0 P0\n    M960 S1 P1\n    G0 X215.00 Y4.750\n    M400 P500\n    M971 S5 P2\n    M963 S1\n    M400 P1500\n    M964\n    T1100\n    G1 Z3 F3000\n\n    M400\n    M500 ; save cali data\n\n    M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]} ; rise nozzle temp now ,to reduce temp waiting time.\n\n    T1100\n    M400 P400\n    M960 S0 P0\n    G0 F30000.000 Y10.000 X65.000 Z0.000\n    M400 P400\n    M960 S1 P1\n    M400 P50\n\n    M969 S1 N3 A2000\n    G0 F360.000 X181.000 Z0.000\n    M980.3 A70.000 B{outer_wall_volumetric_speed/(1.75*1.75/4*3.14)*60/4} C5.000 D{outer_wall_volumetric_speed/(1.75*1.75/4*3.14)*60} E5.000 F175.000 H1.000 I0.000 J0.010 K0.020\n    M400 P100\n    G0 F20000\n    G0 Z1 ; rise nozzle up\n    T1000 ; change to nozzle space\n    G0 X45.000 Y4.000 F30000 ; move to test line pos\n    M969 S0 ; turn off scanning\n    M960 S0 P0\n\n\n    G1 Z2 F20000\n    T1000\n    G0 X45.000 Y4.000 F30000 E0\n    M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]}\n    G0 Z0.3\n    G1 F1500.000 E3.600\n    G1 X65.000  E2.4945 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X70.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X75.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X80.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X85.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X90.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X95.000  E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X100.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X105.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X110.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X115.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X120.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X125.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X130.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X135.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n\n    ; see if extrude cali success, if not ,use default value\n    M1002 judge_last_extrude_cali_success\n    M622 J0\n        M400\n        M900 K0.01 M{outer_wall_volumetric_speed/(1.75*1.75/4*3.14) *0.01}\n    M623\n\n    G1 X140.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X145.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X150.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X155.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X160.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X165.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X170.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X175.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X180.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X185.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X190.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X195.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X200.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X205.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X210.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X215.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    G1 X220.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0) / 4 * 60}\n    G1 X225.000 E0.6236 F{outer_wall_volumetric_speed/(0.3*1.0)     * 60}\n    M973 S4\n\nM623\n\n;========turn off light and wait extrude temperature =============\nM1002 gcode_claim_action : 0\nM973 S4 ; turn off scanner\nM400 ; wait all motion done before implement the emprical L parameters\n;M900 L500.0 ; Empirical parameters\nM109 S[nozzle_temperature_initial_layer]\nM960 S1 P0 ; turn off laser\nM960 S2 P0 ; turn off laser\nM106 S0 ; turn off fan\nM106 P2 S0 ; turn off big fan\nM106 P3 S0 ; turn off chamber fan\n\nM975 S1 ; turn on mech mode supression\nG90\nM83\nT1000\n;===== purge line to wipe the nozzle ============================\nG1 E{-retraction_length[initial_no_support_extruder]} F1800\nG1 X18.0 Y2.5 Z0.8 F18000.0;Move to start position\nG1 E{retraction_length[initial_no_support_extruder]} F1800\nM109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]}\nG1 Z0.2\nG0 X239 E15 F{outer_wall_volumetric_speed/(0.3*0.5)    * 60}\nG0 Y12 E0.7 F{outer_wall_volumetric_speed/(0.3*0.5)/4* 60}\n"
}
