Vectric post processor %

Below is the header for the vectric pp. It adds a % to the start of the program. I can’t seem to find any reference to % in my gcode reference. Can someone tell me if this is a gcode command and what it does? thanks.

begin HEADER
"T[T] M6"
"G0 G17 G20 G90 G40 G49 G64 P0.001"
"G0[XH][YH] M03[S]"
"M0(MSG, Click 'Continue' when the spindle is up to speed)"


Many Years ago when I was an Applications Engineer in the Machine Tool Industry I think the "%"followed by a number was the program number or File number for the control, its been a long time so may be wrong.


On second thoughts the % may have just been the start of the program followed by the program number on the next line, like I said its been a while


Thanks for the response Dave. I just did a few tests with the % removed from my test program. It appears to no do anything. Maybe someone thought it was cute. I think I’ll remove it from the pp.

From “G-code Explained”

" 1. Code initialization. This character (%) is always present at the beginning and at the end of the program. "

I think you can leave it there, you might run into problems when running multiple programs.


1 Like