Newbie Need Help with G2


Results 1 to 11 of 11

Thread: Need Help with G2

  1. #1
    Registered
    Join Date
    Aug 2017
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Need Help with G2

    Hi,
    very nice site.
    So I have started reading the G-CODE manual and I found that I can stop the G2 movement at a specific X o(or Y) without calculating the Y (or X).
    I have attached a ss of the relevant part of the manual.
    you can see in the bottom that theoretically the movements stops at x=10,y=99.499
    When I try this with my machie - It plots the error - because he thinks i am trying to get to (-10,70.711).

    so bottom line - How can I stop G2 movement by stating only one coordinate?

    Attached Thumbnails Attached Thumbnails Need Help with G2-capture-png  


  2. #2
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Post your code which gives error.

    In any G-code, if some coordinate value is not changing, then it need not be explicitly programmed. Machine would assume this.



  3. #3
    Registered
    Join Date
    Aug 2017
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Quote Originally Posted by sinha_nsit View Post
    Post your code which gives error.

    In any G-code, if some coordinate value is not changing, then it need not be explicitly programmed. Machine would assume this.
    Yes, I know this.
    But if you check the bottom of the ss. The manual shows that you can stop at a different coordinate without stating it.

    He choose x=10 and the arc stopped when the tool got to x=10..resulting in y=99.499.

    How can I achieve that also?

    p.s
    I used the same code from the manual



  4. #4
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Need Help with G2

    Ah, but what program are you using to drive the CNC?
    Not all programs do what they claim.
    And you need to be a shade cautious with arcs, as the controller NEEDs certain info to work.

    Cheers
    Roger



  5. #5
    Registered Fletch_CNC's Avatar
    Join Date
    Jun 2015
    Location
    United States
    Posts
    119
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Quote Originally Posted by eliko2000 View Post
    The manual shows that you can stop at a different coordinate without stating it.
    Is it the manual for your machine, or a general G-code manual? That makes a big difference. Have you tried inputting the Y-coordinate on the line, just to make sure there isn't something else wrong with the code you've entered?

    ________________________________________________
    My blog: http://www.fletch1.com


  6. #6
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Need Help with G2

    I found the instruction in the JPG rather confusing anyhow. They just didn't make sense.At least, some strange errors.
    Chinese manual maybe?

    Cheers
    Roger



  7. #7
    Registered
    Join Date
    Aug 2017
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Quote Originally Posted by RCaffin View Post
    I found the instruction in the JPG rather confusing anyhow. They just didn't make sense.At least, some strange errors.
    Chinese manual maybe?

    Cheers
    Roger
    I have Okuma MULTUS MB46 and it uses OSP-P300M.
    The ss is from the manual from the machine itself.

    When I addd the Y coordinate it works.
    I'm just trying to use this feature from the manual but it seems that I cant.
    Any Ideas?

    p.s
    The manual is Japanese

    Last edited by eliko2000; 08-10-2017 at 02:35 AM.


  8. #8
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Need Help with G2

    I think the manual is just plain wrong. You will need to create your own test program, using either the R format or the IJK format.
    You will also need to check whether you are in absolute or relative mode. Chuckle - this is where everyone has some problems!

    Cheers
    Roger



  9. #9
    Registered
    Join Date
    Aug 2017
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Thanks for replying so quickly.
    I did wrote my own program with IJK while being in G90.
    From your experience is there a possibility to stop the arc movement in a specific x or y?



  10. #10
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Need Help with G2

    There's usually no problem in the IJK format with specifying the destination with just X OR Y.
    After all, you have the centre and the start points, so you can calculate the radius. Then you solve the quadratic for the two results you always get and pick the appropriate (nearest) one.

    I don't think you can do that with the R format: not enough constraints.
    EDIT: I was partly wrong. Oops! Sorry.
    IF the controller can assume that the unspecified axis has not changed, then there are enough constraints to solve for the centre of the circle.
    So if you are at -1,0 and you specify G2 going to X=+1 with R=1.5 AND the controller assumes an unchanged Y value, then it works.

    Cheers
    Roger

    Last edited by RCaffin; 08-10-2017 at 06:33 AM.


  11. #11
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Need Help with G2

    Quote Originally Posted by eliko2000 View Post
    From your experience is there a possibility to stop the arc movement in a specific x or y?
    I do not think so, though it may be control-dependent.
    If you do not specify, say, X, then same X (that of the start point) is assumed. A different Y would be an impossible arc.



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

Need Help with G2

Need Help with G2