×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

DNC stips out first line of program

DNC stips out first line of program

DNC stips out first line of program

(OP)
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.

RE: DNC stips out first line of program

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

RE: DNC stips out first line of program

(OP)
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.

RE: DNC stips out first line of program

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.

RE: DNC stips out first line of program

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.

RE: DNC stips out first line of program

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources