Page 1 of 2 12 LastLast
Results 1 to 12 of 15

Thread: Heidenhain 151B Drip Feed Problems

  1. #1
    Registered
    Join Date
    Dec 2011
    Location
    USA
    Posts
    50
    Downloads
    0
    Uploads
    0

    Heidenhain 151B Drip Feed Problems

    I'm completely lost ...

    I continue to have trouble drip feeding my Heidenhain 151B. Note that I have no problem communicating from PC to controller, and vice-versa, when the controller / TNCServer on the PC are configured as follows:

    * Heidenhain 151B controller is set to EXT mode (baud rate has always been set to 2400)
    * TNCServer (running on PC) is set to FE (see attached picture of TNCServer set to FE mode)
    * Machine Parameter:
    M71: 515
    MP218: 17736
    MP219: 16712
    MP220: 279
    MP221: 5382
    MP222: 168
    MP223: 1
    MP224: 4

    Also, I have no trouble communicating when both the Heidenhain controller and TNCServer are both in ME mode.

    My symptoms are that I get a "BLOCK FORMAT INCORRECT" error (see attached picture) when drip feeding a large program, screen says TRANSFER BLOCKWISE, a large program. Specifically it gives this error on line 1221 every single time regardless of whether I am running the program during transfer or not.

    Running a program of less than 1221 lines behaves fabulously.

    From reading other posts, I see that the Heidenhain controller should be set to FE mode. When I do this, the TNCServer simply says "stopped" as soon as I attempt to either upload, from the PC running TNCServer, or download from the Heidenhain controller. In other words, FE mode (reached by pressing the MOD key) on the Heidenhain controller doesn't seem to work.

    What in the world is it doing? What should it do? What should I do to drip feed this (and other) large programs?

    Thanks again!
    Attached Thumbnails Attached Thumbnails Heidenhain 151B Drip Feed Problems-img_0562.jpg  


  2. #2
    Registered
    Join Date
    May 2004
    Location
    United Kingdom
    Posts
    359
    Downloads
    0
    Uploads
    0
    What cable wiring are you using? Sounds like a handshaking issue. MP222 = 168 equates to software handshaking so in theory it should work with a 3 wire link. I assume it is getting to the point where in internal buffer overflows and gives you the error, however the handshaking should stop it before that. I seem to remember that the software hankshaking uses 'ack' and 'nak' however the values that represent 'ack' and 'nak' are alterable in the parameters (sillly really as they are standardised ascii characters)
    Andrew Mawson
    East Sussex, UK


  3. #3
    Registered
    Join Date
    Dec 2011
    Location
    USA
    Posts
    50
    Downloads
    0
    Uploads
    0
    Thanks for responding. My cable checks out as follows:

    (25pin TNC) - <9pin PC>
    (2) - <2>
    (3) - <3>
    (4) - <8>
    (5) - <7>
    (6) - <4>
    (7) - <5>
    (20) - <6>

    I've confirmed this by ringing out my cable with a multimeter.

    Also note that, within TNCServer, I have an ability to "short circuit hardware handshake" (see attached picture). I have tried both with and without this box checked with no difference.

    Can you suggest the appropriate machine parameter settings?
    Attached Thumbnails Attached Thumbnails Heidenhain 151B Drip Feed Problems-serial_port_config.jpg  


  4. #4
    Registered
    Join Date
    May 2004
    Location
    United Kingdom
    Posts
    359
    Downloads
    0
    Uploads
    0
    Sadly I no longer have my Interact so I can't just have a looksee and am remembering from about 4 years ago!

    You need to download a copy of the TNC151 Interface Description from the Heidenhain site and look at the parameter descriptions. On page 60 it refers to all the ascii control characters being able to be changed by parameter, and I suspect that may be your issue. I do have a copy of my parameters from my TNC151B that I saved years ago if you want to bang me an email at andrew(at)mawson(dot)org(dot)uk I'll send you a copy but remember the machine side of things will differ although the comms side should be the same.
    Andrew Mawson
    East Sussex, UK


  • #5
    Registered
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    163
    Downloads
    0
    Uploads
    0

    RS232

    Cable should be (DB9-PC to DB25-Control) 2 - 2, 3 - 3 and 5 - 7 (only three wires are needed but you can also have a shield ground if required on one end of cable only). You can look at Cadem.com under DNC for wiring and settings, but they do not support drip feed under cademlite.


  • #6
    Registered
    Join Date
    Dec 2011
    Location
    USA
    Posts
    50
    Downloads
    0
    Uploads
    0

    Heidenhain 151B Drip-feed Solution

    I wanted to try to give a definitive guide to setting up drip-feeding a Heidenhain 151B based on my (epic) saga of the last few days. I can't say that there aren't other ways to make this work, but the following steps work on my machine.

    1. Communications pertinent machine parameter

    M71: 515
    MP218: 17736
    MP219: 16712
    MP220: 279
    MP221: 5382
    MP222: 168
    MP223: 1
    MP224: 4

    2. Cable between PC (9-pin serial / DB9) and Heidenhain 151B controller (25-pin serial / DB25). This equates to a DB9-DB25 null modem cable.

    (25pin TNC) - <9pin PC>
    (2) - <2>
    (3) - <3>
    (4) - <8>
    (5) - <7>
    (6) - <4>
    (7) - <5>
    (20) - <6>

    3. Install TNCServer from Heidenhain website. Setup TNCServer to 'FE' mode and 9600bps (baud). See attached screenshots:

    4. Press the MOD key on the Heidenhain 151B controller. By pressing the up or down arrow, find "RS-232-C-INTERFACE" and set it to 'FE' mode. See attached screenshot:

    5. While still in the MOD menu, press the up or down arrow, find "BAUD RATE". On my controller, my only choice was 2400. Leave it or set it to 2400. Note that this is the non-sequitur ... and what took me so long to figure out (specifically that the Heidenhain controller is set to 2400 baud while TNCServer is set to 9600 baud). WTF, one might ask ...

    6. Turn on the PC and connect to the Heidenhain 151B controller which is in any normal operating mode (manual, automatic run, etc.). TNCServer should say "Ready" in the bottom left corner.

    7. In TNCServer, set the "folder" to the correct folder having your programs. Note that ISO programs (what I'm using) have to be named the 'program number' <dot> 'I'. In this case, program number '1' must be a text file named "1.I". I'm told that Heidenhain programming language uses 'program number' <dot> 'H'.

    Now, you're ready to drip-feed and run programs. Some notes:

    * My controller loaded around 1700-lines of code before it stopped and waited for the controller to ask for more lines of code.
    * I was getting a "BLOCK FORMAT INCORRECT" error at around line 1225. I spent a long time thinking that it was some sort of error associated with the TRANSFER BLOCKWISE (aka drip feed) function of the controller. Turns out that this error is generated when there is a bad dimension in a G02 or G03 command (in either I, J, X, or Y entries). In other words the controller is smart enough to be testing each line of code as it is entered to see if there are moves which cannot be made ... thus, by getting this error, it was saying that there was a bad line of code in the program rather than a fault in the communication between PC and controller.

    I hope this helps someone fighting through this challenge ...
    Attached Thumbnails Attached Thumbnails Heidenhain 151B Drip Feed Problems-img_0565.jpg   Heidenhain 151B Drip Feed Problems-img_0566.jpg   Heidenhain 151B Drip Feed Problems-tncserver_config_1.jpg   Heidenhain 151B Drip Feed Problems-tncserver_config_2.jpg  

    Heidenhain 151B Drip Feed Problems-tncserver_fe_mode.jpg   Heidenhain 151B Drip Feed Problems-tncserver_serial_port_status.jpg  


  • #7
    Registered
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    163
    Downloads
    0
    Uploads
    0
    Good write-up!


  • #8
    Registered
    Join Date
    May 2004
    Location
    United Kingdom
    Posts
    359
    Downloads
    0
    Uploads
    0

    Baud Rate

    Presumably TNCServer auto senses baud rate and adjusts accordingly. My current TNC355 allows 9600 to be set on the control.

    Glad you found the error.
    Andrew Mawson
    East Sussex, UK


  • #9
    gus
    gus is offline
    Registered
    Join Date
    Jan 2005
    Location
    us
    Posts
    974
    Downloads
    0
    Uploads
    0
    it does not on this level control


  • #10
    Registered
    Join Date
    Mar 2012
    Location
    UK
    Posts
    2
    Downloads
    0
    Uploads
    0
    Hi this may sound like a Silly Question but which file has the TNCServer in it cant seem to find the right one on the heidenhain website.

    I to will be trying to link this into our TNC151 control.

    thanks

    JAck


  • #11
    gus
    gus is offline
    Registered
    Join Date
    Jan 2005
    Location
    us
    Posts
    974
    Downloads
    0
    Uploads
    0
    it is part of tncremote


  • #12
    Registered moonman5's Avatar
    Join Date
    Aug 2012
    Location
    UK
    Posts
    73
    Downloads
    0
    Uploads
    0

    Drip Feed

    Hi jmccracken,

    Brilliant post, helped me out a lot! I was having trouble setting up my Tnc 151for drip feeding and found your post, followed your on screen instructions and got a result! all works fine now!

    So thought I would just say thanks!

    Moonman5


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Newbie- TNC155 Drip feed problems
      By large519 in forum Machine Problems, Solutions , Wireless DNC, serial port
      Replies: 5
      Last Post: 12-31-2011, 05:25 PM
    2. Need Help!- How do I drip feed code to a Heidenhain TNC 355 control
      By imachecknician in forum CNC Machining Centers
      Replies: 0
      Last Post: 09-21-2011, 05:03 PM
    3. Need Help!- Drip feed on Heidenhain?
      By imachecknician in forum General Metal Working Machines
      Replies: 3
      Last Post: 09-28-2010, 05:27 PM
    4. Need Help!- Heidenhain TNC 355 DNC drip feed
      By jake_tb in forum Machine Problems, Solutions , Wireless DNC, serial port
      Replies: 0
      Last Post: 08-05-2010, 03:13 AM
    5. Newbie- Drip feed from PC to Heidenhain
      By moorejc in forum Bridgeport and Hardinge Mills
      Replies: 6
      Last Post: 02-03-2009, 10:57 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.