Need Help! Modifying Post


Results 1 to 4 of 4

Thread: Modifying Post

  1. #1
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    73
    Downloads
    0
    Uploads
    0

    Default Modifying Post

    I am trying to add some line of codes into my post. I had done this previously, but had a hard drive crash and didn't have the modified post backed up.

    Basically I want a window to pop up so the operator can check the Z-shift ( which is the material thickness plus the wasteboard thickness) and manually enter the value before proceeding. I have got the window to pop up but I can't get the text to print.

    Here is a sample from my previous post that I modified.
    G70
    G90
    [WINDOW ON]
    [CLS]
    [PRINT "CHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY"]
    [PRINT "THAT THE CURRENT ZSHIFT IS CORRECT"]
    [PRINT "IF THE THICKNESS IS NOT CORRECT, PLEASE CHANGE TO CORRECT"]
    M00
    SET ZSHIFT=0.250 (WASTEBOARD THICKNESS+MATERIAL THICKNESS)

    This is what I am getting right now.

    G70
    G90
    [WINDOW ON]
    [PRINTCHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY]
    [PRINTTHAT THE ZSHIFT IS CORRECT]
    M00
    SET ZSHIFT=.25 (WASTEBOARD+MATERIAL THICKNESS)

    Here is what I have in the post. I need to get the quotation marks added:

    n,measure_mode
    n,absolute_coord
    n,"[""WINDOW ON""]"
    n,"[""PRINT" "CHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY","]"
    n,"[""PRINT" "THAT THE ZSHIFT IS CORRECT""]"
    n,"M00"
    n,"SET ZSHIFT=.25"" ""(WASTEBOARD+MATERIAL THICKNESS)"
    n,"[""WINDOW OFF""]"

    Thanks,

    Zach

    Similar Threads:


  2. #2
    No posers SBC Cycle's Avatar
    Join Date
    Apr 2008
    Location
    United States
    Posts
    1577
    Downloads
    2
    Uploads
    0

    Default Re: Modifying Post

    The quote variable is what you want to use.

    Code:
    "[","PRINT ",quote,"CHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY",quote,"]"
    That should do the trick!

    -------------------------------------------------------------------------
    Mastercam X9/2021 Multiaxis - Bobcad V21-V31 3ax Pro 4ax Std.


  3. #3
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    73
    Downloads
    0
    Uploads
    0

    Default Re: Modifying Post

    Thanks,

    That worked great.

    What would be the best way to add a space in a line?

    Thanks,
    Zach



  4. #4
    No posers SBC Cycle's Avatar
    Join Date
    Apr 2008
    Location
    United States
    Posts
    1577
    Downloads
    2
    Uploads
    0

    Default Re: Modifying Post

    Kinda crude but literally just programming a space if necessary (you can see I added one after PRINT above):

    Code:
    ," ",
    You can play with default_add_spaces but sometimes it doesn't really do what you need.

    -------------------------------------------------------------------------
    Mastercam X9/2021 Multiaxis - Bobcad V21-V31 3ax Pro 4ax Std.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Modifying Post

Modifying Post