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 09-28-2007, 12:05 PM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road
Parametric programming question.

Is there away in parametric programing to have the control ask the operator a question, have the operator input answer then pass that to the program as a variable?

Example.

Display this on the control. "What is the part number"
The operator then enters part number. "0469"
So that after that input variable #1 will be 0469
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-28-2007, 02:30 PM
 
Join Date: Jan 2007
Location: Hamilton,Oh
Posts: 325
bborb is on a distinguished road

What control would you like this to happen on?
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-28-2007, 03:28 PM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road

its a fanuc ot.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-28-2007, 07:52 PM
 
Join Date: Jan 2007
Location: Hamilton,Oh
Posts: 325
bborb is on a distinguished road

What you're asking can't be done on an OT, as is, since the operator would have to keypress over to the screen for variable input, cursor down to the proper variable, type the value and then press [INPUT].
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-28-2007, 08:16 PM
 
Join Date: Nov 2006
Location: usa
Posts: 58
sluggo is on a distinguished road

You could have your operator put the program number into a predetermined offset. Then have the program stop and display that number before it ran, and ask if that is correct, if it is the operator could just hit cycle start to contniue, if not stop and change it.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-29-2007, 12:43 AM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road

Yeah since most of the operators have zero manufacturing experience. I can't go the parameter route I was thinking of some thing like this.


%
O0001
(Enter part number here)
#1=0469


Then use if then statements to set up the rest of the program based off that number. I think I can train the operator to drop to edit and just alter that one line. Now the only issue I have is figuring out a way to get the operator to remember to adjust the work shift on the few parts we have to. This program is to streamline a part family we have.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-30-2007, 12:57 AM
 
Join Date: Nov 2006
Location: usa
Posts: 58
sluggo is on a distinguished road

Ok, stay with me here this is kind of hard to explain. What I'm saying is this, say you have five different programs and a fanuc control. First figure out what the variable is for say H1 ( the very first length offset ) I don't know what it is off the top of my head but it should be in your manual, we will say it is #2500 for know. Then write a main program with some logic like this in it.

IF [#2500EQ100] GO 100 (100 IS YOUR FIRST PART, PC 100)
IF [#2500EQ150] GO 150 (PC 150)
IF [#2500EQ200] GO 200 (PC 200)
IF [#2500EQ250] GO 250 (PC 250)
IF [#2500EQ300] GO 300 (PC 300)

N100 M98 PO100
AND SO ON, you can use what ever your part numbers are so it is not confusing. This way all your operator will need is to go to the offset page and fill in the first value. Then put a check, Like i mentioned in my other post, that will remind the operator to check the value. This may sound confusing, but I think it would be pretty simple to run, just one value to set.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-30-2007, 11:33 AM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road

Ok I see what your saying. That would work better than them going into edit mode. I'll have to look that varible up in my manual. Now what this program will be for is making different types of nipples out of schedule 40 pipe. There are threads of different lengths in the part family. Some of the longer threads lengths we have to hang the part further out of the chuck. We use the workshift to do this. Can I put a check in the program to see if they adjusted the workshift, if the part number they entered requires it. If they haven't it throws an alarm?
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-30-2007, 12:45 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070930-1131 EST USA

chrisryn:

I have no real experience with Fanuc, but I have with HAAS and it is similar.

Assuming you have MACROS, then consider:

A main O# program for each part, and one surbroutine for your part program. The operator picks the main program desired, then hits START.

Example:

%
O0100
(part numb 91308-07-251)
M00
G65 P1000 and your parameters that define the part
M30
%

%
O0101
(part numb 91308-08-263)
M00
G65 P1000 and your parameters that define the part
M30
%

%
O0102
(part numb 91308-11-373)
M00
G65 P1000 and your parameters that define the part
M30
%



%
O1000
G54 (Or whatever coordinate system you want.)

(Start up stuff.)

(Your cutting program.) (Uses the passed parameters to define the part.)

M99
%

Consider G52 as a means to offset from your base G5x coordinate system. The value for G52 can be passed in as one of the parameters.

.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-30-2007, 02:13 PM
 
Join Date: Nov 2006
Location: usa
Posts: 58
sluggo is on a distinguished road

What control are you working with? I don't know if you can have it alarm out if they don't change the work shift, but you can have it stop and tell them to check. Is it the same amount of shift every time for each part, if it is you can preload those shifts in the sub programs and have the control call it up when the program runs.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-30-2007, 03:04 PM
 
Join Date: Mar 2006
Location: United States
Age: 31
Posts: 153
chrisryn is on a distinguished road

Its a fanuc 0T. All of our tool geometry is from the face of the chuck. We use the work shift to shift the program zero(datum) to were the end of the part will be. So depending on the length of the threads is were the work shift will be. So I guess yes would be the answer to your question. If there making 3" long threads the work shift will be the same every time they make 3" threads.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 10-01-2007, 08:01 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

071001-0633 EST USA

chrisryn:

Set your tools however you want. Then adjust G54 Z so that when G54 is active that Z=0 is the face of the chuck. From your description I believe this is your current method. Now if you want your working coordinate system to have Z=0 at 3" away from the chuck face, then insert the instruction
G52 Z 3.0
After this instruction and until changed your working coordinate system is changed by the content of the G52 registers.

In Fanuc at power on, program start, and various other changes of operating mode the G52 regsisters are all zeroed.

The G52 values are added to whatever the current active G5x is. However, you may need a sign reversal in the G52 Z command. Experiment to determine the sign to use in the G52 Z command, and do it with G54 set away from the face of the chuck.

You can put the offset value in the G52 command with a variable. Such as
G52 Z #500
Prior to the G52 you can insert a test on #500 that would prevent being closer than some desired value from the face of the chuck.

.
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
Parametric programming. chrisryn Parametric Programing 32 01-26-2009 06:14 AM
New to Parametric Programming weaston G-Code Programing 4 02-27-2007 08:40 AM
Parametric Programming weaston General CAM Discussion 4 02-20-2007 08:25 AM
Parametric Programming widgitmaster BobCad-Cam 7 05-04-2006 02:04 PM
parametric programming Karl_T CamSoft Products 21 05-24-2005 03:58 PM




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