Post variable *FILE_NAME*


Results 1 to 5 of 5

Thread: Post variable *FILE_NAME*

  1. #1

    Default 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

    Similar Threads:


  2. #2
    Member
    Join Date
    Feb 2018
    Location
    Netherlands
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default

    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
    Member
    Join Date
    Feb 2018
    Location
    Netherlands
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default

    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

    Default 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
    Member
    Join Date
    Feb 2018
    Location
    Netherlands
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default 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")



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

Post variable *FILE_NAME*

Post variable *FILE_NAME*