Why have you got the rotary that end? Has the direction been reversed to allow for it?
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.. :-(
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.. :-)
can anybody help me with this? PLEASE !!!
:-(
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
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?
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 !
:-) :-)
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.
:-)
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... :-)
Glad to hear it! So what did you actually do to make it work?