Keith Larrett
08-09-2015, 08:04 PM
I would like to learn how to loop or repeat a file.
I purchased JointCam and have my jig set up, the software configured and am a happy camper cutting dovetails. The software and documentation behind it is very impressive!
The following file is an example of cutting the tail boards. I would like to have it repeat. I'd like for the machine to move to 0,0 and for the spindle to not turn off. Then I'd like a comment box to pop up asking "change the tail board" and when I click ok, after switching the tail board in the jig, the file would run again, and again, and again etc
Any help on what I need to add to the file to achieve this would be much appreciated!
'( Code created by JointCAM )
G40
SA
'( Left Tails )
'( Stock Width = 2.95 )
'( Side Thickness = 0.51 )
'( Tool #12 - 8 Degree Dovetail Bit )
'( Diameter = 0.375 )
'( Length = 0.5 )
JZ, 1.0000
TR 12000
SO, 1,1
PAUSE 3
MS, 0.7, 0.7
J2, 0.0525, 17.0500
JZ, -0.3319
M2, 0.0525, 20.6000
J2, -0.0913, 17.1063
M2, 0.9250, 17.1063
M2, 0.9250, 17.2750
M2, 0.3775, 17.2750
CG, , 0.0552, 17.5973, 0.0000, 0.3223, T, 1
CG, , 0.3775, 17.9196, 0.3223, 0.0000, T, 1
M2, 0.7938, 17.9196
M2, 0.3775, 17.9196
CG, , 0.0552, 18.2419, 0.0000, 0.3223, T, 1
M2, 0.0552, 18.3669
CG, , 0.3775, 18.6892, 0.3223, 0.0000, T, 1
M2, 0.7938, 18.6892
M2, 0.7938, 18.8108
M2, 0.3775, 18.8108
CG, , 0.0552, 19.1331, 0.0000, 0.3223, T, 1
M2, 0.0552, 19.2581
CG, , 0.3775, 19.5804, 0.3223, 0.0000, T, 1
M2, 0.7938, 19.5804
M2, 0.3775, 19.5804
CG, , 0.0552, 19.9027, 0.0000, 0.3223, T, 1
CG, , 0.3775, 20.2250, 0.3223, 0.0000, T, 1
M2, 0.9250, 20.2250
J2, -0.1850, 20.2250
JZ, 0.1250
SO, 1,0
M5
JZ, 2.7500
J2, 0.0000, 0.0000
END
I purchased JointCam and have my jig set up, the software configured and am a happy camper cutting dovetails. The software and documentation behind it is very impressive!
The following file is an example of cutting the tail boards. I would like to have it repeat. I'd like for the machine to move to 0,0 and for the spindle to not turn off. Then I'd like a comment box to pop up asking "change the tail board" and when I click ok, after switching the tail board in the jig, the file would run again, and again, and again etc
Any help on what I need to add to the file to achieve this would be much appreciated!
'( Code created by JointCAM )
G40
SA
'( Left Tails )
'( Stock Width = 2.95 )
'( Side Thickness = 0.51 )
'( Tool #12 - 8 Degree Dovetail Bit )
'( Diameter = 0.375 )
'( Length = 0.5 )
JZ, 1.0000
TR 12000
SO, 1,1
PAUSE 3
MS, 0.7, 0.7
J2, 0.0525, 17.0500
JZ, -0.3319
M2, 0.0525, 20.6000
J2, -0.0913, 17.1063
M2, 0.9250, 17.1063
M2, 0.9250, 17.2750
M2, 0.3775, 17.2750
CG, , 0.0552, 17.5973, 0.0000, 0.3223, T, 1
CG, , 0.3775, 17.9196, 0.3223, 0.0000, T, 1
M2, 0.7938, 17.9196
M2, 0.3775, 17.9196
CG, , 0.0552, 18.2419, 0.0000, 0.3223, T, 1
M2, 0.0552, 18.3669
CG, , 0.3775, 18.6892, 0.3223, 0.0000, T, 1
M2, 0.7938, 18.6892
M2, 0.7938, 18.8108
M2, 0.3775, 18.8108
CG, , 0.0552, 19.1331, 0.0000, 0.3223, T, 1
M2, 0.0552, 19.2581
CG, , 0.3775, 19.5804, 0.3223, 0.0000, T, 1
M2, 0.7938, 19.5804
M2, 0.3775, 19.5804
CG, , 0.0552, 19.9027, 0.0000, 0.3223, T, 1
CG, , 0.3775, 20.2250, 0.3223, 0.0000, T, 1
M2, 0.9250, 20.2250
J2, -0.1850, 20.2250
JZ, 0.1250
SO, 1,0
M5
JZ, 2.7500
J2, 0.0000, 0.0000
END