Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: G-code not working !!!!

  1. #1
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    G-code not working !!!!

    I can't seem to get the A and Y to move together, keeps saying 'syntax error in wrong mode'
    any ideas people??

    N10G90 G40
    N20T3
    N30S850 M3
    N40G0 X10.0 Y0.0 A0.0 M8
    N50G0 Z38.0
    N60G1 Z37.0 F250
    N70G1 Y4.0
    N80G1 X-34.0
    N90G1 A-90.0 Y-4.0 F250

    attached is what I AM TRYING TO MAKE (AND CODE i WROTE FOR IT)
    WANT TO US A SUB PROGRAM CALL FOR THE REPEAT PECK BUT NOT SURE HOW TO DO IT?

    My A axis is mounted on the LEFT of my table...

    ANY HELP MUCH APPRECIATED GUYS,
    THANKS. :-)

    MAYBE A SAMPLE G-CODE FOR ME TO GET MY HEAD ROUND. :-)

    I only have Hurco BASIC NC... not isnc.. :-(
    Attached Thumbnails Attached Thumbnails G-code not working !!!!-beyonet.jpg   G-code not working !!!!-bayonet_2.jpg  
    Attached Files Attached Files


  2. #2
    Registered
    Join Date
    Jun 2008
    Location
    England
    Posts
    733
    Downloads
    0
    Uploads
    0
    Why have you got the rotary that end? Has the direction been reversed to allow for it?


  3. #3
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by bloke View Post
    Why have you got the rotary that end? Has the direction been reversed to allow for it?
    Hi Bloke,
    It's good to hear from you again.

    I put the A axis at that end for a particular job we where doing,
    I have just left it there, didnt seem to be a problem.

    No havent reversed direction as not sure how to.. :-(

    Do you think I should put it back on the right?

    Can you see what I have done wrong with the G-code??

    Thanks for any help.. :-)


  4. #4
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0
    can anybody help me with this? PLEASE !!!

    :-(


  • #5
    Registered
    Join Date
    May 2005
    Location
    UK
    Posts
    114
    Downloads
    0
    Uploads
    0
    Not sure I can help, but I hate to see you left hanging...

    Maybe obvious, but have you tried changing the line to put the Y in front of the A?

    Technically the format for G1 is X_ Y_ Z_ A_ B_ F_

    Your line N40 doesn't error out and the Y is in front of the A. I am not convinced that it'll make any difference, but it's something to try...

    You're not losing much by not having ISNC, but I'm not sure how BNC handles subs, if at all.

    If you want to try anyway the format is M98 Pxyyyy, where x is the number of repetitions (can be up to four digits, leading zeros are NOT necessary) and yyyy is a four digit program number (MUST be four digits, use leading zeros if necessary). Your subprogram must end with M99 instead of M30.

    Hope this gets you going.

    Gregor


  • #6
    Registered
    Join Date
    Jun 2010
    Location
    USA
    Posts
    32
    Downloads
    0
    Uploads
    0
    I can't really get a good view of your drawings, but I don't see why A and Y need to be moving at the same time. You sure you can't just separate those onto 2 lines?


  • #7
    Registered
    Join Date
    May 2005
    Location
    UK
    Posts
    114
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by MILLMARK View Post
    I can't really get a good view of your drawings, but I don't see why A and Y need to be moving at the same time. You sure you can't just separate those onto 2 lines?
    That was my first impression as well, but after I though about it for a minute, it does need to, unless you stop halfway through the A move and shift the Y.
    Which would work, but not very elegant...


  • #8
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by gthlm View Post
    Not sure I can help, but I hate to see you left hanging...

    Maybe obvious, but have you tried changing the line to put the Y in front of the A?

    Technically the format for G1 is X_ Y_ Z_ A_ B_ F_

    Your line N40 doesn't error out and the Y is in front of the A. I am not convinced that it'll make any difference, but it's something to try...

    You're not losing much by not having ISNC, but I'm not sure how BNC handles subs, if at all.

    If you want to try anyway the format is M98 Pxyyyy, where x is the number of repetitions (can be up to four digits, leading zeros are NOT necessary) and yyyy is a four digit program number (MUST be four digits, use leading zeros if necessary). Your subprogram must end with M99 instead of M30.

    Hope this gets you going.

    Gregor
    Thanks SO SO much Gregor.

    It has helped me no end to actually understand more about the convention of G-code and the way is should be constructed..It actually STANDS OUT A MILE now you point it out..

    I will try the sub program thing when Im in work tomorow now.

    Thanks again for your help, I was begining to think I would never know !

    :-) :-)


  • #9
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by gthlm View Post
    That was my first impression as well, but after I though about it for a minute, it does need to, unless you stop halfway through the A move and shift the Y.
    Which would work, but not very elegant...
    I need to move the Y and A together to bring the tool to the correct point to continue to machine back into the bayonet.

    As you say stopping would leave a small dwell witch would cause a less the smoth movement of the pin as it moves through the bayonet..not good for me :-(
    But now I think with Gregors kind assistance that I can solve this for good.
    :-)


  • #10
    Registered
    Join Date
    Dec 2010
    Location
    usa
    Posts
    4
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by xray34 View Post
    I can't seem to get the A and Y to move together, keeps saying 'syntax error in wrong mode'
    any ideas people??

    N10G90 G40
    N20T3
    N30S850 M3
    N40G0 X10.0 Y0.0 A0.0 M8
    N50G0 Z38.0
    N60G1 Z37.0 F250
    N70G1 Y4.0
    N80G1 X-34.0
    N90G1 A-90.0 Y-4.0 F250

    attached is what I AM TRYING TO MAKE (AND CODE i WROTE FOR IT)
    WANT TO US A SUB PROGRAM CALL FOR THE REPEAT PECK BUT NOT SURE HOW TO DO IT?

    My A axis is mounted on the LEFT of my table...

    ANY HELP MUCH APPRECIATED GUYS,
    THANKS. :-)

    MAYBE A SAMPLE G-CODE FOR ME TO GET MY HEAD ROUND. :-)

    I only have Hurco BASIC NC... not isnc.. :-(
    If you have conversational/nc merge just use a conversational rotary position move, i suggest getting the isnc option, trust bnc is garbage it was design in the 70's


  • #11
    Registered
    Join Date
    Apr 2008
    Location
    united kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0
    all sorted, a little code tweaking and all is well.

    Thanks to everyone for their comments and advice.

    I love this forum its just full of experience and expertise!!

    Thanks all... :-)


  • #12
    Registered
    Join Date
    May 2005
    Location
    UK
    Posts
    114
    Downloads
    0
    Uploads
    0
    Glad to hear it! So what did you actually do to make it work?


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Image to g code, not working?
      By CaptainVee in forum LinuxCNC (formerly EMC2)
      Replies: 4
      Last Post: 03-15-2011, 11:54 AM
    2. Converting Fanuc G code to Seimens 840D G code
      By Jasbinder in forum Siemens Sinumerik CNC controls
      Replies: 2
      Last Post: 02-20-2011, 11:02 AM
    3. Replies: 8
      Last Post: 12-15-2010, 03:32 PM
    4. G CODE NOT WORKING ANYMORE from Vectric cut2d and 3d
      By TZak in forum LinuxCNC (formerly EMC2)
      Replies: 3
      Last Post: 03-01-2009, 10:51 AM
    5. looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft
      By troyswood in forum Ability Systems - LPT Indexer and G-Code
      Replies: 2
      Last Post: 12-24-2006, 10:21 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.