There are characters "G161" that appears when I generate a robot program (see ProgrammeSEW.cnc) with the GCode_BnR post-processor, but I don't want it, how can I modify the post-processor to delete these characters when I generate the robot program ?
This depends on the settings you use and the post processor. I noticed you are using a custom G-code post processor that you did not provide. The G161 is probably being added by your post processor.
I use the GCode_BnR post-processor for syntax reason, what is the common GCode which is not custom post-processor ? If its syntax match with the syntax I want I would use it.
When I want to edit the GCode_BnR, I just can edit the python code of the post-processor, how can I access to the M codes ?
I tried but I don't know where the "def RunCode" function is in the GCode_BnR post processor, could you take a look at the attached code to help me? Also, is there a Python command that could remove a specific string "G161" in my code?