Use material_comment
Outputs the defined material as a string.
API:
string MILLTURN_GetMaterialComment()
Is there a way to modify the PP to add the material that is selected to the code? I am using a modified PP for Haas. I tried this to no avail.
2. Start of file standard
"(PROGRAM NAME - ",prog_name,")"
"(POST - ",machine_make,machine_model,")"
"(DATE - ",output_date,")"
"(TIME - ",output_time,")"
"(MATERIAL - ",output_material,")"
Just wondering if it's possible. :0
Similar Threads:
Use material_comment
Outputs the defined material as a string.
API:
string MILLTURN_GetMaterialComment()
I have tried cutting and pasting several different ways what you suggested, but it still doesn't post material. If it makes a difference I am using V27 build 9600. Simple script I can muddle through anything complicated I get overwhelmed.
I'm sorry,
seem with V27 doesn't work but with V31 works fine.
I haven't V27 and related documentation to try....
With V31 I've changed my post adding:
and output gcode is:Code:0. File header "%" comment_start," == == ",comment_end comment_start," == Created for RosettaCNC == ",comment_end comment_start," == by BobCAD-CAM v31 == ",comment_end comment_start," == == ",comment_end comment_start," == 5 Axis Mill - v1 == ",comment_end comment_start," == Table-Table AxCz - RTCP ON == ",comment_end " " default_add_spaces "O",prog_n force_no_add_spaces "; === PROGRAM INFO ===" "; NAME: ",prog_name "; POST: ",machine_make "; MACH: ",machine_model "; DATE: ",output_date "; TIME: ",output_time "; MATL: ",material_comment " " "; === TOOLS INFO ===" default_add_spaces output_tool_list user_comment_1 user_comment_2 user_comment_3 user_comment_4 user_comment_5 user_comment_6 user_comment_7 user_comment_8 user_comment_9 user_comment_10 user_comment_11 user_comment_12 user_comment_13 user_comment_14 user_comment_15 " "
Code:% == == == Created for RosettaCNC == == by BobCAD-CAM v31 == == == == 5 Axis Mill - v1 == == Table-Table AxCz - RTCP ON == O0100 ; === PROGRAM INFO === ; NAME: SWARF EXAMPLE 1.NGC ; POST: BC_TABLE_TABLE ; MACH: GENERIC FANUC ; DATE: TUE. 07/02/2019 ; TIME: 10:11PM ; MATL: Carbon Steel 1018 - Plain (100-125 HB) ; === TOOLS INFO === (MTOOL T1 S1 D0.5 C0. A0. H3.) ; FIRST MACHINE SETUP - MACHINE SETUP - 1 G00 G17 G20 G40 G49 G80 G90 G54 (FIRST CUT - FIRST TOOL) ; TOOL #1 0.5 1/2 FLAT ROUGH ENDMILL - STANDARD T1 M06 G54 C04.115 A-20.374
Variable names for use in scripting are different in different versions of BCC, ideally you need the variable list for the version you are working in, if a variable name is yielding an empty string it probably doesn't exist with that variable name in your version.
I quite like targeted ads if they're not intensely annoying so I'll enable ads when your advertisers stop using annoying sounds, annoying slideshows and annoying animations
Tried V31 script as suggested and only the hard code without the variable posted. I suspect that magicniner is correct that, if there is a variable name to output material it is different in V27. I did a quick google search for the list and didn't find it. Is this list available anywhere. I like tinkering with scripts although I'm not very skilled at it. Either way, I appreciate the help!
Take a look at this page if there is a equivalent variable: https://bobcad.com/components/webhel...elp_System.htm
Although there seems to be no variable for material output for V27, I do appreciate the link. Never knew list was right there waiting to be opened.
l
online help engine don't track in url the related page but you can watch the tree in image and discover all post-processor variables for V27
Mill_Post_Variables is the "Legacy" info with V28, the other document is "current documentation" as supplied with V28
I quite like targeted ads if they're not intensely annoying so I'll enable ads when your advertisers stop using annoying sounds, annoying slideshows and annoying animations
Here's for V26
Maybe some nuggets of info in here
WOW there is a similar document also for V31 ?
What the BCC documentation doesn't mention regarding Advanced Posting is that Check Boxes 1 to 24 are addressed as 0 to 23 in VB Script which can throw you a curve ball ;-)
I quite like targeted ads if they're not intensely annoying so I'll enable ads when your advertisers stop using annoying sounds, annoying slideshows and annoying animations