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 12-07-2009, 03:55 PM
Zoner's Avatar  
Join Date: Nov 2009
Location: Cyprus
Posts: 41
Zoner is on a distinguished road
0M Macros - Interpretation

I was very kindly sent the following macros by Kryle for our 0M control on a VMC700, having lost our own toolchange macro 9001 and other stuff.

They have been very kind and as they are extremely busy I don't want to barrage them with questions that users should already know the answers for.

Can anyone please translate them for me so we can understand what they will do? They are not specifically for our machine but for another close-serial one. Ideally one of them will operate the carousel!

We have a 20-slot tool carousel on the VMC.

O9001(ISOMACRO)
M22
G65H81P30Q#1000R1
G65H01P#149Q#4003
M19G91G80
G65H81P10Q#1001R1
M23G28Z0
M21
M26
G30Z0
N10G65H81P20Q#1002R1
M26G30Z0
M24
M21
G28Z0
N20M25
M22
G28Z0
G#149
N30M99



O9003(CAPMACRO)
G65H1P#149Q10170
T#9149
M22
G65H81P30Q#1000R1
G65H01P#149Q#4003
M19G91G80
G65H81P10Q#1001R1
M23G28Z0
M21
M26
G30Z0
N10G65H81P20Q#1002R1
M26G30Z0
M24
M21
G28Z0
N20M25
M22
G28Z0
G#149
N30M99
%
Reply With Quote

  #2   Ban this user!
Old 12-07-2009, 04:06 PM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Aha! Finally some examples of macro A. Surely someone has an old manual...
Reply With Quote

  #3   Ban this user!
Old 12-07-2009, 05:11 PM
 
Join Date: Jun 2009
Location: usa
Posts: 81
JimBoyce is on a distinguished road

This machine had the parameters erased. It has not been determined (by reading other posts by Zoner) that the basic parameters that have to be entered in hexadecimal are OK, or other parameters for that matter. Looking at the Macro, there is nothing special there, in other words run the macro lines in MDI and see if anything happens.
In fact try some basic code in MDI, (S500 M3 or M8) and post what happens.
Reply With Quote

  #4   Ban this user!
Old 12-07-2009, 05:43 PM
Zoner's Avatar  
Join Date: Nov 2009
Location: Cyprus
Posts: 41
Zoner is on a distinguished road

Yes the machine was erased (partially anyway), its toolchanger and MPG don't work, but the state of our machine won't have any bearing on these macros.

What I was looking for here was just a translation of what these 2 macros will do, step by step? I want to understand them.

One other thing - one macro is at 9001 and I guess that will call when we do an M6? We do have a 6 in the memory attached to calling 9001.

So how about the one at 9003, how do we get to call that one? I've seen a C.A.P. softkey on one of the screens but don't know what it is or how to use it?
Reply With Quote

  #5   Ban this user!
Old 12-07-2009, 06:07 PM
The Engine Guy's Avatar  
Join Date: Jun 2008
Location: UK
Posts: 392
The Engine Guy is on a distinguished road

Originally Posted by Zoner View Post
Yes the machine was erased (partially anyway), its toolchanger and MPG don't work, but the state of our machine won't have any bearing on these macros.

What I was looking for here was just a translation of what these 2 macros will do, step by step? I want to understand them.

One other thing - one macro is at 9001 and I guess that will call when we do an M6? We do have a 6 in the memory attached to calling 9001.

So how about the one at 9003, how do we get to call that one? I've seen a C.A.P. softkey on one of the screens but don't know what it is or how to use it?
The 9001 Macro is for operating the toolchanger when you are in ISO mode, that is when you are using NC code ("G" code).
The 9003 Macro is for operating the toolchanger when in the C.A.P Mode, this stands for Fanucs "Converstaional Automatic Programming", if your control can be used in either mode then you will need both Macros installed in the Program Library.
Pressing the C.A.P. softkey should take you to the screens where you just input data and the control does the rest, it should also have simulation "wire frame" type graphics where you can run the program you have just written on the screen and watch the tool path as if the machine is cutting the part.

Hope that helps.
Regards
Rob
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-08-2009, 02:16 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

