Newbie Invert axis vector machine


Results 1 to 4 of 4

Thread: Invert axis vector machine

  1. #1
    Member aliasjb's Avatar
    Join Date
    Feb 2020
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Invert axis vector machine-sans-titre-2-jpg   Invert axis vector machine-sans-titre-1-jpg  


  2. #2
    Member partur's Avatar
    Join Date
    May 2013
    Location
    United Kingdom
    Posts
    37
    Downloads
    0
    Uploads
    0

    Default 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!!

    Invert axis vector machine-2020-02-29-23_23_26-greenshot-jpg Invert axis vector machine-2020-02-29-23_25_44-jpg



  3. #3
    Member aliasjb's Avatar
    Join Date
    Feb 2020
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default 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.

    Attached Thumbnails Attached Thumbnails Invert axis vector machine-img_6724-jpeg  


  4. #4
    Member Mhook's Avatar
    Join Date
    Aug 2017
    Location
    1486433
    Posts
    98
    Downloads
    0
    Uploads
    0

    Default

    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!!

    Invert axis vector machine-2020-02-29-23_23_26-greenshot-jpg Invert axis vector machine-2020-02-29-23_25_44-jpg
    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



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

Invert axis vector machine

Invert axis vector machine