|Home » Forums » CNC » Message||Login|
You are not logged in. Consider these WOODWEB Member advantages:
Code For Continious Loop Machineing11/21
I need to alter code so that our Komo (Inova 510) will machine a part, move away, and sit (M00) until we change parts and then machine again after pushing cycle start. Machine runs with Fanuc series 21/210MB. We also use RouterCim 8.2
If the part is done and you change parts, then have to go over to your control st get the cycle started again. Why don't you just re-run the program. It seems to me that this is what you are doing. If you need to stop and park so you can clear off or something and them continue with your program that is totally something different. That you can do with something like this.
G00 Z2.500 (This is to raise to a safe height)
Then put in where you want to go after you do what you need to do, start the spindle if it's off .
Then start the control again to continue your run.
Maybe something like this:
How about something like this:
All your Start Program stuff goes here.....
G00 G70 G40
SET GZERO=0 (1=G01, 0=G00)
(TABLE: 0= ONCE Y, 1= Y TABLE LOOP)
(NOSPACER: 0=THERE IS A SPACER, 1=THERE IS NO SPACER)
( X&Y Fixture Offsets Y TABLE )
(************* CONTROL LOOP *************)
M80L1 (START OF CONTROL LOOP)
G902 ( Y TABLE REFERENCE )
G51 X10.2704 Y59.6912 (or G51 Xx.xxx Yy.yyy)(This the X0 Y0 Z0 position)
G51 X58.2704 Y59.6912 (or G51 Xx.xxx Yy.yyy) (This will move 48 inches in the x direction)
G51 X10.2704 Y59.6912 (or G51 Xx.xxx Yy.yyy) (back to the original 1st G51)
G51 X58.2704 Y59.6912 (or G51 Xx.xxx Yy.yyy) (back to the original 2nd G51)
(Just put the above as many times as you want to loop your program)
(===== Ending Section ===============)
(Start of sub routine.....)
Your program will start here..........................
(TOOL CHANGE T2 45d Insert Cutter CONTOUR iOP: 15 )