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! > MetalWorking Machines > Okuma


Okuma Discuss Okuma machines here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-22-2009, 12:10 PM
 
Join Date: May 2009
Location: usa
Posts: 86
guydrisc is on a distinguished road
425 UNUSABLE G CODE 31!!

IT SEEMS LIKE IM GETTING CLOSER AND CLOSER TO RUNNING THIS MACHINE... I GOT THE MACHINE TO RECOGNIZE MY PROGRAMS BUT NOW I GOT THE "425 UNUSABLE G CODE 31" ALARM.. THE MANUEL SAYS G31 IS THE SKIP FUNCTION.. CAN SOMEONE GUIDE ME A LITTLE, IM NEW TO OKUMAS
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 05-22-2009, 06:18 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

G31 is a threading cycle on a lathe
and a "skip function" on a mill

I checked our manuals, found no real info on G31 ( may have something to do with customising an automated process / autogauging or the like ), I have not seen it used on a mill

Can you post the section for us to read ?
and explain what you want to have this G31 do, it may be that the wrong G-code has been selected ( manuals also say it cannot be used when G169 is active ).
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 05-22-2009, 06:40 PM
 
Join Date: May 2009
Location: usa
Posts: 86
guydrisc is on a distinguished road

there is no G31 in my program at all... i try to run the program and that is what the alarm says..... its wierd.. i do a G31 search in the post and nothing comes up...
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 05-22-2009, 07:59 PM
Oti Oti is offline
 
Join Date: Sep 2006
Location: USA
Posts: 24
Oti is on a distinguished road

What model is the control? I will dig through the books this weekend and see what I can find.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 05-22-2009, 08:40 PM
 
Join Date: May 2009
Location: usa
Posts: 86
guydrisc is on a distinguished road

it is a 5020m OSP
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-23-2009, 01:15 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Is there any library files in the machine ?
do a directory search for *.LIB

At what stage does this alarm pop-up ? what is the commanded line of code ?
The older basic Okuma's read up to 4 lines ahead, to narrow it right down, do it in single step

eg
loading the program = OK
at a "CALL" statement = alarm
or M6 = alarm

What it may be is in a file in the system area for doing a machine operation
like M6 behind the screen sequence is spindle orientate, coolant OFF, rapid retract to G30 P1, toolchange cycle. end cycle ( this is editable by a MTB - Machine Tool Buider or Okuma )
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 05-23-2009, 05:01 PM
 
Join Date: May 2009
Location: usa
Posts: 86
guydrisc is on a distinguished road

it happens in the first line of code..
$BASHPLATE.MIN%
O0001
N100 G20
N101 G0G17G40G49G80G90
N102 G30P1
N103 T4M6
N104 G0G90G54X10.0154Y-3.6748S6000M3
N105 G30P1
N106 G43H4Z1.
N107 Z.2
N108 G1Z.1F10.
N109 G2X10.072Y-3.5924Z.0917I.0283J.0412F60.
N110 X10.0154Y-3.6748Z.0835I-.0283J-.0412
N111 X10.072Y-3.5924Z.0753I.0283J.0412

blah blah

not even sure if this is right but it is what i am trying
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 05-23-2009, 07:27 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Originally Posted by guydrisc View Post
it happens in the first line of code..
$BASHPLATE.MIN%
O0001
N100 G20
N101 G0G17G40G49G80G90
Is this what is on the screen in the control ?

1st line
If it is, then the first line shouldn't exist ( it is only used in the upload process to name the file in the Okuma control, and is present only on the PC copy )

2nd line
:Oxxxx, FANUCs use it here for their naming info.
Oxxxx is usually a sub-routine naming address.
If it isn't used in a "CALL" statement, eg CALL O0001, then there has to be a RTS somewhere after it, similar to an M2/M30.

These sub-routines are normally placed after the M2/M30 at the end of program before the final %

I think your problem is the 2nd line
Comment out both lines in the control and run again
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 05-23-2009, 11:18 PM
 
Join Date: Feb 2007
Location: USA
Posts: 529
skullworks is on a distinguished road
Exclamation Needs lots of revision before it will work on a 5020m

Originally Posted by guydrisc View Post
it happens in the first line of code..
$BASHPLATE.MIN%
O0001
N100 G20
N101 G0G17G40G49G80G90
N102 G30P1
N103 T4M6
N104 G0G90G54X10.0154Y-3.6748S6000M3
N105 G30P1
N106 G43H4Z1.
N107 Z.2
N108 G1Z.1F10.
N109 G2X10.072Y-3.5924Z.0917I.0283J.0412F60.
N110 X10.0154Y-3.6748Z.0835I-.0283J-.0412
N111 X10.072Y-3.5924Z.0753I.0283J.0412

blah blah

not even sure if this is right but it is what i am trying
Son - first off pitch the fanuc post you used to make the code - its useless

I'm going to take what is above and show how it should be.

O0001 - O#### is not neded
N100 G20
N101 G00G17G40G49G80G90
N102 G30P1
N103 T4M6
N104 G00G15G90G54X10.0154Y-3.6748H1S6000M3
N105 G30P1
N106 G43G56H4Z1.
N107 Z.2
N108 G01Z.1F10.
N109 G02X10.072Y-3.5924Z.0917I.0283J.0412F60.
N110 X10.0154Y-3.6748Z.0835I-.0283J-.0412
N111 X10.072Y-3.5924Z.0753I.0283J.0412

M2


Remove anything greyed - add items in blue.

So - basically all leading zeros within a G Code MAY be required ie G1 must be G01(allmost all 5020 controls)

Work coordinates are called using G15 Hxx (01-20) not g54-g59
Tool offsets are called using G56 Hxx not g43

I have no clue what you were attempting with the G30P1 - loose it.

Programs end with M2, and an M2 must be found - M30 is not used.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 05-23-2009, 11:44 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

skullworks
So - basically all leading zeros within a G Code MAY be required ie G1 must be G01(allmost all 5020 controls)
Leading zeros not required M00 same as M0, F0.001 same as F.001, T01 same as T1

Work coordinates are called using G15 Hxx (01-20) not g54-g59
Tool offsets are called using G56 Hxx not g43
I'll agree here


I have no clue what you were attempting with the G30P1 - loose it.
this is okuma code, telling him to loose it, is like telling him to cut his good hand off, and saying "get used to it ". Suggest you look up your manual, these are reference return points P1 is usually the toolchange point. Don't remove it just because you don't know what it does

Programs end with M2, and an M2 must be found - M30 is not used.
BullS---M2 and M30 can be used at the end of the program
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-24-2009, 12:36 AM
 
Join Date: Feb 2007
Location: USA
Posts: 529
skullworks is on a distinguished road

OK - My bad
-" So - basically all leading zeros within a G Code MAY be required ie G1 must be G01(all most all 5020 controls) "-

Should have been:
" So - basically all leading zeros within a "G" Code MAY be required ie G1 must be G01 (all most all 5020 controls)

As to the G30P1 - I am well aware that it is used on a few specific Okuma machines as a 2nd zero return - and I can think of 2 examples where it is needed.

1) Exchanging a tool from a vertical spindle to the horizontal spindle or the other way.
2) Tool change with a pallet or 4th axis present.

On most machines I have come across the G30 position has not been defined unless addon hardware like a 4th axis or pallet changer has been added - and then it had to have been added by an authorized Okuma dealer.

As to M30 I know our newer OSPE100 and both the OSP5000 and OSP5020 machines will not allow a "program select" if the program ends with M30. - I will admit this may be unique to U.S. sold models.

For tool change on mills the M6 will take the spindle to the tool change location. On lathes the turrets must be fully up on the X axis limit to index, and this must be a programed move.

I may be a bit rusty on Okuma's since I have not touched one since Decemeber, I've been off in Mexico training a new facility in the use of the Hwacheon and Mazak lathes and the Staubli "PUMA" robots. I only have 19 year exp on OKUMA machines - still have not run any of there CNC grinders, that might be fun (not). I prefer the Dual turret LR lathes and the old MC series Vertical machines. I think the old LB-15 was one of the best hunks of iron ever made.

I prefer Mori-Seiki, but feel safer turning an operator loose on a Okuma.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 05-26-2009, 07:48 AM
 
Join Date: Dec 2008
Location: Canada
Posts: 79
Goldorak is on a distinguished road

Originally Posted by Superman View Post
skullworks
Leading zeros not required M00 same as M0, F0.001 same as F.001, T01 same as T1


I'll agree here



this is okuma code, telling him to loose it, is like telling him to cut his good hand off, and saying "get used to it ". Suggest you look up your manual, these are reference return points P1 is usually the toolchange point. Don't remove it just because you don't know what it does


BullS---M2 and M30 can be used at the end of the program
you are absolutely right !

the G30P1 is include in the automatic tool change cycle, there is no need to leave it in the program
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
Newbie- Takeout Unused G Code commands in Mastercams Generated G Code shneek Mastercam 8 12-15-2010 03:32 PM
learning g code or cad-cam code output? slow_rider G-Code Programing 3 02-27-2010 09:48 PM
Need Help!- G-Code viewing source code Hussam Visual Basic 3 03-15-2009 01:15 PM
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 10:21 PM
Tool height "touch off" tool unusable DHK DeskCNC Controller Board 6 05-06-2006 01:54 PM




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