Decimal values in PWM for M106 Sxx.xxxx

Does Repetier server support having decimal values when using M106 S to control pwm signal?

I am trying to do a raster engrave and the software I have used to generate the gcode does not use whole numbers for M106 S it will use 4 or 5 decimal places.

When I try to launch start the file the interface locks up and I get endless

Error: Line Number is not Last Line Number+1, Last LineL xxx

A vector engrave file works fine with M106 S255 and M107

Comments

  • edited September 2016
    I am using Marlin firmware and D9 is mapped to pin 44 for 5.0v pwm in pin_ramps_13.h
  • Here is a sample from the gcode i am trying to run

    G0 X0 Y0
    G1
    M106 S0
    G1 X0 G1 Y0 
    M106 S53.11765
  • Internally it will use integers for S and P, but that does not explain the line number error. Line numbers should be independend of that and rounding would not hurt. Need to test this.
  • Well I took the same gcode that was causing me issues. Uninstalled Rep Server. Installed Rep Host and it ran no problem. No line number errors.
  • Testing with Marlin 1.1RC and 0.80 server release candidate worked, so it seems the problem was already fixed when I introduced fractional values for M/G/S/P.
Sign In or Register to comment.