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.
    • jens55undefined
      jens55
      last edited by

      I ran into the same error and went through all files that DIY-O-Sphere just suggested. Every 'S' in a G1 command was changed to an 'H; and everything was fine after that.

      1 Reply Last reply Reply Quote 1
      • Sowlanundefined
        Sowlan
        last edited by

        @DIY-O-Sphere @jens55
        Thank you for your subjections I haven't see we have homeall.g I'll investigate in this direction.
        This community look like very reactive and lot of interesting, happy to joint you 🙂

        1 Reply Last reply Reply Quote 0
        • Sowlanundefined
          Sowlan
          last edited by

          @jens55 you are right dude I had missing to remplace one "S" argument by "H" in homez.g at here

          G91                 ; relative positioning
          G1 Z5 F6000 S2 <--(problem is here, remplace S2 by H2)      ; lift Z relative to current position
          G90                 ; absolute positioning
          G1 X152 Y166.4 F6000 ; go to first probe point
          G30   
          

          Thank you for focusing me on it.
          Now I'll try to learn to make probing Z with IR sensor to work.

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

            @dc42 In short I had not used the printer in a while so I just started again with the latest firmware update.

            I just change all the S commands to H's and I am still getting the errors:

            SetPositions called when DDA ring not empty

            G28
            Error: G29: Must home printer before bed probing

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

              @dc42 In short I had not used the printer in a while so I just started again with the latest firmware update.

              I just change all the S commands to H's and I am still getting the errors:

              SetPositions called when DDA ring not empty

              G28
              Error: G29: Must home printer before bed probing

              Do I only change the parameters in the homexxx files? or everywhere?

              I've edited all of these files:

              homeall.g
              homedelta.g
              homex.g
              homey.g
              homez.g

              Thank you !

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

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

                SetPositions called when DDA ring not empty

                This is an error that I haven't managed to reproduce yet. It's on my list to look at next week.

                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 @dc42
                  last edited by

                  @dc42 Question: Do I change ALL of the "S" commands to "H" commands in ALL of the config files or just the "home" As of now I've just edited the "home" files and nothing has changed or worked and I get the same errors... OR do I literally just change anything with a G1 command? Thank you !

                  1 Reply Last reply Reply Quote 0
                  • jens55undefined
                    jens55
                    last edited by jens55

                    You need to change all the files you listed above! That is to say

                    homeall.g
                    homedelta.g
                    homex.g
                    homey.g
                    homez.g

                    but if you have any other files that use G1 that run at the very start then you need to change those too. The S parameter is used to (I think) allow movement when not all the axis have been homed so anything you added that moves any of the axis under non homed conditions need changing.
                    In a cartesian system it is homeall, homex,homey,homez but I do not know if a delta printer has other files.

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

                      Thank you and yes that is what I had thought so I have in fact changed all of the G1 commands only. ( I should have clarified that ) not every S to and H but just the G1 parameters... I'm going to double check to make sure I haven't missed any. Is there any other place I should look as I thought I got them all?

                      That being said I'm still getting nothing to home at all. Basically it's doing nothing but giving me that error...

                      I found this S1 in: print_stopgcode.g file. Should that be changed?

                      G1 Z5 S1 F360 ; lower Z by 5mm, or until Z-limit is reached

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

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

                        but just the G1 parameters

                        and G0 if used. i don't think G2 and G3 support H parameter, but might wanna check for completeness

                        1 Reply Last reply Reply Quote 0
                        • jens55undefined
                          jens55
                          last edited by

                          I double checked my files and found an S1 I had overlooked. I suspect you have overlooked one as well.
                          You are right in only changing 'S' parameters in G1 (or G0) moves.
                          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.
                          Here is my homex.g file but note it's for a cartesian printer

                          G91 ; relative positioning
                          G1 Z5 F6000 H2 ; lift Z relative to current position
                          G1 H1 X-505 F10000 ; move quickly to X axis endstop and stop there (first pass)
                          G1 X5 F6000 ; go back a few mm
                          G1 H1 X-505 F360 ; move slowly to X axis endstop once more (second pass)
                          G1 Z-5 F6000 H2 ; lower Z again
                          G90 ; absolute positioning

                          Compare that to your homex and see if there are any definite differences. If this doesn't get you past 'not moving anything' problem then please post your homeing files and your config.g file so we can see what is going on.

                          dc42undefined Stephenbrightundefined 2 Replies Last reply Reply Quote 0
                          • 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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA