Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: avirostick on March 26, 2009, 05:58:54 PM

Title: My program won't run
Post by: avirostick on March 26, 2009, 05:58:54 PM
I wrote up a simple program with my Kentech Kipware M software. It transfered onto my Mach3 screen easy enough. After setting offsets and zeroing, I figured I would just hit cycle start and go. I must be missing something, because all I get is a "Bad character used" message. The Kipware default is Fanuc. I think it must have something to do with a step I'm missing between writing program, and transferring it to Mach, but I'm new and don't know what to do. Thanks a lot for helping me with this.
Title: Re: My program won't run
Post by: Hood on March 26, 2009, 06:17:50 PM
Attach your code and someone will know what it is but the most common one is typing the letter O instead of a Zero 0

Hood
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 08:52:46 PM
The manufacturer said that some codes in fanuc aren't compatable with Mach, like G28. This might be it. I'll see about posting the program here in a bit.
Title: Re: My program won't run
Post by: Hood on March 26, 2009, 08:59:41 PM
G28 is a valid Mach command.
Hood
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 09:19:01 PM
This has been a long day. I tried to paste the program up here for all to view. Now I can't even do that because the files simply won't open. They load up in Mach, and come up on the screen, but I can't simply open them up through Adobe or view them to copy and paste. How do you guys show your programs?
Title: Re: My program won't run
Post by: Hood on March 26, 2009, 09:22:22 PM
You can attach it by using the additional options button on the reply page, you may have to rename it if someone has already attached a file with the same name.
Hood
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 09:25:33 PM
I'll try it right now, but I'm not promising it will work.
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 09:41:33 PM
I understand what you mean about the icons on the reply screen but i'm still not able to attach the code this way yet. Can I send you a pic of my code as it is on the Mach screen? I'm uploading the pics as we speak.
Title: Re: My program won't run
Post by: Hood on March 26, 2009, 09:45:32 PM
This is how you attach the files, once you clcik on the addition options button you will see as in the pic below, just click on choose and browse your drive to the location of the file and select it.
Hood
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 10:15:06 PM
I tried to attach pics, don't think they went through though. I'll try somehow to attach the code some other way. Thanks.
Title: Re: My program won't run
Post by: Hood on March 26, 2009, 10:18:34 PM
Will look tomorrow, its 2:30 am here so off for some sleep.
Hood
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 11:09:48 PM
Here's my program. I have 3 screen shots, but I think there's enough to see if I'm doing something wrong,
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 11:17:52 PM
And scrolled down a bit...
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 11:20:11 PM
Last one...
Title: Re: My program won't run
Post by: RICH on March 26, 2009, 11:21:50 PM
avirostick,
If the program opens in MACH then just click EDIT , then save as a text file with a name of your choice.
I will assume that you have notepad as your default editor.
You can use the saved file for posting to this site. Suggest you find out what Fanuc gcode generated from
your program are not compatable with Mach. Usualy a program will provide a "post processor" specific for another program whch magicly changes the code such that it is usable for the recieving program.
Sorry but i know nothing about Fanuc specifcs.

I see you posted but will still post this.
RICH
Title: Re: My program won't run
Post by: avirostick on March 26, 2009, 11:26:05 PM
Ok. I needed to get that info down for attaching stuff in the future. Thanks for the heads up. I'm sure it will help.
Title: Re: My program won't run
Post by: Hood on March 27, 2009, 06:18:11 AM
I see a few problems but I am not the best a Gcode especially when subs etc are present I will see if Graham will have a look.
Hood
Title: Re: My program won't run
Post by: avirostick on March 27, 2009, 08:42:38 AM
I got it straightened out now. I was not starting the program in the correct place. Actually, I had too much going on in the beginning of my program and it couldn't read it correctly. Thanks a lot Hood for your help, and Rich too. I'll know how to properly attach code to the forum in the future.