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 06-09-2009, 08:54 AM
 
Join Date: Jun 2009
Location: India
Posts: 5
eswar.enp is on a distinguished road
Thumbs up Macro Executor

hi,
I want make a macro screen in which the user should able to change the G54 values(work offset).

kindly help me in this regard.

thanking you,
Eswar.
Reply With Quote

  #2   Ban this user!
Old 06-09-2009, 09:19 AM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
James L

Are you looking for a screen that prompts users to enter values? How will the positions be recorded initially by the operator? Could use a little clarification on this.
Reply With Quote

  #3   Ban this user!
Old 06-10-2009, 04:49 AM
 
Join Date: Jun 2009
Location: India
Posts: 5
eswar.enp is on a distinguished road

No, I am developing the program.
My requirement is through that screen i should be able to change work offset values.
I have compiled the a sampl macro program and loaded , it is working fine. But i am not having any idea how to input value through macro screen.

thnks
Eswar
Reply With Quote

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

Eswar,
First off what model Fanuc control are you using? If you just want them to change the G54 you can go to the offset page that displays the G54-G59 settings and you can have them change them there. That is the only screen that I know of that you can change the values of G54.

If you wanted a program to change them say a main start program then you could have them programmed as follows.

O0001(main start program)
#5221=10(G54 X VALUE)
#5222=15(G54 Y VALUE)
#5223=7(G54 Z VALUE)


M98 or G65 Pxxxx

On a side note to G54 this is usually the machines default work coordinate so any values in here will be taken into account for any moves after the machine program has ended or reset has been pressed. IOW when all tool offsets and modal codes have been canceled your G54 is still active with the current values your operators had set. I usually have the guys use G55-G59.

Stevo
Reply With Quote

  #5   Ban this user!
Old 06-10-2009, 10:02 AM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
James L

I can't think of any ways of getting a macro to prompt for input right off. If, however you wanted an operator to be able to load a piece of work and read the edges with and edge finder you could use a macro call similar to what steveo listed at the start of a main program. I'm still not 100% on the application of this.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-10-2009, 10:50 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

The best way to have a program prompt the operator for input would be to have a M0(program stop) or a operator message using #3006 variable. Once the program is stopped you could have a note to have them set X,Y,Z location to variables and then have the variables read to G54. Ex below.

O9000(macro xxx)


M0
(set #100=G54 X position)
(set #101=G54 Y position)
(set #102=G54 Z position)

#5221=#100
#5222=#101
#5223=#102


Inplace of the M0 if using the #3006 to display a message would be as follows. #3006=1(set #100,#101,#102=X,Y,Z). Whatever is written in between the () would be displayed as the message. The limit to this is a message can only usually display a max of 26 characters.

Stevo
Reply With Quote

  #7   Ban this user!
Old 06-10-2009, 01:19 PM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
Prompt

I can see using a message to operator. I was unsure if, after doing this, input could be read by the program without having to restart the macro with different variables. If it is possible to add this level of interaction with the macro then I can think of a whole range of possibilities with this. All programs I run are on Haas machines.
Reply With Quote

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

James,
I am unsure of the exact capabilities of a Haas. I mainly use Fanuc and I know that Fanuc and Haas run pretty close to the same. I have been slowly picking up on the Haas functions through various threads and I have been seeing a lot of very useful functions that I wish Fanuc had.

Operator messages function like the M0 or M1 function except the #3006 displays the message. The program will stop on that line of code. Once the cycle start button is pushed it will continue with the next block. Now with the Fanucs you will be on the operator message screen and you will have to navigate back to the program screen. You can try this quite easily by programming the #3006=1(message) and once the message is displayed go back to your program screen and the #3006 block should be highlighted and paused as if it were a M0. Now just push cycle start.

I use both ways but if you have to display a larger man readable then the M0 is the only option because of the limited charters with the #3006.


Originally Posted by James L View Post
If it is possible to add this level of interaction with the macro then I can think of a whole range of possibilities with this.

When it comes to macros and things like this the limitations are almost endless. I am still trying to figure out some of the functions from my predecessors. He had about 40 different macro programs working together using about 20 different tools and the parts had a combination of about 60 different processes. To top it all off there were about 500 different part configurations. All you had to do was look at the matrix sheet and pick were you wanted to start anywere in the 60 different processes and type the code of 13596746. Each group of 2 numbers would dictate were the program should lead. Then again if I had written my college thesis on machine tool programming like he did then I would probably understand.

Stevo
Reply With Quote

  #9   Ban this user!
Old 06-10-2009, 02:39 PM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
M0/#3006

I'll have to play around with that a bit. As far as differences between Haas and Fanuc machines running macro, there are pros and cons both ways. Fanuc has a number of options available in its macros that is not supported by the Haas machines I am using.. specifically the modal macro calls.

Last edited by James L; 06-10-2009 at 02:41 PM. Reason: Type-o
Reply With Quote

  #10   Ban this user!
Old 06-10-2009, 03:23 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

So Haas doesn’t support the macro modal call like the Fanucs G66? I don’t usually use the modal call because most of the holes are that we drill are equally spaced or can be calculated in the macro. However there are a few times that we get holes at all various locations throughout a part and the modal call is the cats a$$ when it comes to that.

Stevo
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-10-2009, 06:00 PM
 
Join Date: Nov 2006
Location: USA Texas
Posts: 310
John_B is on a distinguished road

Stevo,
It must vary by MTB which coordinate a machine defaults to at the end of a cycle. Both my machines with 0m-C controls default to "G53". My machine with a 10m control I think stays at G54 as you mentioned.

It sound like Eswar is looking for a macro similar to those I use. I have a series of 8000 programs I leave in the control that start at 8054, 8055, and so on that reads the current position register and changes the appropriate G54, G55, and so on to that position. This way I just do my edge-finding, use the relative position field and zero the first axis I do, then find the second axis - and when I've found both I return both to the zero position in the relative field and run the macro for the workshift I'm going to use in the program.

I also have one stored as 8000 that I use to record the tool length offset when I touch off, it reads the current Z position, the current tool #, then enters the position in the appropriate tool offset register.

These have saved me a good bit of time over the last few years. I'm not where I can get to these macro programs just now, but I can post them later if needed. They're not too sophisticated though, this is pretty basic programming.

Best regards,
John B
Reply With Quote

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

I believe Eswar is looking to build a "custom screen" such as several manufacturers have done (YCI and Doosan I know of have them). Hence "Macro Executor" in the subject line. I've seen reference to "Embedded Macros", but I don't even know where to point him for how to get started. It seems to me that there's quite a bit of $ required for software, compilers, etc.
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
"difference between Custom Macro A and Custom Macro B" arulthambi Parametric Programing 4 10-05-2009 03:34 PM
Problem- Jaw Macro DIFF OVER Okuma 3 04-15-2009 06:41 PM
Testing program for Macro (Fanuc Macro B) NickDP Fanuc 2 03-27-2009 03:15 PM
Convert Fanuc Macro to Fadal Macro bfoster59 Fadal 1 11-08-2007 11:41 PM
One More Macro ? 16I Bluesman General CNC (Mill and Lathe) Control Software (NC) 4 02-07-2006 05:06 PM




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