Like I said, make a copy of your original post before you go too far.
The comment is comming from the "pcomment" function
Change this line:
to this:
The "#" prevents MP from reading that line during posting. It's for comments or skipping blocks that you dont want to delete from the post.
Are you familiar with any other types of programming/coding? Like Visual Basic, C, C++, Java, PHP, batch, etc? If not, that's gonna be your roughest learning curve.
The MP (Mastercam Post) language is just that; a complete programming language for post processors in Mastercam. (Like html is to web pages.) The possibilities are literally unlimited.
Also, I just guessed at what RPM your machine shifts gears at, so you'll want to change that to the real values.