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 10-15-2009, 04:36 AM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road
Run program from compact flash

Hello. Controller is 21i-m. I am able to read from and to a compact flash card, but I need help how to read a program that does not fit on the controller memory. I have put the relevant parameters, that I am aware of (after reading some posts):

#138.7 = 1
#3404.2 = 1
#6300.4 = 1
#6080 = 0
#0020 (I/O Channel) = 4

In the card I have a program named:
O0001 (file name), and in the program header also a O0001 is present. So I belive program is completly standard.

In the controller I made a simple program that contains a call to the program that is present on the compact flash:

O0006 ;
M198 P1 ;
M30 ;
%

Running this, controller gives the error:
1000 M-Function code setting error

Any ideas? I would like to run the program using DNC-CD like I saw on a PDF but I think this controller is unable to do that, so I think my only option is calling like it was a sub-program.

Thank you all.
Filipe
Reply With Quote

  #2   Ban this user!
Old 10-15-2009, 09:44 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

I can't find alarm 1000. My parameter manual says setting 0 to 6080 is invalid. This is the M-code that calls macro O9020, and M0 cannot be used to call a custom macro.
Attached Thumbnails
Click image for larger version

Name:	F21iM Parameter 6080.jpg‎
Views:	59
Size:	94.6 KB
ID:	91152  
Reply With Quote

  #3   Ban this user!
Old 10-15-2009, 10:02 AM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road

Thank you for the replay.
For want I understud from your replay is that M198 calls macro O9020. Were can I check the macro? Sorry if it was a dumb question
Reply With Quote

  #4   Ban this user!
Old 10-15-2009, 01:07 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

What I'm saying is I think the alarm 1000 is because #6080 is set to 0. Did you change #6080?
Reply With Quote

  #5   Ban this user!
Old 10-15-2009, 01:36 PM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road

Thank you, but result is the same with or without 6080 set to 1 or 0. Same error message.
Calling M98 for existent programs in memory is everthing ok, only calling M198 brings problems, it is like M198 is not recognized or similar.

Filipe
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-15-2009, 04:37 PM
MysticMonkey's Avatar  
Join Date: Mar 2009
Location: Australia
Posts: 366
MysticMonkey is on a distinguished road

there is no reason you cannot drip feed (unless you have FUBAR'D parameters)

http://www.cnczone.com/forums/showthread.php?t=89817
__________________
***********************************************************
*~~Darwinian Man, though well-behaved, At best is only a monkey shaved!~~*
***********************************************************
*__________If you feel inclined to pay for the support you receive__________*
*_______Please give to charity http://www.oxfam.org/en/getinvolved_______*
***********************************************************
Reply With Quote

  #7   Ban this user!
Old 10-15-2009, 04:48 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

You might try changing 3404 bit 2 = 0. This means that the M198 P searches for the file number, not the program number. Make your program the only file on the memory card, that way it's always file #0001.
Reply With Quote

  #8   Ban this user!
Old 10-16-2009, 02:39 AM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road

Originally Posted by dcoupar View Post
What I'm saying is I think the alarm 1000 is because #6080 is set to 0. Did you change #6080?
I have retrieved the PMC on the machine and edited. There is a section that is called MESSAGES and under that tab, I can see on the address A0.0 contained the message "1000 - M-FUNCTION SETTING ERROR":

A0.0 | 1000 - M-FUNCTION SETTING ERROR

That is the message that I have when I call M198.
I do not have clues (any ideas are very welcome) to traking down what triggers the output of this message, but it seams to be a machine specific message, and not a "Fanuc" standard message. I also do not have the option DNC-CD that I think most machines have. My controller is 21i-mA, and it seams that 21i-mB is more commun.
Anybody with a 21i-mA that have the DNC-CD in the softkeys ?

dcoupar: You might try changing 3404 bit 2 = 0. (Same issue)
MysticMonkey: there is no reason you cannot drip feed (unless you have FUBAR'D parameters). I have checked the thread and all is the same.

Filipe

Thank you all.
Reply With Quote

  #9   Ban this user!
Old 10-16-2009, 05:14 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

On 0i series, parameter 6030 should be 0 for using M198.

Leave 6080 blank.
Reply With Quote

  #10   Ban this user!
Old 10-16-2009, 06:19 AM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road

Originally Posted by sinha_nsit View Post
On 0i series, parameter 6030 should be 0 for using M198.

Leave 6080 blank.
Mine was already set to zero, so no change there. My only chance is to try the serial comunication. I hope that the same error will not appear.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-17-2009, 07:03 AM
MysticMonkey's Avatar  
Join Date: Mar 2009
Location: Australia
Posts: 366
MysticMonkey is on a distinguished road

If you post your ladder here I will look at it for you

this alarm is a MTB alarm not a fanuc issue
__________________
***********************************************************
*~~Darwinian Man, though well-behaved, At best is only a monkey shaved!~~*
***********************************************************
*__________If you feel inclined to pay for the support you receive__________*
*_______Please give to charity http://www.oxfam.org/en/getinvolved_______*
***********************************************************
Reply With Quote

  #12   Ban this user!
Old 10-17-2009, 08:36 AM
 
Join Date: Oct 2005
Location: Portugal
Posts: 114
fomaz is on a distinguished road

Here it goes !

After lots of reading, I saw on the manual that the M98, M99 and M198 does not send a signal to be process by the PMC, so it should not be related to the ladder... But I do not know.

Thank you
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
Mach3 and flash Chris64 Screen Layouts, Post Processors & Misc 9 01-31-2008 04:56 PM
Compact Flash to IDE/ATA adapter? DennisCNC Computers and Networking 12 11-04-2007 10:27 PM
Flash Cut Melvin Myers CNC Plasma and Waterjet Machines 11 08-16-2007 10:07 AM
Flash cut lv2ryde General Metal Working Machines 0 01-20-2006 09:15 AM
looking for someone who can do Flash CNCadmin Employment Opportunity 2 02-11-2005 05:04 PM




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