RRF3.3 meta functions don't work when in cnc mode
-
I am new here and maybe I am wrong, but may be there is a bug related to the meta functions.
I use RepRapFirmware 3.3 stable with a new Duet 3 Mainboard 6HC in standalone mode.
As you can see in the picture meta functions are not reconized when in cnc mode M453 and are reconized if in mode FFF M 451.
Test.g used is simply this
the same thing happens in the config.g or in macros.
I have searched the forum but have not found any reference to this.
-
@claus from https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands:
Sub-expressions may be enclosed in { } or in ( ). The outermost level must always be { } because standard CNC GCode uses ( ) to enclose comments. RepRapFirmware treats ( ) as enclosing subexpressions if they appear inside { }, and as enclosing comments when they do not.
This also applies to round brackets used to surround function argument lists. So you need to use:
if {!exists(global.XMax_default)}
and
var a = {abs(10)}
-
@dc42 I had read that part but didn't realize it also referred to round brackets used to surround function argument lists.
Thank you it works perfectly.
-
@claus I'm glad it's working for you now. I have just updated that part of the documentation.
-
I really appreciated the care You put in the continuous updating of the Duet and it is one of the reasons why I chose your product.