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 > G-Code Programing > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-26-2009, 08:08 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 366
Ashish B is on a distinguished road
Question Paramteric Program

Hi

Wanted to know about parametric programming.

What i want a program which will work as under -

I will jog on to the part & after the edge finder kick, i will press cycle start. Than the machine control should capture the machine positions & store it on a memory card. The sequence of storing the locations will be the sequence of Point Pickup.


Also wanted to know about the Spindle probe mechanism. I have heard that it automatically aligns the part to the machining centre. U don't have to break your head & hours for aligning the part to the machining centre.
Some manufacturers like Heindan & Reinshaw have launched such product.


Need Help...


Ash
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-26-2009, 08:58 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

Hey Ash,
I finally found the post here. Anyway you got some answers to this in the PM I sent you but you still have not told me what control you are using?? This is very important as to the syntax and system variables that are going to be used to accomplish this.

So please specify the control model you are using.

Stevo
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-28-2009, 10:40 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 366
Ashish B is on a distinguished road
Cool Machine Control

Thanks steve for your support, time & patience.

I have an Mitsubhishi M64 control. The machine is Pinnacle 1100 Model.


Ash
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 08-28-2009, 06:17 PM
 
Join Date: Dec 2006
Location: USA
Posts: 39
HBFixedGear is on a distinguished road
Parametric Programing Resource

I am a newbie at parametric programing. Had 0 luck finding a contract programmer that could work in Fanuc Custom Macro B so I have resorted to taking an on line class. Just thought I would throw this out there for you.

http://www.cncci.com/
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-04-2009, 08:20 AM
 
Join Date: May 2007
Location: USA
Posts: 896
g-codeguy is on a distinguished road

Originally Posted by HBFixedGear View Post
I am a newbie at parametric programing. Had 0 luck finding a contract programmer that could work in Fanuc Custom Macro B so I have resorted to taking an on line class. Just thought I would throw this out there for you.

http://www.cncci.com/
What kind of machine(s) are you wanting programmed using Macro B? Rather surprised you couldn't find anyone. Steve is just one of several guys on this forum with lots of Macro B experience.

More than one has helped me. Steve especially has been very helpful.

Are you looking to program families of parts using Macro B, or for operations written using Macro B that can be used with any part?

I did a Macro B lathe program a few months ago for a guy (for free) just because I really enjoy that type of programming. Unfortunately I only program for lathes. (Not by choice, however. )
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-04-2009, 09:50 AM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
Fanuc macros

I learned to program macros straight out of a book. Peter Smid's Fanuc Custum Macro B was actually pretty good to get me started. Was a very quick read. Once you learn to work with the macro functions, going from one machine to the other isn't really all that complicated if you have that machine's manuals handy. There are usually only very slight variations in structure from one machine to the next.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-08-2009, 02:53 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 366
Ashish B is on a distinguished road
Red face Hi All

hI ALL...

Thanks for your continual reply.

But really could not any verdict over whether that type of parametric programming.

& still fighting to know whether any such provision is there or not?



I guess i put it in a wrong fashion. I will try to put in a single sentence -

"Can the machine positions be captured in a program file?"

Ash
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-08-2009, 08:23 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

Ash,
Sorry for the late reply.

Yes this should be possible on your machine. I don’t have much experience with Misubhishi controls so I am not going to have the right syntax for you. I will still give you an example of how you should be able to program this but you will have to fill in the proper variables.

On my Fanucs there are variables that are the current machine position.
#5041=current X position
#5042=current Y position
#5043=current Z position
You will have to get the proper variables for your control that track the current position. Let’s say that you are going to try to find the center of a square part on the machine.

O0001(find part program)
M0(edge find right side then push cycle start)
#100=#5041(sets right edge position to #100)
M0(edge find left side then push cycle start)
#101=#5041(sets left edge position to #101)
M0(edge find top edge then push cycle start)
#102=#5042(sets top edge position to #102)
M0(edge find bottom edge then push cycle start)
#103=#5042(sets bottom edge position to #103)
#104=[#100+#101]/2(sets #104 to the center X of the part)
#105=[#102+#103]/2(sets #105 to the center Y of the part)
#5241=#104(#5241 is my G55 X variable. I don’t know what yours is)
#5242=#105(#5242 is my G55 Y variable)
M30

You will have to find your variables for your workoffset or if you have the G10 function you can set it that way.
G10L2P2X#104Y#105

It is just a real basic program. A lot more can be added to make it do what you want.

Stevo
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-10-2009, 03:49 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 366
Ashish B is on a distinguished road
Red face

Hi Stevo

Thanks for your time, patience & Support.

Well, I again need to elaborate you about my requirement -

We have parts which have a nominal tolerance & we want to inspect it on machining centre. As the geometery of the parts are round, square or rectangular shape, so it will be possible to inspect on machining centre.
As the parts are not 3D profile & also not having close tolerance ( either customer would prefer CMM machine for the same ).
So i want to do is edge find the part & than plot in a CAD software & then by deducting edge finder radius value & than conclude whether they reflect to the drawing tolerances.

WELL I WANTED TO ASK, WHETHER IS THERE ANY SUCH PARAMETRIC PROGRAM WHICH CAN CAPTURE THE MACHINE READINGS IN A FILE (than the file can be transfered to Computer through Memory card ).


Well i guess i have cleared the direction for all.


Thanks All

Ash
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-10-2009, 10:21 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

Ok Ash I am with you now.

Yes this is done all the time. It is the exact same concept of gathering the data points as I gave you in the previous post. This is commonly done and then the DPRNT function is used to send the data to PC/printer. Now I don’t know how to do it to the memory card because I don’t use one. I do know that it is possible. I can help you to write the program to get the dimensions of the parts into the variables on the machines but we are going to need someone else to chime in on the memory card syntax. I will also need some help with the exact code your Mits control uses.

Do you have any books on this control or anyway of finding out what the variables are for the “current machine position”? Any examples on macro programming would also be helpful.

The most logical thing to do is write 3 separate programs to find the points on a square, rectangle, and circle then put that data in the variables so that they can be written to the memory card.

The “parametric” forum here does not get a lot of traffic so if we don’t see anyone chime in on the memory card or some pointers on the mits code then I will PM a few people to see if they can help out.

Stevo
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-10-2009, 02:41 PM
 
Join Date: Feb 2009
Location: USA
Posts: 64
James L is on a distinguished road
Output Macros

You would be using the DPRINT like steveo was saying in addition to POPEN and PCLOSE. A very generic macro to do what you are asking would look something like this :

O1234
POPEN
#33 = 0
WHILE [#33 LE [#2-#1]] DO1
#32 = #[#1 + [#33]]
#31 = #33+#1
DPRNT [VAR #3[5] ***DATA #32[57]]
#33 = #33 +1
END1
PCLOSE
M99


Call using g65 p1234 A(lowest # variable to be sent). B(highest variable sent)

This should store the variables into a .txt file. I will be away from the machine until tomorrow and will look further into it when I do. Also, like steveo was saying, would need more information on your machines macro variables and acceptable codes.

Last edited by James L; 09-10-2009 at 02:48 PM. Reason: Typo
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 09-11-2009, 03:00 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 366
Ashish B is on a distinguished road
Smile

oK...

gUYS....

I will dig it from the machine manual...

I will let you know as soon as possible.

Ash


Thanks for your time, support & Patience
Tweet this Post!Share on Facebook
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
tl-2 program integrity error and program data error alarm #'s 212 250 need help CNChelp Haas Mills 12 03-14-2010 09:19 PM
Mazatrol Program into a G Code Program fuzzman Mazak, Mitsubishi, Mazatrol 14 02-08-2010 04:55 PM
Program Restart in mid program? Donkey Hotey Haas Lathes 16 03-18-2008 03:19 PM
Need a CAM program SteveD CNCzone Club House 3 09-28-2006 02:46 PM
Anyone got any basic examples of a program using a subroutine/program? Darc CamSoft Products 11 10-09-2005 12:45 AM




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