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-07-2009, 10:03 AM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road
Fanuc 18m Macro Parameter

We have a fanuc 18m and used to have a macro for circular bolt holes, but all the parameters were lost and now the macro does not work. Does anyone know the option parameters for getting marcos to work? Or if anyone has a option parameter list for the 18m could they please send it to fahque99@hotmail.com ?

Thanks.
Reply With Quote

  #2   Ban this user!
Old 01-07-2009, 10:16 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

So you lost your options/parameters and you have no backups? What is the alarm you have when trying to run a macro or will it not carry over values in the macro call or do the IF,GT, GOTO statements? Or can it be the fact it was a custom G or M code that called the program and now it will not? Need a bit more info.

9933.7 Macro B programming.

Stevo
Reply With Quote

  #3   Ban this user!
Old 01-07-2009, 12:09 PM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

as soon as you try to write a value to a variable you get a error code.

error 009 ILLEGAL ADDRESS INPUT
Reply With Quote

  #4   Ban this user!
Old 01-07-2009, 12:56 PM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

That option setting allows me to use variables now, but now I get DIVIDE BY ZERO errors whenever I try to use a divide command. Are there options to be able to use math commands? I dont have a backup of the machine because when I started this job the machine was already wiped of all the settings and I have been slowly getting everything working on it.

Thanks.
Reply With Quote

  #5   Ban this user!
Old 01-07-2009, 01:18 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

There is no options to turn on to use these math functions this is part of the macroB option. Some functions can not be used depending if it is macroA or macroB that is turned on. Can you post the code you are trying to run and getting the error? I am not sure about the 009 alarm on the 18 control but the divided by zero alarm is typical when you do exactly that, try to divide by 0. If you are trying a macro call with G65 make sure that the variables that you are passing through are actually being set. Ex. G65P()A5B10. Look at variables #1 and #2 to see if they are set to #1=5 #2=10. Remember not to hit the reset button before going to look at these variables as they will clear when the reset button is hit. Easy try for dividing. Program in MDI.
#1=5
#2=10
#3=#2/#1
If you get no alarm look at the variables they should be equal to
#1=5
#2=10
#3=2

I thought that you were having trouble changing the parameter. I was digging through my stuff to find the procedure for changing the parameters on the 18m control but I could not find it. Must have lost it with the move. If you have it could I PM you my email to get it from you?

Stevo
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-07-2009, 01:36 PM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

Here is the code I am trying
Code:
 
=%
O9010 (BOLT CIRCLE)
#1= 8 (NUMBER OF HOLES)
#2= 15 (DIAMETER OF CIRCLE)
#11=0 (ANGLE OF FIRST HOLE )
(DO SOME SETUP CALCULATIONS)
#2=#2/2 (BOLT CIRCLE RADIUS)
#20=[360/#10] ( ANGLE BETWEEN HOLES)
#1=#1-1
G91 G28 Z0.
G54 G90
M05
M00 
S2000 M03
(FIRST LOCATION)
G81 X[[COS[#11]*#2]] Y[[SIN[#11]*#2]] R1.0 Z-0.25 F4.5 (DRILL CYCLE)
WHILE[#1GT0]DO1 (LOOP)
#11=#11+#20 (POSITION HOLE TO DRILL)
#1=#1-1 (NUMBER OF HOLE DECRIMENT)
#21=[[COS[#11]*#2]]
#22=[[SIN[#11]*#2]]
X #21 Y#22
END1
G80
M05
G91 G28 Z0.
M00
M30
%
I dont know if I have the macroA enabled or not, should I have both on?
Is it the fanuc 18m manuals that you are looking for? PM me your email.
Reply With Quote

  #7   Ban this user!
Old 01-07-2009, 01:48 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

You don’t need macroA and B active. Check #9933.7 if this is set to 1 you’re fine for macro programming. If it is set to 0 check #9922.6 for macroA. If you are able to use variables then one of these 2 should be set.

I don’t need the 18m manuals those I have. I thought you had to change #9933.7 which is an option and takes a procedure that is not in the manuals.

I have not looked over your entire program but I see why you are getting the alarm. Look at the calculation for “angle between holes”. #20=[360/#10]. You don’t have #10 set before that. So as the program reads #10 is set to null. If you try to divide by a null variable you will get the divided by zero alarm. This is probably supposed to be #1 instead of #10. This will make #20 equal to 45 the angle between your holes. I will read the rest a bit later to see if I can see any other errors.

Stevo
Reply With Quote

  #8   Ban this user!
Old 01-07-2009, 02:10 PM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

Yep, it was the #10 problem. Everything seems to work good now. Thanks for all the help.
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 11 G54 parameter staffb68 Fanuc 0 09-29-2008 07:55 PM
mf m5 fanuc parameter KENNETH BROWN Fanuc 0 11-14-2007 07:30 AM
Convert Fanuc Macro to Fadal Macro bfoster59 Fadal 1 11-08-2007 11:41 PM
Need help with Fanuc 6MB parameter nguyenthanhthi Fanuc 5 10-21-2007 08:12 PM
g65 macro parameter firecat69 General Metal Working Machines 0 05-24-2007 08:50 AM




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