CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Bridgeport and Hardinge Mills


Bridgeport and Hardinge Mills Discuss Bridgeport and Hardinge Mills here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-01-2012, 02:58 PM
 
Join Date: Dec 2011
Location: USA
Posts: 30
jmccracken is on a distinguished road
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
Click image for larger version

Name:	IMG_0562.jpg‎
Views:	45
Size:	62.7 KB
ID:	149227  
Reply With Quote

  #2   Ban this user!
Old 01-03-2012, 07:18 AM
 
Join Date: May 2004
Location: United Kingdom
Posts: 312
awemawson is on a distinguished road

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
Reply With Quote

  #3   Ban this user!
Old 01-03-2012, 12:13 PM
 
Join Date: Dec 2011
Location: USA
Posts: 30
jmccracken is on a distinguished road

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
Click image for larger version

Name:	Serial Port Config.JPG‎
Views:	26
Size:	21.0 KB
ID:	149362  
Reply With Quote

  #4   Ban this user!
Old 01-03-2012, 01:09 PM
 
Join Date: May 2004
Location: United Kingdom
Posts: 312
awemawson is on a distinguished road

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
Reply With Quote

  #5   Ban this user!
Old 01-03-2012, 01:20 PM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road
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.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-05-2012, 07:53 PM
 
Join Date: Dec 2011
Location: USA
Posts: 30
jmccracken is on a distinguished road
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
Click image for larger version

Name:	IMG_0565.jpg‎
Views:	39
Size:	66.0 KB
ID:	149536   Click image for larger version

Name:	IMG_0566.jpg‎
Views:	39
Size:	61.1 KB
ID:	149537   Click image for larger version

Name:	TNCServer Config_1.JPG‎
Views:	45
Size:	19.8 KB
ID:	149538   Click image for larger version

Name:	TNCServer Config_2.JPG‎
Views:	39
Size:	19.0 KB
ID:	149539  

Click image for larger version

Name:	TNCServer in FE Mode.JPG‎
Views:	44
Size:	26.5 KB
ID:	149540   Click image for larger version

Name:	TNCServer Serial Port Status.JPG‎
Views:	38
Size:	20.6 KB
ID:	149541  
Reply With Quote

  #7   Ban this user!
Old 01-05-2012, 08:26 PM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road

Good write-up!
Reply With Quote

  #8   Ban this user!
Old 01-06-2012, 02:36 AM
 
Join Date: May 2004
Location: United Kingdom
Posts: 312
awemawson is on a distinguished road
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
Reply With Quote

  #9   Ban this user!
Old 01-06-2012, 06:12 AM
gus gus is offline
 
Join Date: Jan 2005
Location: us
Posts: 878
gus is on a distinguished road

it does not on this level control
Reply With Quote

  #10   Ban this user!
Old 03-09-2012, 09:24 AM
 
Join Date: Mar 2012
Location: UK
Posts: 2
xsa1 is on a distinguished road

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
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-09-2012, 10:35 AM
gus gus is offline
 
Join Date: Jan 2005
Location: us
Posts: 878
gus is on a distinguished road

it is part of tncremote
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 12:56 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361