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.
Setting post process to all upper case
Setting post process to all upper case
- Attachments
-
- Fanuc.scpost
- (6.27 KiB) Downloaded 113 times
-
- Mach3 rotary.scpost
- (6.68 KiB) Downloaded 114 times
- Les Newell
- Site Admin
- Posts: 3672
- Joined: Thu May 11, 2006 8:12 pm
Edit your post and look for this code:
Replace it with this:
While you are at it look for any other lower case text and change it (do a search for post.Text). For example change to
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")
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")
Code: Select all
post.Text (" G21 (Units: Metric)\n") --metric mode
Code: Select all
post.Text (" G21 (UNITS: METRIC)\n") --metric mode