gloomyandy / RepRapFirmware

OO C++ RepRap Firmware
GNU General Public License v3.0
256 stars 60 forks source link

M557 with variables bug #103

Closed khessels closed 2 years ago

khessels commented 2 years ago

M453 R24000 ; set cnc mode

global xAxisMin=0 global yAxisMin=0 global xAxisMax=230 global yAxisMax=210

global meshXMin=0 global meshYMin=0 global meshXMax=130 global meshYMax=75

global probeX=65 global probeY=37

;M291 P"Test" R{global.xAxisMax}

; Axis Limits M208 X{global.xAxisMin} Y{global.yAxisMin} Z-10 S1 ; set axis minima M208 X{global.xAxisMax} Y{global.yAxisMax} Z200 S0 ; set axis maxima

;M574 Z0 P"!PH6" ; no Z endstop switch, free up Z endstop input M558 P5 C"!^probe" H5 F120 T3000 ; Z probe connected to Z endstop inp G31 P500 X{global.probeX} Y{global.probeY} Z0 ; set Z probe trigger value, offset and trigger height

; Mesh grid ;M557 X10:215 Y15:195 S20 ; define mesh grid M557 X{global.meshXMin}:{global.meshXMax} Y{global.meshYMin}:{global.meshYMax} S10 ; define mesh grid

M557 returns an error in the interface. Console reads: Error: M557: Wrong number of values after '''X''', expected 2

It looks like the nn:ff notation is disliked by the parser...

I run the sbc RRF 3.4beta5 for stm (btt gtr1.0) pls let me know if i am not posting this in the correct site\repo\group\whatever...

khessels commented 2 years ago

Closing issue copy of https://github.com/Duet3D/RepRapFirmware/issues/523