Object cancellation: cancel global features
-
I've been looking into object cancellation lately and as of now everything is working as expected even with the standard labels prusaslicer puts in.
With PS 2.4 you could even use the built in "find and replace" function to put in actual M486 commands where the object numbers (for RRF) would then match the IDs prusaslicer puts in but I haven't figured that out yet.
However I was wondering why RRF doesn't have the capability to somehow recognize M486 commands with a negative S parameter (intended for purge towers etc) as global features and list them accordingly for example in the object model browser.My use case would be pretty gimmicky but it would be nice to have anyway:
I have a lightbar as status indicator on my printer that gets updated like a progress bar in every layer change. I wanted to add M486 S-99 before the updating sequence in the layer change gcode to then be able to cancel the status bar updates and turn the lightbar of during a print (without it being lit up and updated again in the next layer again).
However it appears that negative S parameters of M486 will just be ignored or assigned to no object instead of counting them as well.Do i just have to assign the status led update to Objectnumber 999999 so that it won't interfere with possible real objects? Or is there a more elegant way?
Also is there a plugin and/or paneldue interface in the works with which we could interactively see all objects in a list and cancel them?
-
@schild0r it's part of the M496 specification that negative object numbers are used for all non-object items including purge towers, and are therefore not included in the object list. Would it really make sense to cancel all non-object items at once?
-
@dc42 said in Object cancellation: cancel global features:
Would it really make sense to cancel all non-object items at once?
No of course not all at once, this is why I thought it was maybe possible to count and list non-object items the same way as object items so there would for example the following list
Object 0: "cube"
Object 1: "cylinder"
(non) object -1: purge towers, etc. Everything that the slicer gemerates and does not label as object
(non) object -2 to -99: e.g. custom gcode sequences that are explicitly labeled via M486 S(-2 to - 99) that the user may want to leave out at some point, and that are not printing moves. The negative numbers only make sure that these custom features can be used regardless of the number of printing objects (for which the slicer/firmware would automatically generate only positive numbers).You could of course also label these custom features with M486 S999999 or so because you are realistically not printing a million objects but I am not sure if there would be some implications for that (like the requirement for continuous numbers so the firmware would create "null" placeholders for everything between the last object number that is actually in the gcode and 999999) EDIT: this seems to be the case but only up to 40 objects