The quote variable is what you want to use.
That should do the trick!Code:"[","PRINT ",quote,"CHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY",quote,"]"
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:
The quote variable is what you want to use.
That should do the trick!Code:"[","PRINT ",quote,"CHECK THE HIGHLIGHTED LINE IN THE PROGRAM TO VERIFY",quote,"]"
-------------------------------------------------------------------------
Mastercam X9/2021 Multiaxis - Bobcad V21-V31 3ax Pro 4ax Std.
Thanks,
That worked great.
What would be the best way to add a space in a line?
Thanks,
Zach
Kinda crude but literally just programming a space if necessary (you can see I added one after PRINT above):
You can play with default_add_spaces but sometimes it doesn't really do what you need.Code:," ",
-------------------------------------------------------------------------
Mastercam X9/2021 Multiaxis - Bobcad V21-V31 3ax Pro 4ax Std.