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! > Machine Controllers Software and Solutions > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-01-2011, 11:45 AM
 
Join Date: Jun 2011
Location: USA
Posts: 9
dizzypistons is on a distinguished road
Inputting program to Fanuc 21i-T

Hello all,
I have a line made up of multiple lathes using a fanuc 21i-T controller. I can download programs from the machines using an RS232 cable, but I cannot upload. I tried to hit all the 'usual suspects' but had no luck.

Some more information:
The upload process:
- Program protect off, Edit mode, Read, exec, send file via procomm. Program appears to upload on procomm, but LSK continues to flash, no program in machine.

- Using procomm plus
- Even parity, 7 data bits, 2 stop bits
- Baud rate = 4800, matches machine parameter

The programs have the necessary percent signs. I tried to download a program and then upload it back into the machine. I have tried this on multiple machines.

Any help would be greatly appreciated!
Reply With Quote

  #2   Ban this user!
Old 11-01-2011, 12:46 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Have you checked the pins (2 & 3) on your cable with an ohmmeter?

On a 9-25 cable, 2 goes to 2 and 3 goes to 3.
On a 25-25 cable 2 and 3 are crossed.

Also, you can get fairly cheap RS232 tester at Radio Shack or Fry's and watch for activity on 2 and 3 when you send the program.
Reply With Quote

  #3   Ban this user!
Old 11-01-2011, 02:28 PM
 
Join Date: Jun 2011
Location: USA
Posts: 9
dizzypistons is on a distinguished road

Just checked the cable with an ohmmeter, everything appears to be okay...might have to get the tester...
Reply With Quote

  #4   Ban this user!
Old 11-01-2011, 04:33 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

After you PUNCH the program to the PC, have you tried to READ the same program back into the control?
Reply With Quote

  #5   Ban this user!
Old 11-01-2011, 05:21 PM
 
Join Date: Jun 2011
Location: USA
Posts: 9
dizzypistons is on a distinguished road

Originally Posted by dcoupar View Post
After you PUNCH the program to the PC, have you tried to READ the same program back into the control?
Yep. I was afraid there was an issue with the file, so I tried downloading and uploading a different file. No luck. Flashing LSK.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-01-2011, 06:21 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Well, I guess I'd recommend the RS232 tester.
Reply With Quote

  #7   Ban this user!
Old 11-02-2011, 02:23 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by dizzypistons View Post
Some more information:
The upload process:
- Program protect off, Edit mode, Read, exec, send file via procomm. Program appears to upload on procomm, but LSK continues to flash, no program in machine.

- Using procomm plus
- Even parity, 7 data bits, 2 stop bits
- Baud rate = 4800, matches machine parameter

Any help would be greatly appreciated!
In your explanation it appears that you're getting the machine control ready first and then invoking Send at the PC. This method can be a bit deceptive when determining if the two devices are actually talking. For example, unless the PC software is configured, or able to wait for the control to initiate the file transfer, I believe you will find that it will appear that the PC is uploading the file even with the cable disconnected and the Send routine of the PC software exercised.

Unless there is a problem with either the PC or the Machine Control, communication via RS232 is relatively straight forward. Check the following control parameters, PC settings and cable configuration.

#0000
bit 0 = 0
bit 1 = 1

#0020 = 0 (I/O Channel =0)

#0100
bit 1 = 0
bit 2 = 0
bit 3 = 1

#0101
bit 0 = 1
bit 3 = 0
bit 7 = 1

#0102 = 0 (RS232 using control characters DC1 to DC4)
#0103 = 11 (9600 Baud rate)


With #0102 set to Zero, Xon Xoff (software ) handshaking can be used. The following cable configuration will satisfy software handshaking.


Machine Side -------------------------------- PC Side
DB25 Male Connector -----------DB9 Female---------DB25 Female

1 ---Cable Shield -------------- Not Connected-------Not Connected
2 ---------------------------------------2----------------------3
3 ---------------------------------------3----------------------2
4
| bridged
5

