Hi All, me again and yes, another problem that I hope you guys can help with.
I've got a fixture set up in which I have 6 parts fitted. The plan at first was to manually pick each profile etc to machine the array of parts, but then I found the transform button. Oh what joy and how easy was that. Right up until I tried to run the program on the machine.
I chose the transform - matrix and then set the parameters for 6 rows at 111mm step.
Just for reference. I'm using a Fadal 3016 with Fanuc 0i control.
I must apologise now as I'm sitting in an internerd cafe writing this so I don't have the generated program in front of me, but it used code I was unfamiliar with (being a newbie and all) such as a WHILE statement at the start and an END1 at the end.
Also had a line: G10 G91 L2 P2 X111 Y0 Z0
Immediately followed by: G90
Anyway, the X111 relates to the fact that I want to move the datum inrementally 111mm in X, and 0mm in Y & Z.
To give more idea of how I'm (trying) to do this, I've got a main program that calls each operation as a sub program using M98. It's worked perfectly for me so far, and is quick and easy to edit each sub program without having to scroll through pages of code, but all that happened was it jumped from the main program to the sub program and then machined the same pair of holes 6 times, instead of incrementing 111mm onto the next piece.
I had a flick through the docs I have and it appears that you can't have a subroutine in a subprogram. So I messed with the program a little and put it in the main program, but it did exactly the same thing.
The only way I've managed to solve this without completely redoing the CAM bit is to set the 6 datums as G54 thru to G59, calling the subprogram at each line. It works fine but is a little long winded, especially as a job I have coming up soon would be a piece of cake if I can get this transform thing to work.
If anyone has any bright ideas I would be most grateful as I want to start cutting tomorrow, but I'll redo the code in the morning to use the G54~G59 codes as I've already tested, unless you chaps can help.
I'll also make sure that I have the generated program to hand next time I log into this forum as I'm sure that it's be far more useful that me babbling on.
Just as an example. Say you wanted to drill one hole, and then transform this a couple of times along the part, using the translate thingy. How should the code come out?
Well, that's all for now. I'll go sleep on it.
Thanks for listening.
Matt.