Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Heidenhain TNC 151 controler


R Barnes01
 Share

Recommended Posts

To transfer use TNCServer! (Free from Heidenhain.)

Check the Machine Parameters in controller!

 

This from Service Manual and work perfect for me:

(With this settings extension must be *.H!)

 

MP 71 = 515 (STX, ETX)

MP 218 = 17736 (E, H)

MP 219 = 16712 (A, H)

MP 220 = 279 (SOH, ETB)

MP 221 = 5382 (NAK, ACK)

MP 222 = 168 (7 data bits, 1 stop bit, even parity, xon/xoff)

MP 223 = 1 (blockwise transfer active)

MP 224 = 4 (EOT)

 

(Email sent with full Interface doc.)

Link to comment
Share on other sites

quote:

 

Also the program made on the control(that works)has an .nc extention.

 


You also said that you were able to transfer the program back and forth.

 

 

Are you using a Heidi post configured for either?

 

 

There is a header and a tail in the file that must be adheared to for the controller to see the program

 

 

the words BEGIN PGM "program name" INCH

 

END PGM "program name" INCH

 

 

should be at the start and finish of the mastercam program....Is this in your programs>

Link to comment
Share on other sites

Most of the suggestions given here are for the newer 426/526 controls. This thing is a 151 about 20years old, I'm pretty sure that you will need a control character at the end of the file. One way to check it out would be to enter a command prompt and "type" the code to the screen.

 

For example c:>Type c:some pathsomefile.nc

Now when it displays the code on the dos screen see what the last character is, it could be a heart a diamond ect. this is the control character that the machine expects to see at the end of the file, without it the machine never sees that it received the file. There are lists of the ASCII codes and you will need to edit the post processor to output the ASCII control character at the end of the file in the peof section.

Something like:

 

peof #end of file

 

if lock_codes = one & rot_on_x, plock

comment$

#if stagetool = one, pbld, n, *first_tool, e

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", e$

004, e$

 

The 004 is the ASCII code for, EOT end of transmission, could be what you need.

 

Allan

Link to comment
Share on other sites

Easiest way is to download Tncremo and set the machine to FE mode. If you are using EXT mode on the control and using Mastercam comms or CIMCO Edit then you may need to STX (ascii 2) before the start of transmission and ETX (ascii 3)at the end. You can also try using a blank line at the start of the program. Line numbers should start at 0 and go up in 1

 

0 BEGIN PGM 123 INCH

 

99 END PGM 123 INCH

Link to comment
Share on other sites

Download from

http://www.alma999.atw.hu/

Heidenhain post, MD, CD and CD customize instructions!

Download from

http://filebase.heidenhain.de/public/?open...B%5D=55#GROUP55

TNCremo v2.6 intl/en Build 301 and install it!

Run TNCServer and configure with FE settings!

Set the parameters (if need) in controller! (Above listed.)

Set the protocol (Baud rate, data bits, etc.)!

 

If nc program filename 1234.H then the first line must be:

0 BEGIN PGM 1234 MM (or INCH)!

Last line:

xxx END PGM 1234 MM (or INCH)!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...