585,679 active members*
5,104 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > MadCAM > Post variable *FILE_NAME*
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2013
    Posts
    36

    Post variable *FILE_NAME*

    Hi all,
    Has anyone had any luck in getting the *FILE_NAME* function to work? This would be very helpful.
    Many thanks,
    Outlier

  2. #2
    Join Date
    Feb 2018
    Posts
    7
    Quote Originally Posted by outlier View Post
    Hi all,
    Has anyone had any luck in getting the *FILE_NAME* function to work? This would be very helpful.
    Many thanks,
    Outlier
    Change in the line more down in the post “FILE_NAME” to “prgnr”

  3. #3
    Join Date
    Feb 2018
    Posts
    7
    Quote Originally Posted by outlier View Post
    Hi all,
    Has anyone had any luck in getting the *FILE_NAME* function to work? This would be very helpful.
    Many thanks,
    Outlier
    Change in the line more down in the post “FILE_NAME” to “prgnr”

  4. #4
    Join Date
    Nov 2013
    Posts
    36

    Re: Post variable *FILE_NAME*

    Hi All,

    It appears that I seriously asked the wrong questions maybe this thread can be deleted by the moderators. See newer version with "documentname" variable. Apologies .... -O

  5. #5
    Join Date
    Feb 2018
    Posts
    7

    Re: Post variable *FILE_NAME*

    Hello Outlier,

    if you want to get on top the name of your program inside the NC file then try this for the Osai control in the postprocessor:


    //MadCAM
    *VERSION*
    1.0_031210
    *FILE_NAME*
    ;Osai
    *FILE_EXTENSION*
    nc
    *FILE_DEST*
    c:\postfiles\
    *FILTER*
    0.001
    *OUTPUT_WIDTH*
    4
    *OUTPUT_DECIMALS*
    2
    *SCALE_1*
    .
    ..
    ..
    ...
    .
    ....
    .
    ...



    *PROGRAM_START*
    N"lnbr" ; Nc gegenereerd op: "datetime"
    N"lnbr" ;Documentname : "pgmnr"
    N"lnbr" (UOT,"Origin_number", X0,Y0,Z0,B0,C0)
    N"lnbr" M185 ; Convertor on
    N"lnbr" G00 G79 Z0 "azero" "bzero"
    N"lnbr" G71 G90
    N"lnbr" ; -----END OFF PROGRAM_START-----
    *END_SECTION*

    Or for the Fanuc change the line like here below:

    N"lnbr" (Documentname : "pgmnr")

Similar Threads

  1. Assigning post variable to Vbscript variable
    By vfsi in forum BobCad Post Processors
    Replies: 6
    Last Post: 10-18-2016, 01:30 PM
  2. Mastercam Post variable question
    By CimUser2000 in forum Mastercam
    Replies: 3
    Last Post: 03-10-2014, 01:58 AM
  3. Mill Post Variable for flute length?
    By Alf0412 in forum BobCad-Cam
    Replies: 2
    Last Post: 10-26-2012, 05:04 PM
  4. Question on a post variable
    By Ydna in forum Mastercam
    Replies: 2
    Last Post: 06-11-2012, 02:59 AM
  5. EMC2 variable pitch / variable diameter threading.
    By samco in forum MetalWork Discussion
    Replies: 0
    Last Post: 03-09-2008, 07:40 PM

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
  •