Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Right way for starting script?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    6
    22
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • perolalarsundefined
      perolalars
      last edited by

      Hi
      I am trying to make a starting script (gcode) in Simplify3D for my CoreXY printer and I wonder if I am on the right path writing it?!
      No matter where my printer last stopped, when starting (turning the printer on) a new print, I like to first 1. lower the bed say 3mm 2. home all axis 3. making an auto probing (with DC´s ir probe) of the bed and 4. start heating the bed and extruder then start printing.
      Should it look like this?
      G91 ; set coordinate system to relative mode
      G1 Z3 ; lower z axis 3 mm
      G90 ; set coordinate system to absolute mode
      G28 ; home all axes
      G32 ; performs auto z axis probing

      Does the printer use the result from the G32 command to adjust for any non level areas?
      Should I heat the bed first and then make the probing? In that case how should I write that?
      Would be grateful for input!
      Regards
      Per

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Your homing files should already lower the bed before making any movements, so the initial 3mm movement is not needed.

        Yes the G32 command will perform auto bed compensation on a Cartesian or CoreXY printer or delta calibration on a delta printer, assuming you have set up the bed.g file. I recommend you heat the bed and hot end to operating temperature before the G32 - except that if you are using the nozzle itself as the probe, you may prefer not to heat the hot end to the full temperature.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • perolalarsundefined
          perolalars
          last edited by

          Hi David
          Have added the lowering value in the homeall.g file. And yes I use a bed.g file.
          But how should I write the heating of bed and extruder in the start script before the G32 command?
          Have searched the reprap gcode page but dont quite understand how to. Do I have to say how much time heating of the bed will take also?
          I use your IR probe for bed probing.
          Sorry for the newbie query. Little bit nervous not to damaged anything…

          1 Reply Last reply Reply Quote 0
          • botundefined
            bot
            last edited by

            There is a gcode that commands a heater or heated bed (different gcodes) to heat and WAIT for temperature. I think you want to use this one.

            M190 I think, look on the wiki.

            *not actually a robot

            1 Reply Last reply Reply Quote 0
            • perolalarsundefined
              perolalars
              last edited by

              Hi bot
              Yeah I figured it out, but now when I start a print with that commands: M190 S50 and M109 S150 for heating it up before probing the bed, the temperature dont rise to the temp for printing (240 PET-G) and as an effect of that the extruder dont extrude anything. I.e. the print starts but it stays on the "Start script" temperatures and dont use the print files temperatures… Dont know what to do...

              1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman
                last edited by

                @perolalars:

                Hi bot
                Yeah I figured it out, but now when I start a print with that commands: M190 S50 and M109 S150 for heating it up before probing the bed, the temperature dont rise to the temp for printing (240 PET-G) and as an effect of that the extruder dont extrude anything. I.e. the print starts but it stays on the "Start script" temperatures and dont use the print files temperatures… Dont know what to do...

                It sounds to me like maybe you haven't selected a tool (or the right tool). You need to do this before M109 otherwise it won't know which heater to heat. If you only have one tool, try putting T0 before M109.
                HTH

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • Alex9779undefined
                  Alex9779
                  last edited by

                  If you use own heating commands in the scripts of S3D then you have to take care of all heating because then S3D does not insert its own heating commands.
                  So you have to insert the command to heat to print temperature after probing too.
                  Like M109 S[extruder0_temperature]…

                  1 Reply Last reply Reply Quote 0
                  • perolalarsundefined
                    perolalars
                    last edited by

                    Hi deckingman & Alex9779
                    And thanks for reply!
                    deckingman, the right extruder (T0) heats up ok (as specified in the starting script) to 150c, but when starting to print the object it remains on 150c not 240c (as in the printing-file).
                    Alex9779, first I tried with S3D but it was a lot of strange behaviour so I used Slic3r, all went well, but as said above, it remains on the start script temp not the object print file temp… I dont want to be forced to adjust the printing temperature in the starting script all the time...

                    1 Reply Last reply Reply Quote 0
                    • Alex9779undefined
                      Alex9779
                      last edited by

                      You do not have to if you use variables as I wrote. The variable I wrote in there is S3D syntax. Slic3r has its own. Also Slic3r does remove its own heating commands if you use at least one in your script.
                      It was not meant that you insert an actual temperature value there…

                      1 Reply Last reply Reply Quote 0
                      • Alex9779undefined
                        Alex9779
                        last edited by

                        Look here for what is possible in starting scripts for S3D: https://forum.simplify3d.com/viewtopic.php?f=8&t=1959

                        1 Reply Last reply Reply Quote 0
                        • perolalarsundefined
                          perolalars
                          last edited by

                          Ahhh, great link! Really like to work with S3D instead of Slic3r
                          Thanks Alex9779 , will do some more reading then… again...

                          1 Reply Last reply Reply Quote 0
                          • Alex9779undefined
                            Alex9779
                            last edited by

                            Use the forum post listing all the tips of the day posts. There is one for every tab explaining most of the settings. Some are missing because they have been made with an older version…

                            1 Reply Last reply Reply Quote 0
                            • perolalarsundefined
                              perolalars
                              last edited by

                              @Alex9779 After reading the link you posted I dont quite understand how to make S3D first heat up bed and extruder (using the starting script temperature), then do the probing of the bed, and then take the temperatures from the "printing object" file and start printing the object.
                              What would the gcode look if I liked to heat up bed and extruder to 50 (bed) & 150 (extruder) do the probing and then start printing with the bed to (60) and extruder to (240) and use the temperatures from the slicer settings (S3D)? If its possible?
                              Sorry but dont understand using varible?!

                              1 Reply Last reply Reply Quote 0
                              • Dougal1957undefined
                                Dougal1957
                                last edited by

                                I have found that S3D actually does the start script after the heating cycle and mine has just G32 in the script so when I run a print the bed heats then the hotend then my start script then the rest of the print is executed!

                                Doug

                                1 Reply Last reply Reply Quote 0
                                • perolalarsundefined
                                  perolalars
                                  last edited by

                                  Hi Doug
                                  That´s interesting!! I am not at my printer until tomorrow so have to test that then. But do you have some homing cycle first (in the start script)? Before the G32.. I dont want my extruder, with printing distance to the bed, heating up to 240c and then start printing..

                                  1 Reply Last reply Reply Quote 0
                                  • Alex9779undefined
                                    Alex9779
                                    last edited by

                                    @perolalars:

                                    @Alex9779 After reading the link you posted I dont quite understand how to make S3D first heat up bed and extruder (using the starting script temperature), then do the probing of the bed, and then take the temperatures from the "printing object" file and start printing the object.
                                    What would the gcode look if I liked to heat up bed and extruder to 50 (bed) & 150 (extruder) do the probing and then start printing with the bed to (60) and extruder to (240) and use the temperatures from the slicer settings (S3D)? If its possible?
                                    Sorry but dont understand using varible?!

                                    M190 S50
                                    M109 S150
                                    G32
                                    M190 S[bed0_temperature]
                                    M109 S[extruder0_temperature]

                                    1 Reply Last reply Reply Quote 0
                                    • perolalarsundefined
                                      perolalars
                                      last edited by

                                      Okey, thanks a lot!
                                      With this I specify the printing temp for the "printing file" witch overrides the settings in the slicer?!

                                      1 Reply Last reply Reply Quote 0
                                      • Alex9779undefined
                                        Alex9779
                                        last edited by

                                        I don't understand the question, sorry. With this you start with heating. Then the bed is probed. When that's finished the head stay at the last probe position and the bed is heated to the temp you set in the temperature tab. Then the same happens for the extruder.
                                        If you want to do the final heating somewhere else insert a G1 command after G32.

                                        1 Reply Last reply Reply Quote 0
                                        • perolalarsundefined
                                          perolalars
                                          last edited by

                                          Ok sorry for being unclear.
                                          When you say "temperature tab" do you mean the settings in S3D?

                                          1 Reply Last reply Reply Quote 0
                                          • Alex9779undefined
                                            Alex9779
                                            last edited by

                                            Yes that's the whole point of using variables in the script. That way you don't have to change the script every time. It takes the values for the specified heater on layer 1. Each heater has an assigned number normally starting with 0 also on the temp tab. That is the number in the variable…

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA