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 > General Metalwork Discussion


General Metalwork Discussion Discuss everything relating to metal work.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-27-2006, 12:18 AM
 
Join Date: Aug 2006
Location: US
Posts: 281
Chris64 is on a distinguished road
Bandit Serial Connection

Anyone know the baud rate etc. for a Bandit?

I made a normal db9 connector which in theory is connected correctly. Trying to connect through hyperterminal didn't give me anything.

Is there anything I should know regarding syntax?

My guess is something like this
X-1.0
Y-1.0
/X-1.0
/Y0
But, how do you fire a [start] command?

Anyone? Any resources?
Reply With Quote

  #2   Ban this user!
Old 09-27-2006, 03:56 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Bamdit had several models. I ran an old one for a little while. I think it communicated at 300 baud. I only remeber that command syntax was different than Fanuc. You're going to need the manual to have a chance at this thing.

Personally, I'd just upgrade to Mach or another fine control. This is a really obsolete control.

Karl
Reply With Quote

  #3  
Old 09-27-2006, 08:14 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

The Bandit is hardware handshake only. Is that what you have Chris? Where did you get the pinout for the cable?

I think the Bandit had a DIP switch setting that may set the baud rate...but I'm not sure. You should call Albright cnc, they would know. Depending on the firmware, the Bandit could transmit at up to 4800. DNC was more limited, I think maybe 1200.

If you've got the correct cable, you should get a character or two to come across before you get an error light. Then it is just a matter of trial and error to set the sending software correctly to match baud rates. Start slow, as Karl suggested.

To receive, I think you just switch the knob to "EXT" and hit the start button yourself.

If the first characters in your program are
N1&
this will set the Bandit to load the data at line 1 in memory.

A % sign means nothing to Bandit.

I think a control character is required to end the transmission legally and this could be ASCII 004, or 017, 018,019, 020. I used a special comm program which used a key combo to do this, so I do not know exactly what character they were emulating with the shortcut.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #4   Ban this user!
Old 09-27-2006, 10:08 AM
 
Join Date: Aug 2006
Location: US
Posts: 281
Chris64 is on a distinguished road

Thanks...that's a starting point. As far as the pinouts go; The guy who sold it to me gave a small board with a ribbin cable attachment on one end and screw down terminals on the other...this included hand written instructions of what goes where. I just followed that for attaching a DP9 connector. It's all really going off of faith at this point. If I can't get anything then I'll pursue the actual ribbon cable itself. Right now I'm trusting that it's right...it looks well made.

I read through the shadow docs again and they include the pinouts of the ribbon. I wonder if it's the same.

My bandit docs only contain some basic info regarding this. FYI, my system is considered a 2M.

I know this controller is in the twilight of it's life but for now it seems to be very capable. For what I need, I could really get by just using G-codes...but losing the program entirely everytime you reboot is bringing back nightmares from my Commodore 64 days before I had a tape recorder.
Reply With Quote

  #5   Ban this user!
Old 09-29-2006, 12:01 AM
 
Join Date: Aug 2006
Location: US
Posts: 281
Chris64 is on a distinguished road

Originally Posted by HuFlungDung View Post
The Bandit is hardware handshake only. Is that what you have Chris? Where did you get the pinout for the cable?

I think the Bandit had a DIP switch setting that may set the baud rate...but I'm not sure. You should call Albright cnc, they would know. Depending on the firmware, the Bandit could transmit at up to 4800. DNC was more limited, I think maybe 1200.

If you've got the correct cable, you should get a character or two to come across before you get an error light. Then it is just a matter of trial and error to set the sending software correctly to match baud rates. Start slow, as Karl suggested.

To receive, I think you just switch the knob to "EXT" and hit the start button yourself.

If the first characters in your program are
N1&
this will set the Bandit to load the data at line 1 in memory.

A % sign means nothing to Bandit.

I think a control character is required to end the transmission legally and this could be ASCII 004, or 017, 018,019, 020. I used a special comm program which used a key combo to do this, so I do not know exactly what character they were emulating with the shortcut.
Well, the good news is that I had some communication happening...the bad news is that I can't recognize any of it.

It's all in strange characters...not standard ascii. I suspect that means that I may not have the serial parameters correct, but virtually all other settings give me nothing.

Can anyone verify if the data sent and received is in plain text?

What I was doing was using the M command to save a small program to my computer (so I could read the text it sends). I tried sending a few commands but nothing seemed to work.

What I found that worked was 1200 baud, 1 stop bit, no parity, hardware control (although it works with no flow control as well).

Any thoughts?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-29-2006, 06:02 PM
 
Join Date: Mar 2005
Location: USA
Posts: 162
Ben Colby is on a distinguished road

To accept a program from the PC:
1 Push Reset
2 Switch mode to External (EXT)
3 Push CE button
4 Push the spindle enable button ( If your machine has one)
5 Push Start button

To Send a program from Control To PC:
1) setup PC to receive
2 Find last sequence number in program
3 MDI mode push Reset
4 Switch to External (EXT)
5 type T# (where T#= last line of your program)
6 Push the Start button

Can't tell you what baud to use without knowing the control. Old Bandits
used real slow bauds like 120, 300 etc. newer cards used 1200, 2400 etc.
Don't be afraid to go slow. If you email me, I'll send you a very old Bandit
communication program that works in DOS.
Reply With Quote

  #7   Ban this user!
Old 09-29-2006, 06:06 PM
 
Join Date: Mar 2005
Location: USA
Posts: 162
Ben Colby is on a distinguished road

Also, as stated in a earlier post, do not use % signs.
First line of the program N001& G90 (or whatever you want to start with)
Reply With Quote

  #8   Ban this user!
Old 09-29-2006, 06:18 PM
 
Join Date: Aug 2006
Location: US
Posts: 281
Chris64 is on a distinguished road

So does "&" replace start? And, What would you use a "%" for anyway?

I'm going to try 120 when I get home. I called Albright CNC and ordered a Bandit comm manual so if I don't get this working at least I can fall back on that. Thanks for all the feedback. What I was doing to send the program to the computer is:
MDI - N01 start
EXT - M5 start (last line of the program)

It would send across the same thing everytime, but it was jiberish.

Something like this:
ΔΔΔ☺☺☺☺↕↔↑↨☺☺☺ (lots of the smiley face character). I hope this is just a bad baud rate issue and I'm not going to have to translate this to normal characters.

Another thing I keep reading is that it can communicate at 1200 baud with syncronization but most PC's don't have this. What is it that PC's don't have? It seems strange to have a problem with current computers talking RS232.
Reply With Quote

  #9   Ban this user!
Old 09-29-2006, 09:03 PM
 
Join Date: Jul 2005
Location: USA
Age: 42
Posts: 442
pastera is on a distinguished road

Can you get your hands on an oscilloscope (or logic analyser)? Even a cheapo sound card unit will work for this as you only need to find the baud rate.

If the baud rate is odd (can't do it on a standard port) let me know and I'll set you up with a baud rate converter.

Aaron
Reply With Quote

  #10  
Old 09-29-2006, 10:29 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Pastera,
It sounds as though you have some funky method of testing with a sound card. While I don't need to know, I am curious

Chris,
7 data bits
2 stop bits
parity none
hardware handshake.
start of transmit: nothing really required
end of transmit: CTRL+D (if that means anything) It is one of the ASCII characters and you will likely need a comm program that is capable of sending non-text character in order to get it to go.

If you cannot find the correct character to end the transmission with, I think you can still go to the Bandit and switch back to MDI and perhaps hit RESET and the transmitted program should be there intact.

Place the cursor on the first line of the program you wish to send, not at the end of the program.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-30-2006, 01:05 AM
 
Join Date: Mar 2005
Location: USA
Posts: 162
Ben Colby is on a distinguished road

I dug up my notes on the Bandit Level 2 I used to own.
It used the following:
Baud =110
Parity =Even (ASCII format)
Stop bits = 1
Handshake=none

I dug thru my old floppies and I do indeed have DOS communication
program for the Bandit if are interested, its ~224K so not much to download.
One nice thing about the comm-program is that it counts the Bandit program sequence numbers correctly. The Bandit control counts the N numbers by
bits, which is a odd.
Reply With Quote

  #12   Ban this user!
Old 09-30-2006, 01:09 AM
 
Join Date: Mar 2005
Location: USA
Posts: 162
Ben Colby is on a distinguished road

I was also thinking that Windows still has the original Terminal program
from Windows 3.00. Search your computer for the old program, it will have
the lower baud rate settings and the rest of RS-232 settings you might need.
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





All times are GMT -5. The time now is 11:11 AM.





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