Obsolete use of S parameter on G1 command...



  • Error: SetPositions called when DDA ring not empty
    Warning: Obsolete use of S parameter on G1 command. Use H parameter instead.

    Any thoughts on this error?

    Thanks !
    ~sb~



  • remove the s Parameter from G1 and use the H parameter

    Gcode


  • administrators

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

    Error: SetPositions called when DDA ring not empty

    That's a bug in RRF3 that's been reported before. What do you do to provoke it?

    Warning: Obsolete use of S parameter on G1 command. Use H parameter instead.

    As @SIam says.



  • @dc42
    Hi dc42, I have this problem also,

    G28 Z
    Warning: Obsolete use of S parameter on G1 command. Use H parameter instead.
    

    At this time I try to making duet2wifi work with my new printer(BLV mgn cube), but I can say when it appear.
    When I click on home all button and when it's done click on home Z it's at this time the message appear after that my hotend go to center and manual probing windows appear.

    it's my first day working on this question about making probing Z to work maybe something is bad in my configs files, my configs files come from BLV mgn cube with dc42 IR sensor and I try to adapte it to work with firmware V3.0, at origine BLV config files is written for V1.21.

    I hope you understood me fine because english isn't my language I am french, if you need I can reformulate some points.



  • @Sowlan
    Check the following files
    homex.g
    homey.g
    homez.g
    homeall.g



  • 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.



  • @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 🙂



  • @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.



  • @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



  • @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 !


  • administrators

    @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.



  • @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 !



  • 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.



  • 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



  • @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



  • 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.


  • administrators

    @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.



  • @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



  • 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 !



  • ; 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



  • ; 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



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

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

    M98 Phomex.g



  • ; 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



  • @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 !


  • Moderator

    @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.


Log in to reply