As far as I can tell... (I don't have a machine manual for M-codes and/or I/O signals)

G65Hnn calls a function, i.e.: =, <>, etc. P, Q, & R are the variables.

G65H01 is variable assignment (P=Q)
G65H81 is simple (IF Q=R GOTO P)

So your ISO macro:

O9001(ISOMACRO)
M22 (unsure of function of M22)
G65H81P30Q#1000R1 (if #1000=1, goto N30 - #1000 is an I/O signal)
G65H01P#149Q#4003 ( #149=#4003 - store value of group 03 g-code - G90/G91)
M19G91G80 (orient spindle, set incremental mode, canned cycle cancel)
G65H81P10Q#1001R1 (if #1001=1, goto N10 - #1001 is an I/O signal)
M23G28Z0 (unsure of M23, return Z to home)
M21 (unsure)
M26 (unsure)
G30Z0 (return Z to 2nd zero)
N10G65H81P20Q#1002R1 (if #1002=1, goto N20 - #1002 is an I/O signal)
M26G30Z0 (unsure of M26, return Z to 2nd zero)
M24 (unsure)
M21 (unsure)
G28Z0 (return Z to home)
N20M25 (unsure)
M22 (unsure)
G28Z0 (return Z to home)
G#149 (set G90/G91 to original state)
N30M99
Reply With Quote

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

Originally Posted by beege View Post
Aha! Finally some examples of macro A. Surely someone has an old manual...
I agree. The cobwebs are going to have to be dusted off that manual. Well done Dave….as much as I hate macroA it is always nice to see an example of it.

Jim…I PM’d you back your parameters and labeled them. I would suggest using macroB for your tool change programs. I saw the programs in the PM and they are much easier to understand and tweek what you want to. MacroA is outdated IMO. You can see as Dcoupar has put in () the definition of each line and the definition he wrote (for arguments sake) is in a macroB format. A lot easier to follow.

To call up program 9001 with the M6 code you have to set parameter 240=6 and if you want to call program 9003 with the M6 then set parameter 242=6.

FYI on the Oseries controls
Parameters 240-242 calls programs 9001-9003 using M-codes
Parameters 230-239 calls programs 9020-9029 using M-codes
Parameters 220-229 calls programs 9010-9019 using G-codes

That’s my .02cents.

Stevo
Reply With Quote

  #8   Ban this user!
Old 12-09-2009, 01:07 AM
 
Join Date: Mar 2005
Location: United States
Age: 34
Posts: 657
gbowne1 is on a distinguished road

I've been wondering about the 0M macros myself as the system 0M I have planned has a 266kB Macro Cassette.

I guess I will have to study the 0M-C macro manual more.

Greg
Reply With Quote

  #9   Ban this user!
Old 12-09-2009, 07:15 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by gbowne1 View Post
I've been wondering about the 0M macros myself as the system 0M I have planned has a 266kB Macro Cassette.

I guess I will have to study the 0M-C macro manual more.

Greg
The nice thing is macro’s are macro’s and don’t just pertain to the Om control. The only things that will typically change across the different series fanuc controls would be the system variables. So once you learn them you will have a good understanding across the fanucs. I would suggest that if you are going to study up on them then study macroB. MacroA is outdated.

Once you start learning and using them you won’t stop. You will start to look for ways to incorporate them into everything you are doing, even if it’s overkill.

The fanuc manuals are going to be very hard to learn from.

Stevo
Reply With Quote

  #10   Ban this user!
Old 12-09-2009, 08:38 PM
Zoner's Avatar  
Join Date: Nov 2009
Location: Cyprus
Posts: 41
Zoner is on a distinguished road

Many thanks guys.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-09-2009, 09:51 PM
 
Join Date: Mar 2005
Location: United States
Age: 34
Posts: 657
gbowne1 is on a distinguished road

The Macro Cassette I have on hand is a A02B-0091-C115 and is a 256KB macro cassette for the FANUC 0 control. It's listed as a "Macro Cassette C" on the label.

This is much like the PC cassette on the 11 controls.

It's found affixed to one of the small slots on the mainboard.

I guess that it needs to be written to by a special device.

Greg
Reply With Quote

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

Greg,
I have never used the macro cassette on the O controls. I would ass u me that you would need to write to it somehow. The cassette pertaining to the 11 series is the ladder logic.

Stevo
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
Print interpretation CFS German CNCzone 1 04-04-2010 04:28 PM
Need Help!- macros bob@apc Mazak, Mitsubishi, Mazatrol 2 02-04-2008 11:42 AM
CAD file interpretation problem NC Cams Post Processor Files 1 10-12-2007 06:11 PM
Help with macros afterburn25 Haas Mills 4 04-09-2007 08:19 AM
Macros cncfreak General CAM Discussion 24 05-06-2005 05:04 PM




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