View Full Version : Why Come?


CharlieM
07-07-2005, 08:37 AM
I wrote this program manually, while trying to run it with K-Cam it stops before going to step 13! If I hit run again, it will take off again, but erases the first 12 steps! When it gets into the program the second time it will stop at the same place again?


This program will run from start to finish with Master5, and it seems to drive the stepper motors with more authority. Xylotec is my driver. I am cutting stainless steel.


G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.0300
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.0600
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.0900
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.1200
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.1500
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.1800
G01 X.1758 Y.0805 F3
G02 X.2417 Y.1571 R.0775
G01 X.4291 Y.1854
G02 X.5695 Y.1500 R.1875
G03 X.6445 Y.1250 R.1250
G01 X1.0737 Y.1250
G02 X1.3237 Y.0000 R.1563
G02 X1.0737 Y-.1250 R.1563
G01 X.6445 Y-.1250
G03 X.5695 Y-.1500 R.1250
G02 X.4291 Y-.1854 R.1875
G01 X.2417 Y-.1571
G02 X.1758 Y-.0805 R.0775
G01 X.1758 Y.0805
G01 X.0000 Y.0000 Z-.0000

HuFlungDung
07-07-2005, 11:38 AM
I backplotted the code in OneCNC to see how it looked, and it seems to be okay.

You might try modifying the arc commands from R to I and J, because many controllers have difficulty with R (because of potential ambiguity).

You could try modifying the 3 axis XYZ moves to an XY followed by the Z move, in case the controller is choking on the 3 axis interpolation.

MHINK
08-02-2005, 10:53 PM
Charlie,
I just did a cut and paste into Kcam 4.11 and the program plotted and ran.
I stopped when I got to about line 25.
Looks like some kind of handle? Or maybe a cannon profile.
Is your copy of Kcam the full registered versiion?
Good luck,
-Mark

CharlieM
08-03-2005, 08:33 AM
My version is 4.0.11, it is un-registered. As I write all my programs by hand, I did not think that I would ever need the full registered version.

The part is a rod for a "O" gauge Live Steam Locomotive.