Setting post process to all upper case

Having problems with or questions about SheetCam? Post them here.
Post Reply
jim1108
Posts: 74
Joined: Sat Oct 29, 2016 1:19 pm
Location: New Mexico, USA

Setting post process to all upper case

Post by jim1108 »

Is there any way of editing the post processor so that it will post all comments in upper case letters? I use a Fanuc post and Mach3 Rotary post (attached below) that I have edited to better work with a 16-i-M Fanuc control on a Daewoo vertical mill. My machine displays the letters in an unreadable fashion, even though they are in () comments when loading the program with lower case letters.

I use a separate back plot editor (CadKas DXF 2 Gcode) and g-code simulator to change lower case to upper case.

This is not a big deal, I was just wondering if it can be done simply in the post editor.
Attachments
Fanuc.scpost
(6.27 KiB) Downloaded 112 times
Mach3 rotary.scpost
(6.68 KiB) Downloaded 104 times
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Post by Les Newell »

Edit your post and look for this code:

Code: Select all

   post.SetCommentChars ("()", "[]")  --make sure ( and ) characters do not appear in system text
   post.Text (" (Filename: ", fileName, ")\n")
   post.Text (" (Post processor: ", postName, ")\n")
Replace it with this:

Code: Select all

   post.SetCommentChars ("()abcdefghijklmnopqrstuvwxyz", "[]ABCDEFGHIJKLMNOPQRSTUVWXYZ")  --make sure ( and ) characters do not appear in system text
   post.Text (" (FILENAME: ", string.upper(fileName), ")\n")
   post.Text (" (POST PROCESSOR: ", string.upper(postName), ")\n")
While you are at it look for any other lower case text and change it (do a search for post.Text). For example change

Code: Select all

post.Text (" G21 (Units: Metric)\n") --metric mode
to

Code: Select all

post.Text (" G21 (UNITS: METRIC)\n") --metric mode
jim1108
Posts: 74
Joined: Sat Oct 29, 2016 1:19 pm
Location: New Mexico, USA

Post by jim1108 »

Thanks for the information Les, it did the trick.
Post Reply