Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNC stips out first line of program

Status
Not open for further replies.

knobhead

Aerospace
Mar 6, 2001
184
Hi all, we're using Edgecam's DNC system to send and recieve programs to our CNC machines. My problem is it seem to always delete the very first line of any program each time it is used.

Normally not a problem so much, but if a program is sent back and forth a few times (edits, backups, etc) then it becomes a problem. We nearly had a huge crash where it had deleted a G10 datum set line at the top of the program, but fortunatly the operator caught it.

Any ideas on why it does this?


Excessive accuaracy is a sign of poor breeding. -Socrates.
 
Replies continue below

Recommended for you

Maybe the first line needs to be:
Code:
%
Not sure, but give it a try.

Actually, if you crete a program at the CNC, and then output it to a text file...you can then open the text file and see what the machine wants as the first (and probably last) line.

Ken
 
That's a useful hint, (sending back an empty file) but no.

Say for example I have this program:

%1000
(EXAMPLE PART)
(PROGRAMMED BY KNOBHEAD)
G10 etc etc

When I send it to the machine it will look like this:

%1000
(PROGRAMMED BY KNOBHEAD)
G10 etc

If I then send it back to the PC

%1000
G10 etc


Weird eh?


Excessive accuaracy is a sign of poor breeding. -Socrates.
 
It sounds like it is not recognizing the end of the first line (program number). If you can't figure it out you could always put several (Delete this) lines in the program after the number and that will at least buy you a few free transfers without losing data. It really seems like it must be a setting of some sort, program transfer always seems to have the oddest problmes and solutions.

%1000
(Delete this line)
(Delete this line)
(Delete this line)
(Delete this line)
(Delete this line)
(EXAMPLE PART)
(PROGRAMMED BY KNOBHEAD)
G10 etc etc


Fill what's empty. Empty what's full. And scratch where it itches.
 
Sounds like a communication settings problem.

Check the baud and parity, stop bits, etc. on the machine and PC.

In some cases slowing down the baud rate will help.
 
ah ha, fixed it.. there was no <CR> (carriage return) marker for the program to look for when it sent it to the machine, so it was just stripped out - removing the first line.


Excessive accuaracy is a sign of poor breeding. -Socrates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor