remilton
Posts: 3
Joined: Tue Jan 29, 2019 12:25 pm

Starting script has extra code.

Thu Sep 10, 2020 5:54 pm

Simplify is messing up my starting script when saving the toolpath to disk.

This is the starting script I have written:

Code: Select all

G90
M82
M106 S0
M140 S60 ; set bed temp no wait
M104 S210 ; set extruder temp no wait
G28 ; home all axes
G29 ; Auto Level
T0 ; select LEFT extruder
G1 X15 Y10 Z0.3 F3000 ; avoid binder clips
G1 X195 E15 F500 ; prime line
G1 X205 F100 ; slow wipe
and this is the starting script written to the .gcode file by Simplify3d.

Code: Select all

; G-Code generated by Simplify3D(R) Version 4.1.2
; Sep 10, 2020 at 5:35:23 PM
; Settings Summary
;   processName,Process1
;   applyToModels,AlienOnly
;   profileName,Geeetech A20M (PLA) (modified)
;   profileVersion,2020-09-10 14:43:19
;   baseProfile,Geeetech A20M
;   printMaterial,PLA
;   printQuality,Medium
;   printExtruders,Right Extruder Only
;   extruderName,Right Extruder,Left Extruder,Mix Extruder
;   extruderToolheadNumber,0,1,2
;   extruderDiameter,0.4,0.4,0.4
;   extruderAutoWidth,0,0,0
;   extruderWidth,0.4,0.4,0.4
;   extrusionMultiplier,1,1,1
;   extruderUseRetract,1,1,1
;   extruderRetractionDistance,6,6,8
;   extruderExtraRestartDistance,0,0,0
;   extruderRetractionZLift,0,0,0
;   extruderRetractionSpeed,1800,1800,1800
;   extruderUseCoasting,0,0,0
;   extruderCoastingDistance,0.2,0.2,0.2
;   extruderUseWipe,0,0,0
;   extruderWipeDistance,5,5,5
;   primaryExtruder,0
;   layerHeight,0.2
;   topSolidLayers,3
;   bottomSolidLayers,3
;   perimeterOutlines,2
;   printPerimetersInsideOut,1
;   startPointOption,2
;   startPointOriginX,0
;   startPointOriginY,0
;   sequentialIslands,0
;   spiralVaseMode,0
;   firstLayerHeightPercentage,100
;   firstLayerWidthPercentage,100
;   firstLayerUnderspeed,0.5
;   useRaft,0
;   raftExtruder,0
;   raftTopLayers,3
;   raftBaseLayers,2
;   raftOffset,3
;   raftSeparationDistance,0.14
;   raftTopInfill,100
;   aboveRaftSpeedMultiplier,0.3
;   useSkirt,1
;   skirtExtruder,0
;   skirtLayers,2
;   skirtOutlines,2
;   skirtOffset,4
;   usePrimePillar,0
;   primePillarExtruder,999
;   primePillarWidth,15
;   primePillarLocation,7
;   primePillarSpeedMultiplier,1
;   useOozeShield,0
;   oozeShieldExtruder,999
;   oozeShieldOffset,2
;   oozeShieldOutlines,1
;   oozeShieldSidewallShape,1
;   oozeShieldSidewallAngle,30
;   oozeShieldSpeedMultiplier,1
;   infillExtruder,0
;   internalInfillPattern,Rectilinear
;   externalInfillPattern,Rectilinear
;   infillPercentage,10
;   outlineOverlapPercentage,30
;   infillExtrusionWidthPercentage,100
;   minInfillLength,5
;   infillLayerInterval,1
;   internalInfillAngles,45,-45
;   overlapInternalInfillAngles,0
;   externalInfillAngles,45,-45
;   generateSupport,0
;   supportExtruder,0
;   supportInfillPercentage,30
;   supportExtraInflation,0
;   supportBaseLayers,0
;   denseSupportExtruder,0
;   denseSupportLayers,0
;   denseSupportInfillPercentage,70
;   supportLayerInterval,1
;   supportHorizontalPartOffset,0.3
;   supportUpperSeparationLayers,1
;   supportLowerSeparationLayers,1
;   supportType,0
;   supportGridSpacing,4
;   maxOverhangAngle,45
;   supportAngles,0
;   temperatureName,Shared Heater,Heated Bed
;   temperatureNumber,0,0
;   temperatureSetpointCount,1,1
;   temperatureSetpointLayers,1,1
;   temperatureSetpointTemperatures,205,60
;   temperatureStabilizeAtStartup,1,1
;   temperatureHeatedBed,0,1
;   fanLayers,1,2
;   fanSpeeds,0,100
;   blipFanToFullPower,0
;   adjustSpeedForCooling,1
;   minSpeedLayerTime,15
;   minCoolingSpeedSlowdown,20
;   increaseFanForCooling,0
;   minFanLayerTime,45
;   maxCoolingFanSpeed,100
;   increaseFanForBridging,0
;   bridgingFanSpeed,100
;   use5D,1
;   relativeEdistances,0
;   allowEaxisZeroing,1
;   independentExtruderAxes,0
;   includeM10123,0
;   stickySupport,1
;   applyToolheadOffsets,0
;   gcodeXoffset,0
;   gcodeYoffset,0
;   gcodeZoffset,0
;   overrideMachineDefinition,1
;   machineTypeOverride,0
;   strokeXoverride,255
;   strokeYoverride,255
;   strokeZoverride,255
;   originOffsetXoverride,0
;   originOffsetYoverride,0
;   originOffsetZoverride,0
;   homeXdirOverride,-1
;   homeYdirOverride,-1
;   homeZdirOverride,-1
;   flipXoverride,1
;   flipYoverride,-1
;   flipZoverride,1
;   toolheadOffsets,0,0|0,0|0,0|0,0|0,0|0,0
;   overrideFirmwareConfiguration,1
;   firmwareTypeOverride,RepRap (Marlin/Repetier/Sprinter)
;   GPXconfigOverride,r2
;   baudRateOverride,250000
;   overridePrinterModels,1
;   printerModelsOverride
;   startingGcode,G90,M82,M106 S0,M140 S60 ; set bed temp no wait,M104 S210 ; set extruder temp no wait,G28 ; home all axes,G29 ; Auto Level,T0 ; select LEFT extruder,G1 X15 Y10 Z0.3 F3000 ; avoid binder clips,G1 X195 E15 F500 ; prime line,G1 X205 F100 ; slow wipe
;   layerChangeGcode,
;   retractionGcode,
;   toolChangeGcode,G92 E0 ; zero extruded length,G1 E-[toolchange_retract_distance] F[toolchange_retract_speed] ; retract,G92 E0 ; zero extruded length,G1 X[next_position_x] Y[next_position_y] F[travel_speed] ; move to ooze shield or prime pillar,G1 E[toolchange_prime_distance] F[toolchange_retract_speed] ; unretract,G92 E0 ; zero extruded length,T[new_tool] ; perform toolchange
;   endingGcode,M104 S0 ; turn off extruder,M140 S0 ; turn off bed,G91 ; relative positioning,G1 Z1 F600 ; lift nozzle,G90 ; absolute positioning,G1 X0 Y250 F2400 ; move head away,M84 ; disable motors
;   exportFileFormat,gcode
;   celebration,0
;   celebrationSong,Random Song
;   postProcessing,
;   defaultSpeed,4800
;   outlineUnderspeed,0.5
;   solidInfillUnderspeed,0.8
;   supportUnderspeed,0.8
;   rapidXYspeed,4800
;   rapidZspeed,1000
;   minBridgingArea,50
;   bridgingExtraInflation,0
;   bridgingExtrusionMultiplier,1
;   bridgingSpeedMultiplier,1
;   useFixedBridgingAngle,0
;   fixedBridgingAngle,0
;   applyBridgingToPerimeters,0
;   filamentDiameters,1.75|1.75|1.75|1.75|1.75|1.75
;   filamentPricesPerKg,46|46|46|46|46|46
;   filamentDensities,1.25|1.25|1.25|1.25|1.25|1.25
;   useMinPrintHeight,0
;   minPrintHeight,0
;   useMaxPrintHeight,0
;   maxPrintHeight,0
;   useDiaphragm,0
;   diaphragmLayerInterval,20
;   robustSlicing,1
;   mergeAllIntoSolid,0
;   onlyRetractWhenCrossingOutline,1
;   retractBetweenLayers,1
;   useRetractionMinTravel,0
;   retractionMinTravel,3
;   retractWhileWiping,0
;   onlyWipeOutlines,1
;   avoidCrossingOutline,0
;   maxMovementDetourFactor,3
;   toolChangeRetractionDistance,8
;   toolChangeExtraRestartDistance,0
;   toolChangeRetractionSpeed,1800
;   externalThinWallType,0
;   internalThinWallType,2
;   thinWallAllowedOverlapPercentage,10
;   singleExtrusionMinLength,1
;   singleExtrusionMinPrintingWidthPercentage,50
;   singleExtrusionMaxPrintingWidthPercentage,200
;   singleExtrusionEndpointExtension,0.2
;   horizontalSizeCompensation,0
G90
M82
M106 S0
M140 S60
M190 S60
M104 S205 T0
M109 S205 T0
G90
M82
M106 S0
M140 S60 ; set bed temp no wait
M104 S210 ; set extruder temp no wait
G28 ; home all axes
G29 ; Auto Level
T0 ; select LEFT extruder
G1 X15 Y10 Z0.3 F3000 ; avoid binder clips
G1 X195 E15 F500 ; prime line
G1 X205 F100 ; slow wipe
The issue (besides all the commented lines) is there are conflicting bed and hot-end commands written by Simplify3d and I don't know where this extra code is coming from or how to remove them..

parallyze
Posts: 169
Joined: Fri Jun 05, 2015 4:18 am

Re: Starting script has extra code.

Fri Sep 11, 2020 3:12 pm

remilton wrote:
Thu Sep 10, 2020 5:54 pm
Simplify is messing up my starting script when saving the toolpath to disk.
It's not..
The issue (besides all the commented lines) is there are conflicting bed and hot-end commands written by Simplify3d and I don't know where this extra code is coming from or how to remove them..
Commented lines aren't an issue - they are a feature. Also you can import a gcode file generated this way in S3D to recreate the profile used.

Your start script should include variables to set bed/extruder temperature so S3D can detect you're setting them on your own.

Have a look at this thread, the variables are mentioned there: viewtopic.php?f=8&t=1959

remilton
Posts: 3
Joined: Tue Jan 29, 2019 12:25 pm

Re: Starting script has extra code.

Fri Sep 11, 2020 7:48 pm

Thanks for responding. I found my problem. I added these lines after doing my auto level and all is fine now.

Code: Select all

M190 S[bed0_temperature] ; wait for bed temp
M109 S[extruder0_temperature] ; wait for extruder temp

Return to “Troubleshooting and Bug Reports”