Results 1 to 7 of 7

Thread: Adding stock size to a post... not working the way I want

  1. #1
    Registered
    Join Date
    Jul 2005
    Location
    usa
    Posts
    176
    Downloads
    0
    Uploads
    0

    Adding stock size to a post... not working the way I want

    I am atempting to add my stock size to my post. I am editing the genaric fanuc x3 post. Here is my code...

    PHP Code:
    sopen_prn"STOCK SIZE - X-"stck_ht$, " Y-"stck_wdth$, " Z-"stck_thck$, sclose_prne
    and here is what its ouputting...

    PHP Code:
    (STOCK SIZE X-stck_ht3.75 Y-stck_wdth3.75 Z-stck_thck2.
    Here is what I want it to look like...

    PHP Code:
    (STOCK SIZE X-3.75 Y-3.75 Z-2.
    Can anyone help me by telling me what I am doing wrong?


  2. #2
    Registered
    Join Date
    Jul 2005
    Location
    usa
    Posts
    176
    Downloads
    0
    Uploads
    0
    Also tried this...

    PHP Code:
    fmt X 18 stck_ht     # X - Stock Height
    fmt Y 18 stck_wdth   # Y - Stock Width
    fmt Z 18 stck_thck   # Z - Stock Thickness
    fmt X  2 stck_x      # X origin of block
    fmt Y  2 stck_y      # Y origin of block
    fmt Z  2 stck_z      # Z origin of block



    sopen_prn"STOCK SIZE - "*stck_ht" ", *stck_wdth" ", *stck_thcksclose_prne$
    sopen_prn"STOCK ORIGIN - "*stck_x" ", *stck_y" ", *stck_zsclose_prne
    And get all zeros for output...

    PHP Code:
    (STOCK SIZE X00.00 Y00.00 Z00.00)
    (
    STOCK ORIGIN X0Y0Z0.) 


  3. #3
    Registered
    Join Date
    Jul 2005
    Location
    usa
    Posts
    176
    Downloads
    0
    Uploads
    0

    Unhappy

    Nobody wanna give it a shot?


  4. #4
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    217
    Downloads
    0
    Uploads
    0

    Might Try a Mastercam Forum.

    Maybe a stupid question but do you have this set-up in the operations page for Stock. Mastercam needs it here to have information to out put. Also there are now 20 different version of Mastercam floating around, and V9 post act differently that X post, X2, and X3 posts do. Saying for what version goes a long way for helping people help you.

    If you look at the Mill.SET they have everything in them to do what you are looking to do. Rob Peter to pay Paul is something I recommend so take information from there put in your post and that should help solve some of your problem. If you use fmt statements that are not supported you will see what you are seeing.

    Looking at it I see a big problem however. You have $ on your varaiables in some places and not others so either you working on a V9 post taking stuff from the X post or you are working on a X post taking stuff from the V9 post either way this is not going to work. So if in V9 you do not use $ if in X you could use $. So if they had them they need them or the post does not see them as system variables and will post out 0,0,0 every time.


  • #5
    Community Director cadcam's Avatar
    Join Date
    Apr 2003
    Location
    United States
    Posts
    3,136
    Downloads
    0
    Uploads
    0
    So you are trying to get info like this when posting.

    Review Picture. this also takes care of offsets and what ones are used.
    What Machine are you going to use this on? oh ya what version to of MC.
    Attached Thumbnails Attached Thumbnails Adding stock size to a post... not working the way I want-stockpost.jpg  
    Last edited by cadcam; 09-21-2008 at 02:56 PM.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
    Cadcam
    Owner, contract Programming and Consultant , Mastercam Instructor and on line trainer at www.eapprentice.net
    Some tips: http://www.youtube.com/PrecisionProgramming


  • #6
    Registered
    Join Date
    Jul 2005
    Location
    usa
    Posts
    176
    Downloads
    0
    Uploads
    0
    Mastercam X3 with a Haas VF-2

    Yes I am trying to have it output this at the top of my post. Do you happen to have one that already does this for this machine?


  • #7
    Community Director cadcam's Avatar
    Join Date
    Apr 2003
    Location
    United States
    Posts
    3,136
    Downloads
    0
    Uploads
    0
    Send me an email I have some thing for you.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
    Cadcam
    Owner, contract Programming and Consultant , Mastercam Instructor and on line trainer at www.eapprentice.net
    Some tips: http://www.youtube.com/PrecisionProgramming


  • Similar Threads

    1. Problem- need a good working mach 3 post
      By woffler in forum BobCad-Cam
      Replies: 8
      Last Post: 09-11-2008, 09:36 PM
    2. Problem- Stock size? new patch
      By mikeh78 in forum BobCad-Cam
      Replies: 9
      Last Post: 08-22-2008, 03:07 PM
    3. Need Help!- Working with stock thickness material.
      By svatchi in forum Work Fixtures and Hold-Down Solutions
      Replies: 1
      Last Post: 03-29-2008, 09:36 AM
    4. Help with adding subprograms to post processor
      By creep_pea in forum Post Processors for MC
      Replies: 9
      Last Post: 11-13-2006, 11:56 AM
    5. Defining Stock Size In BobCADCAM
      By jonbanquer in forum BobCad-Cam
      Replies: 3
      Last Post: 01-25-2006, 07:58 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.