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

    Obsolete use of S parameter on G1 command...

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    9
    33
    2.8k
    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.
    • dc42undefined
      dc42 administrators @jens55
      last edited by dc42

      @jens55 said in Obsolete use of S parameter on G1 command...:

      That error is not what is stopping the homeing - it only throws the error but doesn't stop anything from running so there is something else amiss.

      To be clear, the warning about using S instead of H is currently just that: a warning. It doesn't change the behaviour.

      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

      Stephenbrightundefined 1 Reply Last reply Reply Quote 0
      • Stephenbrightundefined
        Stephenbright @jens55
        last edited by Stephenbright

        @jens55

        Part one: The obsolete S and H parameters warning is now gone so I think I have that fixed...

        Right now I had manually put the core XY and the bed in to the home positioning and then restarted the machine. I am NOW getting movement, however its grinding all over the place as I'm sure nothing is aligned and needs to be set up, however how do I do that when its freaking out like that??

        Below is the config file. Do you need ALL of the homing files to look at? And is it okay to post it like the config file below?

        Thank you BOTH for all of your help !

        ; CONFIGURATION FILE for Duet Maestro
        ; K'Tana Nozzle
        ; Last modified October 1, 2018

        ; Executed by the firmware on start-up

        ; Headers within parenthesis are headings in Duet3D documentation=https://duet3d.com/wiki/Configuring_RepRapFirmware_for_a_Cartesian_printer
        ; Visit https://reprap.org/wiki/G-code for an explanation of G-code commands

        ; --- SECTION: GENERAL PREFERENCES ( ) ---

        M564 S1 H1 ; Enables Homing Requirement For Motor Activation and set axes limits

        ; --- SECTION: Z-PROBE & MESH COMPENSATION ---

        M98 Pmachine_zprobe.g ; configure the z probe

        M98 Pmachine_bedmesh.g ; configure the bed mesh

        G29 S1 ; Load heightmap after power cycle

        ; --- SECTION: DRIVES (MOVEMENT SECTION) & ENDSTOPS ---

        M667 S1 ; Enable coreXY mode
        M569 P0 S0 D3 V0 ; Drive 0 goes forwards, CoreXY_1, stealth chop, disable spread cycle
        M569 P1 S1 D3 V0 ; Drive 1 goes forwards, CoreXY_2, stealth chop, disable spread cycle
        M569 P2 S1 D3 V0 ; Drive 2 goes forwards, Z Motor, stealth chop, disable spread cycle
        M569 P3 S0 D3 V800 ; Drive 3 goes forwards, Left Extruder, stealth chop, spread cycle only on retractions (basically)
        M569 P4 S1 D3 V800 ; Drive 4 goes forwards, Right Extruder, stealth chop, spread cycle only on retractions (basically)
        M98 Pmachine_endstoptypes.g ; set endstop types
        M98 Pmachine_steppercurrent.g ; set stepper currents
        M98 Pmachine_stepperspeed.g ; set stepper speeds
        M98 Pmachine_axisdimension.g ; configure the axes dimensions
        M98 Pmachine_axissteps.g ; configure the axes steps per mm
        M98 Pmachine_extruderstep.g ; configure the extruder steps
        G21 ; Work in millimetres
        G90 ; Set to absolute coordinates...
        M84 S1 ; Set idle timeout

        ; --- SECTION: HEATERS, BED & THERMISTOR ---
        ; H0 is bed
        ; H1 is left heater
        ; H2 is right heater

        M570 H0 P25 T30 ; Allow heater to be off by as much as 30C for 25 seconds
        M570 H1 P15 T30 ; Allow heater to be off by as much as 30C for 15 seconds
        M570 H2 P15 T30 ; Allow heater to be off by as much as 30C for 15 seconds
        M305 P0 T100000 B4138 C0 R2200 ; Set thermistor + ADC parameters for heater 0, For heated Bed thermistor
        M305 P1 X501 R2200 ; Define left side extruder PT1000
        M305 P2 X502 R2200 ; Define right side extruder PT1000
        M307 H0 A78.9 C265.2 D9.5 S1.00 V24.0 B0 ; Forcing heated bed PID control after power-cycle. Basic bed heating auto-tune
        M307 H1 A309 C96 D5.2 S0.75 V24.1 B0 ; Set PID values use M303 auto-tune calibration settings
        M307 H2 A309 C96 D5.2 S0.75 V24.1 B0 ; Set PID values use M303 auto-tune calibration settings
        M302 P1 ; Allow Cold extrudes
        M98 Pmachine_maxtemp.g ; set bed and extruder max temperatures

        ; --- SECTION: FANS ( ) ---

        M106 P0 S0 I0 F4 H-1 L0.3 ; Filter fan. Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off, Minimum fan value 0.3, Speed 100%
        M106 P1 S0 I0 F4 H-1 L0.3 ; Cold-Section fan. Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off, Minimum fan value 0.3, Speed 100%
        M106 P2 S0 I0 F4 H-1 L0.3 ; Nozzle fan. Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off, Minimum fan value 0.3, Speed 100%

        ; --- SECTION: TOOLS ( ) ---

        ; Comment: Remember! H0 is the heated bed!
        ; Comment: D0 is the first driver after movement (X, Y and Z) drives, which is left extruder
        ; D1 is right extruder

        M98 Pmachine_ktana_tools.g ; Define ktana tools

        T0 ; Automatic tool select

        ; --- SECTION: NETWORKS (PROLOGUE & COMMUNCATIONS SECTION) ---
        M98 Pmachine_access.g ; set machine name and IP
        M586 P0 S1 ; Enable HTTP
        M586 P1 S0 ; Disable FTP
        M586 P2 S0 ; Disable Telnet

        ; --- SECTION: MISCELLANEOUS ---

        M572 D0:1 S0.07 ; Extruder Pressure Advance
        ;M98 Pqc.g ; Do NOT uncomment unless you really know what you're doing

        1 Reply Last reply Reply Quote 0
        • Stephenbrightundefined
          Stephenbright
          last edited by

          Part one: The obsolete S and H parameters warning is now gone so I think I have that fixed...

          Right now I had manually put the core XY and the bed in to the home positioning and then restarted the machine. I am NOW getting movement, however its grinding all over the place as I'm sure nothing is aligned and needs to be set up, however how do I do that when its freaking out like that??

          Below is the config file. Do you need ALL of the homing files to look at? And is it okay to post it like the config file below?

          Thank you BOTH for all of your help !

          1 Reply Last reply Reply Quote 0
          • Stephenbrightundefined
            Stephenbright
            last edited by

            ; homex.g
            ; called to home the X axis
            ; October 4, 2018

            ; same as homey.g because of coreXY
            ; Front left corner is (0,0)

            ; ============= PRE-HOMING =====================

            ; Ignore Machine boundaries
            M564 H0 S0

            ; Turn off bed leveling during homing
            G29 S2 ; Does the same as M561!

            ; Switch to Origin Tool
            T0

            ; Relative positioning
            G91

            ; Provide Z height clearance
            G1 Z10 F750 H1

            ; ================== HOME Y ============================

            ; Rapid Y until limit switch triggers
            G0 Y450 F1500 H1

            ; Back off to release limit switch
            G0 Y-6 F1500

            ; Slow advance to trigger limit switch
            G0 Y10 F120 H1

            ; Set this location as Y = 384mm
            G92 Y384

            ; Move the gantry slightly away from back of printer, to allow travel past the bolt mounting the gantry bracket
            G0 Y-5 F1200

            ; ============= HOME X ====================

            ; Rapid X until limit switch triggers
            G0 X450 F1500 H1

            ; Back off to release limit switch
            G0 X-6 F1500

            ; Slow advance to trigger limit switch
            G0 X10 F120 H1

            ; Set this location as X = 380mm
            G92 X380

            ; Move away from the limit switch, to prevent damage to it upon next move
            G0 X-5 F1500

            ; ============ Post-Homing ==============

            ; Revert to absolute coordinates
            G90

            ; Re-enable mesh leveling
            G29 S1

            M98 Pmachine_axisdimension.g ; Set Axes Limits

            ; Stop movement across limits, enable boundaries, homing requirement
            M564 H1 S1

            Phaedruxundefined 1 Reply Last reply Reply Quote 0
            • Stephenbrightundefined
              Stephenbright
              last edited by

              ; homez.g
              ; called to home the Z axis
              ;

              ; ============= PRE-HOMING =====================

              ; Ignore Machine boundaries
              M564 H0 S0

              ; Turn off bed leveling during homing
              G29 S2 ; Does the same as M561!
              G29 S2 ; Do it twice because once just isn't enough

              ; Switch to Origin Tool
              T0

              ; Relative positioning
              G91

              ; Provide Z height clearance
              G1 Z10 F750 H1

              ; ============ HOME Z ==============

              ; Rapid Z until limit switch triggers
              G0 Z450 F1500 H1

              ; Back off to release limit switch
              G0 Z-15 F1500

              ; Slow advance to trigger limit switch
              G0 Z20 F120 H1

              M98 Pmachine_zendstop.g ; Set Z Endstop height
              M98 Pmachine_zprobe.g ; Set Z Probe distance

              ; ============ Post-Homing ==============

              ; Revert to absolute coordinates
              G90

              ; Re-enable mesh leveling
              G29 S1

              M98 Pmachine_axisdimension.g ; Set Axes Limits

              ; Stop movement across limits, enable boundaries, homing requirement
              M564 H1 S1

              1 Reply Last reply Reply Quote 0
              • Stephenbrightundefined
                Stephenbright
                last edited by

                ; homey.g
                ; called to home the Y axis
                ;

                ; Same as homex.g because of coreXY
                ; Front left is (0,0)

                M98 Phomex.g

                1 Reply Last reply Reply Quote 0
                • Stephenbrightundefined
                  Stephenbright
                  last edited by

                  ; homeall.g
                  ; called to home all axes
                  ;

                  ; Front left corner is (0,0)

                  ; ============ HOME X & HOME Y ==============

                  M98 Phomex.g ; Run the homex.g file, also homes the Y axis

                  ; ============ HOME Z ==============

                  M98 Phomez.g ; Run the homez.g file

                  1 Reply Last reply Reply Quote 0
                  • Stephenbrightundefined
                    Stephenbright @dc42
                    last edited by

                    @dc42 Stephenbright 20 Jan 2020, 20:53

                    Part one: The obsolete S and H parameters warning is now gone so I think I have that fixed...

                    Right now I had manually put the core XY and the bed in to the home positioning and then restarted the machine. I am NOW getting movement, however its grinding all over the place as I'm sure nothing is aligned and needs to be set up, however how do I do that when its freaking out like that??

                    Below is the config file. Do you need ALL of the homing files to look at? And is it okay to post it like the config file below?

                    Thank you BOTH for all of your help !

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @Stephenbright
                      last edited by

                      @Stephenbright said in Obsolete use of S parameter on G1 command...:

                      ; Provide Z height clearance
                      G1 Z10 F750 H1

                      Is the intention here to seek an endstop, or to move the axis before it's been homed? H1 would seek the endstop, H2 would allow movement before homing. Failing to reach the endstop could cause you issues.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      Stephenbrightundefined 1 Reply Last reply Reply Quote 0
                      • Stephenbrightundefined
                        Stephenbright @Phaedrux
                        last edited by

                        @Phaedrux I think I need to set the end stops first in the homed position. Right now it seems confused like its trying to home and move the axis in a different direction at the same time...

                        1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User
                          last edited by

                          I think I initially did the same thing, but yes, if you remove the H1 it should still not crash as long Z is homed before running homex as the soft limit would stop the axis at the limits defined by M208 (280?)

                          And if z is not homed before running homex it should fail saying insufficient axis homed when you try to move z.

                          1 Reply Last reply Reply Quote 0
                          • Stephenbrightundefined
                            Stephenbright
                            last edited by

                            I'm thinking I may go back to the last 2.06 firmware. Is that straight forward? Can I just install the older firmware or do I have to erase the board and start over?

                            1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator
                              last edited by

                              You should be able to just upload the older firmware and it will detect and install it.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • DocTruckerundefined
                                DocTrucker
                                last edited by DocTrucker

                                Is the H/S swap also in the later bugfix versions of RepRapFirmware 1?

                                Should the following line in the wiki be tweaked from:

                                Rn Return to the coordinates stored in restore point #n (see G60). Any X, Y, Z and other axis parameters in the command are used as offsets from the stored position. Axes not mentioned are not moved, so use offset 0 for axes you want to restore to the stored value. For example, G1 X0 Y0 Z2 will move to 2mm above the position stored in the restore point.

                                ...to:

                                Rn Return to the coordinates stored in restore point #n (see G60). Any X, Y, Z and other axis parameters in the command are used as offsets from the stored position. Axes not mentioned are not moved, so use offset 0 for axes you want to restore to the stored value. For example, G1 R0 X0 Y0 Z2 will move to 2mm above the position stored in the restore point.

                                The use of R0 is also not covered in the usage summary.

                                Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

                                dc42undefined 2 Replies Last reply Reply Quote 0
                                • dc42undefined
                                  dc42 administrators @DocTrucker
                                  last edited by

                                  @DocTrucker said in Obsolete use of S parameter on G1 command...:

                                  Is the H/S swap also in the later bugfix versions of RepRapFirmware 1?

                                  Yes, recent versions of RRF 2.x (or 1.x for Duet 06/085) support both S and H. The warning if you use S for this purpose is only in RRF3.

                                  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

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

                                    @DocTrucker said in Obsolete use of S parameter on G1 command...:

                                    Should the following line in the wiki be tweaked from:

                                    Rn Return to the coordinates stored in restore point #n (see G60). Any X, Y, Z and other axis parameters in the command are used as offsets from the stored position. Axes not mentioned are not moved, so use offset 0 for axes you want to restore to the stored value. For example, G1 X0 Y0 Z2 will move to 2mm above the position stored in the restore point.

                                    ...to:

                                    Rn Return to the coordinates stored in restore point #n (see G60). Any X, Y, Z and other axis parameters in the command are used as offsets from the stored position. Axes not mentioned are not moved, so use offset 0 for axes you want to restore to the stored value. For example, G1 R0 X0 Y0 Z2 will move to 2mm above the position stored in the restore point.

                                    Yes. I've made that change.

                                    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 1
                                    • DocTruckerundefined
                                      DocTrucker @dc42
                                      last edited by

                                      @dc42 Thanks. I've got to get back to getting the Cortex dev board running with RepRapFirmware & RADDS so thought I may as well use the H on all if it causes no harm.

                                      Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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