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 03-20-2006, 04:58 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road
info required about fanuc macro programming

I want to learn fanuc macro programming. Can somebody direct me to a web site which explains it, starting from the basics?
Reply With Quote

  #2   Ban this user!
Old 03-20-2006, 08:00 AM
 
Join Date: Nov 2005
Location: USA
Posts: 145
MarkT is on a distinguished road

http://www.cncci.com/
great source to get started!
Best of Luck!
Mark T.
Reply With Quote

  #3  
Old 03-20-2006, 09:35 AM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

This is a great site for some training info I bought ME Consultant from Mike Lynch on this sit I use the software all the time it been most helpful from the programming stand point for feeds and speeds
http://www.cncci.com/

Last edited by lakeside; 03-20-2006 at 09:54 AM.
Reply With Quote

  #4   Ban this user!
Old 03-23-2007, 01:53 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Some clarifications needed:
Can we call subprograms (using M98) from a macro and
vice-versa (using G65/66)?

If the answer is "yes", can we have a total of 8
levels of mixed nesting (4 for macro and 4 for
subprograms)?

If the answer to the previous question is "yes", I
believe, all the nested macros will have different
"levels" of the local variables (#1 to #33), but the
local variables of the nested subprograms will have
the level of the calling program (which can be a macro
or another subprogram). Am I right?
Thanks.
S.K.Sinha
Reply With Quote

  #5   Ban this user!
Old 03-23-2007, 11:50 AM
 
Join Date: May 2003
Location: Romeo, MI - USA
Posts: 75
psevin is on a distinguished road
info required about fanuc macro

There are some differences in the M98 and G65 call that you should be aware of.

G65 allows an argument to be specified (passed to macro), M98 does not.

When M98 contains other G-code command, the subprogram is called after execution of the G-Code. G65 calls the macro unconditionally.

There are other differences also, with regard to Argument specifications. Without knowing what you are attempting to obtain, it would be difficult to state everything that may apply.

Buffering (look ahead) may also affect the operation of your macros.

The best reference is the Fanuc Operator's Manual, which has an entire section (Chapter 15 in current 16i/18i manual) on Custom Macro. I would suggest you obtain a copy.
__________________
Paul Sevin - Ovation Engineering, Inc.
http://www.ovationengineering.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-24-2007, 02:30 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road
Fanuc macro

Thanks for your reply. I do know the difference between M98 and G65/66. I also know how they work. I only want to know if it is possible to use G65/66 inside a subprogram called by M98, and also, whether M98 can be used inside a macro called by G65/66. In other words, can we have combined nesting of subprograms and macro. If yes, how are the local variables treated?
S.K.Sinha
Reply With Quote

  #7   Ban this user!
Old 03-24-2007, 07:01 AM
 
Join Date: May 2006
Location: USA
Age: 42
Posts: 82
lgreeves is on a distinguished road

Yes, you can. If you desigate a variable for one macro and change it for another then try to use the variable for your origanal marco with out setting your vaiables your value may not be what you are expecting.
Reply With Quote

  #8   Ban this user!
Old 03-26-2007, 01:27 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks for your reply. Let us discuss it with an example to make it more clear.
The main program 1000 calls a subprogram 1001 by M98,
1001 calls a macro 1002 by G65,
1002 calls a subprogram 1003 by M98,
1003 calls a macro 1004 by G65,
1004 calls a subprogram 1005 by M98,
1005 calls a macro 1006 by G65,
1006 calls a subprogram 1007 by M98 and
1007 calls a macro 1008 by G65.
Here we have used 8 level nesting - 4 for subprograms and 4 for macros. My question is that can we have a combined nesting of 8 levels in this manner? Actually, 4 levels of nesting each for subprograms and macros are allowed.
Assuming such a nesting is permissible with Fanuc 0i series, let us assume that a local variable #1 is being used in the main program as well as in all the nested subprograms/macros. I believe (please correct me if I am wrong!), a subprogram called by M98 does not change the level of the local variables of the calling program, whereas a macro called by G65 does change the level. This means that #1 will have different meanings in the main program 1000 and the 4 macros (1002, 1004, 1006 and 1008), but #1 of the main program 1000 and that of subprogram 1001 will have the same meaning (i.e., they refer to the same memory location). Similarly, #1 of 1002 and that of 1003 will have the same meaning, and so on. Am I correct?
I do have the original 0i series TC and MB manuals, but these things are not clear. Kindly help! Thanks.
Reply With Quote

  #9   Ban this user!
Old 03-26-2007, 12:18 PM
 
Join Date: May 2006
Location: USA
Age: 42
Posts: 82
lgreeves is on a distinguished road

I think I know what you want. I will test on my 150i.
Reply With Quote

  #10   Ban this user!
Old 04-05-2007, 06:09 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by lgreeves View Post
I think I know what you want. I will test on my 150i.
What did you find?
Reply With Quote

Sponsored Links
  #11  
Old 04-06-2007, 06:41 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by sinha_nsit View Post
What did you find?

Have you looked at this Software yet? www.ncplot.com This will show you how to write Macros and back plot them for you.

Cheers!!!!!!!
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

  #12   Ban this user!
Old 04-06-2007, 09:13 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

Originally Posted by sinha_nsit View Post
Thanks for your reply. Let us discuss it with an example to make it more clear.
The main program 1000 calls a subprogram 1001 by M98,
1001 calls a macro 1002 by G65,
1002 calls a subprogram 1003 by M98,
1003 calls a macro 1004 by G65,
1004 calls a subprogram 1005 by M98,
1005 calls a macro 1006 by G65,
1006 calls a subprogram 1007 by M98 and
1007 calls a macro 1008 by G65.
Here we have used 8 level nesting - 4 for subprograms and 4 for macros. ....
I believe this is all correct, and is so for any fanuc controls that support G65 and M98. The rest of the post seemed correct as well. I haven't done any testing of it though.
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 01:24 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