586,731 active members*
2,740 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Post Processors for MC > Need to swith post to output X+ for X- and I+ for I-
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2016
    Posts
    4

    Question Need to swith post to output X+ for X- and I+ for I-

    I am trying to modify a post processor for a bed mill with a universal head.
    the machine can work in Z axis, Y axis, and X axis in both + and - directions.
    the machine is a butler with a fanuc series 6 control.

    i have a working post for the Z axis. its a modified 4 axis mill post and works great.
    however when programing the Y axis i use the back T/C Plane in mastercam, drawing the part in mastercam exactly how it sits on the machine.
    i have copied and edited my Z post to output all Z movements as Y movements,
    and vise versa to suit my machine.

    the problem is all my X axis co-ordinates are inverted because im using the back T/C Plane.
    because X is inverted, so is my I for rad centre.
    so far i have edited my post to output all X and I values with a + sign.
    then changing (X+ to X-)(X-- to X) and same for I.

    im desperate to find a way to get my post to swith + for - so i dont have to edit every program.
    ive tried using:

    xabs = xabs * -1 # <------Invert axis output

    on all rapid, feed, and circular
    movements but got funny results.

    any ideas?

  2. #2
    Join Date
    Sep 2013
    Posts
    2

    Re: Need to swith post to output X+ for X- and I+ for I-

    I had a similar mod but in the Y axis.
    Have you updated both xabs and xinc in both pfxout and pxout. the incremental will valid if your arc centre I is incremental.

  3. #3
    Join Date
    Mar 2016
    Posts
    3
    Change the veto somthing like that: axisx$ = rotv(p_vec_rot, axisx$)

  4. #4
    Join Date
    Feb 2016
    Posts
    4

    Re: Need to swith post to output X+ for X- and I+ for I-

    none of these seemed to work. I ended up adding the following lines under the # INITIALIZE - initialize system variables section of the post.


    #Position control variables
    x_mult : -1 #Multiplier for output on X axis
    y_mult : 1 #Multiplier for output on Y axis
    z_mult : 1 #Multiplier for output on Z axis

    this is the only thing that can do it properly. it simply multiplies all X values by -1, effectively inverting all X values.
    works a treat. can be used for any axis, even IJK's for rad centers.

Similar Threads

  1. post scripting output to xml????
    By MargoCNC in forum BobCad-Cam
    Replies: 1
    Last Post: 11-12-2015, 08:22 PM
  2. Change post to output A instead of B-how?
    By Tolyatti in forum Esprit
    Replies: 2
    Last Post: 06-09-2014, 03:16 PM
  3. Feature name in post output?
    By tlharris in forum BobCad-Cam
    Replies: 4
    Last Post: 02-14-2014, 02:39 AM
  4. Drum swith between VFD and Motor
    By saabman in forum Charter Oak Automation Support Forum
    Replies: 5
    Last Post: 12-31-2010, 04:21 PM
  5. Back EMF - Drive Sizing - Limit Swith Placement - 1125 oz-in Servos
    By Plugger in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 05-26-2010, 04:36 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
  •