12864 menu: button V{bool} With W and A"M98" broken
-
I've been working through custom menus for my CNC setup and have run across this problem in the menus.
Whenever a button has a V{bool} command AND a W command, whether it's commented out or not, that menu will not load.
I'm navigating from "menu" via button to "N2-setup" menu.
N2 Setup Menu's that break with error shown on display
Error loading menu
File: N2-setup
Line 16 column 2
Bad command; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" button R24 C0 W128 F0 T"Home Clamp" V{global.clampStatus==2} A"M98 P""0:/macros/general/commands/subcommands/clamp.g"" A1" ;end N2-setup
this also breaks with the exact error as above, curiously the "bad" command is commented out
; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" ;button R24 C0 W128 F0 T"Home Clamp" V{fans[0].actualValue=0} A"M98 P""0:/macros/general/commands/subcommands/clamp.g"" A1" ;end N2-setup
all the following do not error. One curious note, the last one does not error, but also does not show any text, the button seems to be offscreen, as it's selectable (nothing highlights) and will fire the macro.
This one is the same as the first, with the exception of the Action being a G28 A call instead of a Macro call.
; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" button R24 C0 W128 F0 T"Home Clamp" V{global.clampStatus==2} A"G28 A" ;end N2-setup
This one removes the W128 from the first
; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" button R24 C0 F0 T"Home Clamp" V{global.clampStatus==2} A"M98 P""0:/macros/general/commands/subcommands/clamp.g"" A1" ;end N2-setup
this one removes the {bool} from the V parameter, replacing with V0
; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" button R24 C0 W128 F0 T"Home Clamp" V0 A"M98 P""0:/macros/general/commands/subcommands/clamp.g"" A1" ;end N2-setup
This one removes the C parameter, but text/button is not visible. is selectable and will fire the macro.
; --------------- Main Overview --------------- text R0 C0 H0 F0 T"NV01234567-AA" text R0 C75 H2 F0 W35 T"T0264-" value R0 H0 F0 N{global.serialNumber} image R11 C0 L"imgs/hline.img" ; --------------- Header --------------- text R12 C0 W63 F0 H1 T"Setup" image L"imgs/vline.img" button W64 F0 T"Back" A"return" image R23 C0 L"imgs/hline.img" button R24 W128 F0 T"Home Clamp" V{global.clampStatus==2} A"M98 P""0:/macros/general/commands/subcommands/clamp.g"" A1" ;end N2-setup
I'd think this is something with functionality added in RRF 3.5.0-beta.4 when the V{bool} functionality was added.
maybe nobody has tried to force a button width with a Visible bool flag to a macro since? -
@ironhydroxide said in 12864 menu: button V{bool} With W and A"M98" broken:
I'd think this is something with functionality added in RRF 3.5.0-beta.4 when the V{bool} functionality was added.
maybe nobody has tried to force a button width with a Visible bool flag to a macro since?That's very possible. One for @dc42 to investigate, though!
Ian