584,879 active members*
5,224 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2020
    Posts
    2

    Invert axis vector machine

    Hi,

    I'm a beginner in the writing of post processor (… and in English too).

    I have this G-code: G01 X100 Y-200 Z-10
    with solidcam coordinate system (see attached picture 1)

    I want this code: G01 X100 Y200 Z10
    to match with my cnc machine.

    I try to rotate the x axe machine with id machine editor (see attached picture 2)

    But the G-code generate don’t change, I don't think that's the way to do it.

    Can someone help me figure out the right way to do this?
    Thanks

  2. #2
    Join Date
    May 2013
    Posts
    37

    Re: Invert axis vector machine

    You can adding 3 new variables to gpp file and set the values like that:

    global integer dirX dirY dirZ


    dirX = 1
    dirY = -1
    dirZ = -1

    after that u can use find/replace feature with "match whole word" option and replace all:

    xpos
    by
    (xpos * dirX)

    ypos
    by
    (ypos * dirY)

    zpos
    by
    (zpos * dirZ)

    I'm guessing that your mach3 have wrong configuration. And you should by checking that first. I'm don't know how it working with drilling cycles. So please be careful!!

    Attachment 437506 Click image for larger version. 

Name:	2020-02-29 23_25_44-.jpg 
Views:	2 
Size:	30.3 KB 
ID:	437508

  3. #3
    Join Date
    Feb 2020
    Posts
    2

    Re: Invert axis vector machine

    Thank you very much for your reply.
    Can someone tell me what the machine parameter orientation vector option is for (in id machine editor)?
    Just one more thing, i don't have a mach3 but a Masterwood project 415.

  4. #4
    Quote Originally Posted by partur View Post
    You can adding 3 new variables to gpp file and set the values like that:

    global integer dirX dirY dirZ


    dirX = 1
    dirY = -1
    dirZ = -1

    after that u can use find/replace feature with "match whole word" option and replace all:

    xpos
    by
    (xpos * dirX)

    ypos
    by
    (ypos * dirY)

    zpos
    by
    (zpos * dirZ)

    I'm guessing that your mach3 have wrong configuration. And you should by checking that first. I'm don't know how it working with drilling cycles. So please be careful!!

    Attachment 437506 Click image for larger version. 

Name:	2020-02-29 23_25_44-.jpg 
Views:	2 
Size:	30.3 KB 
ID:	437508
    hi sir
    how are you
    i think you can help me
    i have rotary axis with 0 to 360 degree
    and this rotary use +,- for direction rotation
    for exaple goes A10
    next goes A20 rotary turn 10 degrees

    next goes A40 rotary turn 20 degree
    if i want rotary goes to A20 i must write A-20!
    if i write A20 rotary turn 340 degree becuse i dont write +,- sign for true direction
    i dont know about change and edit pp and true code!
    thx

Similar Threads

  1. Unknown milling machine - VECTOR?
    By MR_Rose in forum Drilling- and Milling Machines
    Replies: 1
    Last Post: 01-31-2020, 08:00 PM
  2. Vector programming for 5 axis
    By tomoboss1 in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 1
    Last Post: 06-10-2016, 03:29 AM
  3. g code - invert X axis after one pass...
    By dodman in forum G-Code Programing
    Replies: 0
    Last Post: 07-08-2013, 09:32 AM
  4. Table setup - Axis invert
    By horse in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 02-28-2006, 03:45 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
  •