Additions to conditional system



  • Eventually I want to convert my manual set trigger height to run and complete automatically. To do this I ideally would like an average AVG function so that an average height could be obtained from 10 readings.

    Is there a way to test if the system thinks that a filament is loaded?
    Is it possible to expand M291 to include firmware objects?


  • administrators

    @appjaws said in Additions to conditional system:

    Eventually I want to convert my manual set trigger height to run and complete automatically. To do this I ideally would like an average AVG function so that an average height could be obtained from 10 readings.

    Noted.

    Is there a way to test if the system thinks that a filament is loaded?

    Filament monitors are not yet in the OM.

    Is it possible to expand M291 to include firmware objects?

    It already is. You will need to use the string concatenation operator.



  • @dc42, thanks for your help
    This is the line I want to display on the screen.
    M291 P"auto bed levelling using 3 Z motors completed deviation " ^ move.calibrationDeviation.deviation ^ "mm"
    this is the error
    Error: Bad command: M291 P"auto bed levelling using 3 Z motors completed deviation " ^ move.calibrationDeviation.deviation ^ "mm"

    and then I thought that it needed a ","
    M291 P"auto bed levelling using 3 Z motors completed deviation ", ^ move.calibrationDeviation.deviation ^ "mm"
    this is the error
    Error: Bad command: M291 P"auto bed levelling using 3 Z motors completed deviation ", ^ move.calibrationDeviation.deviation ^ "mm"

    Not knowing much about code, I am stuck.


Log in to reply