6
|
8 all bridged
|
20

7 ----------------------------------------5---------------------7

PC software settings

Handshake Method = Xon Xoff
Baud Rate = 9600 (or to match the setting of the control)
Data Bits = 7
Stop Bits = 2
Parity Bit = Even

Unless there is an underlying problem with either the control or PC, the above settings and cable will always work.

If the software has the option of being set to Wait for the machine to initiate the upload of the file, set it thus. Then when you call the program from the machine, by pressing Read and Exec, the control will send an Xon (DC1 - Ascii 17) character to the PC which should start the transfer of the file.

If the above fails, do as Dave suggested and put a Serial test plug between the PC and Machine and monitor pins 2 and 3

Regards,

Bill
Reply With Quote

  #8   Ban this user!
Old 11-04-2011, 10:59 AM
 
Join Date: Jun 2011
Location: USA
Posts: 9
dizzypistons is on a distinguished road

First off, thank you both for your help!

Second, I discovered a flash card slot on the machine and got a flash card and was able to upload / download with no problem (way easier than procomm).

However, I still have a problem: I download the program from one machine to transfer to another. I want to change the "O" number e.g. from O0003 to
O0007. I open the file using wordpad and make the changes on both the file name and the initial line on the program. My issue then comes with choosing a file type extension. I have no idea what to choose. *.txt gives a memory card error.

Hopefully this will be the last question!

Thanks again!
Reply With Quote

  #9   Ban this user!
Old 11-04-2011, 11:14 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

with a card you don't need any extension. so 1234. is ok for the file name. No O and no extension
Reply With Quote

  #10   Ban this user!
Old 11-04-2011, 11:31 AM
viorel26's Avatar  
Join Date: Jun 2007
Location: Romania
Age: 31
Posts: 102
viorel26 is on a distinguished road

try with *.nc
or open any folders go to Tools >>Folder options>>View>> and uncheck Hide extensions for known file types, and rename the file without any extension
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-04-2011, 12:26 PM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

I've been using a card on my Mori for many years. If you punch out a program from the control to the card there is no extension. Consequently if you want to read a program from the card into the control it needs to be in the same format. That means no extension and no O.
You can also rename the files on the card directly using the control. At least I can on my machine (Mori + MAPPS control). Older machines or standard Fanuc specification you probably can't

One way around that is to read the program into the control and call it up.
Then use the control to rename the program O number. (i.e. O1111 ALTER) and punch it out again.
Reply With Quote

  #12   Ban this user!
Old 11-05-2011, 12:13 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

If you need, you can also have a copy of an existing program with a new program number:

Assuming that the existing program number 1234 is to be copied
to create a new program number 2345, carry out the following
steps:
• Select the EDIT mode on the MOP panel.
• Press the PROG key on the MDI panel.
• Type O1234 (or simply 1234) and press the O SRH soft key.
• Press the soft key OPRT. If OPRT does not appear, press the
return-menu soft key ( ).
• Press the next-menu soft key ( ).
• Press the soft key EX-EDT (external edit), followed by COPY
and ALL soft keys.
• Type 2345 and press INPUT on the MDI panel.
• Press the soft key EXEC (execute).
After this operation, we will have two programs O1234 and
O2345 with the same contents. One of these may be selected for
editing, and the other may be left unchanged.
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
Can't run a program Fanuc O-M laka Fanuc 9 09-27-2011 04:20 PM
Need Help!- FANUC 6M PROGRAM SENDING... QUALMACH1 Fanuc 7 01-22-2011 12:27 PM
PROGRAM ZERO ON FANUC M mousongie CNC Machining Centers 6 12-28-2010 08:24 PM
How to run a program under Fanuc 6TA samiahmed Fanuc 1 03-16-2010 06:22 AM
New program on Fanuc 6t? pob198 Europe Club House 2 01-14-2010 03:31 AM




All times are GMT -5. The time now is 07:28 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