Hi.
This is my first post here. You maybe like to redirect me to right place, if something
I have a few RRF-based boards for 3d printer and CNC and like it because of easy programming.
Some time ago I wrote few macros with meta commands. Suddenly I found that my macros with meta commands, written for one machine, won't work on other one and needs debugging. Finally, I started it, but that means that same code can not produce the same result on different plates. I don't know, is it problem of my board(s) or firmware, but maybe it could be interesting for you?
Boards :
Fly-Gemini v2, running on RRF 3.3.0
Fly E3 v1, running on firmware-stm32f4-wifi-3.4.4_103
An example of macro:
echo >"0:/macros/TestLog.txt" "Test started: " ^{state.time}
while true
If iterations > 5
break
; Comment with leading TAB - works correctly
echo "Line " ^ line ^ ": 1st part of loop"
; Comment without leading TAB - stops loop on E3v1 board
echo "Line " ^ line ^ ": 2nd part of loop"
echo "Line " ^ line ^ ": end of loop"
Description:
-
Conditional construct "If..." processed correctly on Gemini v2, but returns "bad command" error on E3v1 because of leading capital letter "I".
-
Comment inside body of loop, placed without leading TAB, can work like "end of loop" mark and stop execution on E3v1. However, it is processed correctly on Gemini v2.
-
"state.time"` works correctly on E3v1, but fails on Gemini (received otput: "Test started: 0.0009886")
-
I can see strange "line shift" in macro during execution on E3v1. During 1st iteration number of line is reported correctly (#6), later +1 (#7), Please see console output bellow. Btw, I didn't tested that on Gemini.
2/11/2023, 8:55:34 PM M98 P"0:/macros/Test2.g"
Line 6: 1st part of loop
Line 7: 1st part of loop
Line 7: 1st part of loop
Line 7: 1st part of loop
Line 7: 1st part of loop
Line 7: 1st part of loop
Line 9: 2nd part of loop
Line 10: end of loop
In answer to #Infiniteloop:
I can not find any button "reply" on this forum, so Ill place my answer here...
Maybe you're right, I'm on wrong planet or wrong firmware... Or maybe on wrong clone, that also can be true. I don't know about all of your relationships, just found few problems and liked to report it to somebody, who care about firmware - and maybe my findings could be useful for fixes in future releases. Or, maybe somebody like to put some remarks to documentation.
If not, I'll ask admins to feel free to delete this post.
I added missing info to my post.
Now, can I take my towel and rest a little bit?
@Phaedrux, is it possible get the right to place replies in this forum? Communication is a little bit difficult without this
in answer to @infiniteloop #2:
I can not find any button "reply" in place you described.
I have not enough privileges to post screenshot.
I tried to send confirmation e-mail and didnt received nothing.