MarlinFirmware / MarlinDocumentation

Marlin Firmware Documentation Project
https://marlinfw.org
GNU General Public License v3.0
366 stars 763 forks source link

Input Shaping dosent work in PrusaSlicer #495

Closed MrBrain295 closed 1 year ago

MrBrain295 commented 1 year ago

Putting M593 F{(layer_num < 2 ? 0 : 15 + 45.0 * (layer_num - 2) / 297)} ; Hz Input Shaping Test (from here) as the layer change GCode in PrusaSlicer 2.5.1 gives this error: Post-processing script M593 F{(layer < 2 ? 0 : 15 + 45.0 (layer - 2) / 297)} on file /tmp/.22125.gcode.pp failed. Error code: 2 Output: /bin/bash: -c: line 1: syntax error near unexpected token (' /bin/bash: -c: line 1:M593 F{(layer < 2 ? 0 : 15 + 45.0 (layer - 2) / 297)} '/tmp/.22125.gcode.pp''

The-EG commented 1 year ago

Where exactly did you put the given code? Your error would indicate you put it in the post processing script instead of after layer change gcode.

edit: just to be sure I tested this in Prusa Slicer 2.6a6 and it worked as described.

MrBrain295 commented 1 year ago

Yeah I noticed that but I put it in the layer change gcode. It also showed up in the post processing scripts section although I didn’t put it there. I thought it was a part of prusaslicer but it works now after removing it. Thanks.

On Mon, Apr 17, 2023 at 5:08 PM Taylor Talkington @.***> wrote:

Where exactly did you put the given code? Your error would indicate you put it in the post processing script instead of after layer change gcode.

— Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/MarlinDocumentation/issues/495#issuecomment-1512147493, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYEERRAZWKCOT76UQ2C7GLXBW5NHANCNFSM6AAAAAAXBY6T4U . You are receiving this because you authored the thread.Message ID: @.***>