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 01-01-2012, 08:59 AM
 
Join Date: Jun 2008
Location: Sweden
Posts: 7
Ajden is on a distinguished road
Problem with loadning program into Fanuc OT

Hello

I can't get the program from the PC to the CNC (fanuc OT model B).

The way i trying to do it is the following:
1. edit mode
2. prgrm button
3. key in address O
4. key in program number
5. hit input
LSK starts flashing
6. start sending from the pc
The Pc says that the program has been sent successfully, but LSK is still flashing and nothing happens.
Shouldn't the LSK stop flashing when the CNC has read the first %-sign

If I try to registering a program to memory using MDI key.
1. edit mode
2. prgrm button
3. key in address O
4. key in program number
5. hit insert key
Doesn't work, nothing happens!

If a try to delete an existing program, that doesn't work either.
1. edit mode
2. prgrm button
3. key in address O
4. key in program number
5. hit Delete key
Does not work, nothing happens!

Its almost like there exist an extra program protection parameter apart from the program protection key.

I have no problem getting program out of the CNC.
I have also tried to upload programs I have downloaded from the CNC but without any luck.

The program and setting I use DNC software. CNC and DNC settings for Fanuc 0T.
The program I'm trying to upload http://ajden.se/O0600.nc
Reply With Quote

  #2   Ban this user!
Old 01-01-2012, 10:27 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

to receive programs in CNC machine from PC you just need to press READ on CNC machine then send from the PC immediately after.

for your first method after typing program number you press insert not input. but that is to create a new program anyway not to receive data from PC.

second method is same as first, creating new program. that must work as long as the write protect key is off. if on you will receive alarm 'write protected'
Reply With Quote

  #3   Ban this user!
Old 01-01-2012, 10:55 AM
 
Join Date: Jun 2008
Location: Sweden
Posts: 7
Ajden is on a distinguished road

Originally Posted by fordav11 View Post
to receive programs in CNC machine from PC you just need to press READ on CNC machine then send from the PC immediately after.

for your first method after typing program number you press insert not input. but that is to create a new program anyway not to receive data from PC.

second method is same as first, creating new program. that must work as long as the write protect key is off. if on you will receive alarm 'write protected'
A button READ doesn't exist on my machine, the manual says that I should use INPUT.

If I press INPUT in prgrm mode, LSK starts flashing, and then I send from the PC. The PC say the program has been sent successfully. But nothing happens in the CNC, the LSK just keeps flashing and no new program appears.

Can it be a hardware problem?
It has been moved after the last time it worked.
Reply With Quote

  #4  
Old 01-01-2012, 11:11 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

Check the cable, I prefer to use the 3 wire cable with the H.W. handshake jumpered.
Al.
Attached Files
File Type: pdf fanuc-0m.pdf‎ (18.9 KB, 26 views)
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 01-01-2012, 11:54 AM
 
Join Date: Jun 2008
Location: Sweden
Posts: 7
Ajden is on a distinguished road

Originally Posted by Al_The_Man View Post
Check the cable, I prefer to use the 3 wire cable with the H.W. handshake jumpered.
Al.
I made a new cable but no improvement, still no new program in the CNC.

//Per
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-01-2012, 06:55 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Ajden View Post
Hello


If I try to registering a program to memory using MDI key.
1. edit mode
2. prgrm button
3. key in address O
4. key in program number
5. hit insert key
Doesn't work, nothing happens!

The program and setting I use DNC software. CNC and DNC settings for Fanuc 0T.
The program I'm trying to upload http://ajden.se/O0600.nc
Ajden,
Given that you can't register a program at the control via the keypad , I'd say that the issue is not related exactly to RS232 comms. I'd check via Diagnostics and the PMC ladder, if its viewable on your control; its not available on all Series "O" controls, to see if the Write Protect switch is actually off or not.

Looking at your software settings I have the following comments:

1. Clearly the system must work, as you have indicated that its worked before moving the machine. However, in my opinion it works only because of the relatively slow Baud Rate and No Handshaking. Slow the Baud Rate down enough and the Uart will be able to keep up without the Input Buffer overflowing irrespective of data flow control

2. I find it curious that the software uses characters 11 (Vertical Tab) and 13 (Carriage Return) as Xon Xoff respectively. When using Software Handshaking (Xon, Xoff), with a Windows application set to use Software Handshaking, the normal handshaking characters, Xon (DC1 - Ascii 17) and Xoff (DC3 - Ascii 19), are not seen by the software application, but are interpreted at system level by the Uart. This will always be faster and more reliable than trying to control the data flow in software, where the software is taking care of other tasks.

3. Characters 11 and 13 are not transmitted by the CNC control in relation to the status of the buffer. However, as the software has Handshaking set to None, this would seem irrelevant; I find these settings confusing.

4. In the suggested parameter settings of #0002, its shows bit 0 = 0 for 1 Stop Bit, yet in the software settings it states that 2 Stop Bits be used. Incorrect Stop Bit settings will not stop the data from being transferred, its just a dogy way of going about it.

5. When using Software Handshaking with the conventional control characters being handled by the Uart, you may sometimes experience a P/S 087. This is generally caused by the Serial Port of the PC not being able to respond quickly enough to an Xoff (DC3) character, and in most cases can be remedied by adjusting the FIFO settings of the port. However, if this error does occur, and can't be fixed by FIFO settings, Hardware Handshaking (RTS/CTS) can also be used, and is always more reliable, particularly when using the upper end of the Baud Rate, as the data flow is controlled by a voltage change on the Handshake lines.

I have my own Editor/Comms package, but its not a free application. However, there are numerous free packages available via the Internet, one being OneCNC that many on this Forum seem to use successfully. I've looked at it and it uses conventional protocol.

I'd download a copy of OneCNC, and although a repeat of what Al_The_Man has already suggested, use the following settings and cable configuration. Loopback of the Hardware lines at the PC end are not required, but will not hurt if you configure the cable that way. If your file download to the control still does not work (after checking that the Write Protect is actually off), then at least you can discount Cable, Parameter and Software settings and look more closely for an issue with the control. To further check that data is actually getting to the DB25 connecter at the control, purchase an RS232 test plug and connect between the cable and the control. This is a device available from most good electronic shops, or over the Internet, for not much money. The device has LEDS that can be monitored to determine activity on the various Data and Control lines. Some PCs use a 9 line ribbon cable from the Serial Adapter, if not mounted directly on the Motherboard, and if this has become disconnected, you can have the impression that data is being sent successfully when in fact its not actually reaching the data cable connecting the PC to the control. However, all of this is a bit irrelevant to your problem of not being able to register a program via Edit Mode, which points to a control issue and perhaps associated to the Write Protect switch in some way.


Parameter Settings
#0002
Bit 0 = 1 (I/O = 0 on Setting Page)
Bit 2 = 0

#552 = 10 (4800 Baud - Starting Point)

Setting Page Settings
I/O = 0
ISO Format


Xon Xoff Handshaking cable configuration

Machine Side ---------------------------------- PC Side
DB25 Male Connecter ---------------- DB25 Female -------- DB9 Female
1 Cable Shield ------------------------ Not Connected ----- Not Connected
2 --------------------------------------------- 3 --------------------- 2
3 --------------------------------------------- 2 --------------------- 3
4
| Bridged
5

6
|
8 All Bridged
|
20

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


PC Software Settings
Handshake Method = Software - Xon Xoff
Baud Rate = 4800 (Suggested starting point - same as CNC Control Setting)
Parity = Even
Data Bits = 7
Stop Bits = 2
First Lines = %
Last Lines = %

OneCNC software, as is the case with mine, can be set to initiate the file transfer at the control. After getting the machine side ready to receive a file, when the Input button on the control is pressed, at least one DC1 (Xon) character is output by the control. This triggers the software to start sending the file. You can also use the Serial tester, referred to earlier, to determine if there are any control characters being transmitted when the Input button is pressed.

Regards,

Bill

Last edited by angelw; 01-01-2012 at 07:11 PM.
Reply With Quote

  #7   Ban this user!
Old 01-01-2012, 10:13 PM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

Your "LSK" symbol is blinking, so the control is trying to read data. The "LSK" symbol is supposed to go off when it receives the first Line-Feed character (ASCII 10, or Hex 0A). All Fanuc controls ignore ALL data until the first Line-Feed is received. After that, it sees the LF characters as "end-of-block" characters. Be sure that your DNC software is sending at least one LF before the first block (after the percent sign) and an LF after each block of data.

If your DNC software is sending Carriage Return characters instead (ASCII 13, or Hex 0D), then what you describe is likely to happen. Your DNC software is receiving data from the CNC properly, so I would guess that the CNC has the ability to send ISO or ASCII tape codes.

Some Fanuc controls don't have the "ISO" tape code option turned on, which means that the CNC can only send and receive the old EIA tape code (used by Frieden Fexowriters). If your DNC software does "automatic code recognition" when receiving, it's possible that your CNC is sending EIA code, which the DNC software receives OK, but since the DNC software is sending ASCII, you can't go the other way. Is there a way you can set your DNC software to SEND the old EIA tape code? That may be worth a try also.
Reply With Quote

  #8   Ban this user!
Old 01-01-2012, 11:24 PM
 
Join Date: Oct 2005
Location: INDIA
Posts: 4
Pitre is on a distinguished road

please check that your G-code file which you are trying to upload....has % sign at the end, this sign tells controller "THE END OF FILE".

may be of help.

Pitre
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
Fanuc 10M program download problem madkins Fanuc 4 03-17-2011 11:57 AM
Need Help!- [B]Program upload problem with fanuc 6T[/B] samiahmed Fanuc 8 03-02-2010 03:32 PM
Need Help!- Mitsui 618 CNC FANUC program problem HamerHead Fanuc 0 02-02-2009 11:48 PM
program problem settingbur CNC Swiss Screw Machines 9 03-21-2008 09:26 PM
Program Memory problem in FANUC 0i Mate MC ranjankrana Fanuc 6 01-10-2008 03:34 AM




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