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 04-16-2009, 09:59 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road
Question Problem with ssb/lib file

MA500 OSP200 control

Was wondering if some one could help me with a problem I'm having. I use a sub program call to change tools at work to avoid wrong tool command errors when restarting etc. My normal tool change is CALL OCHG1 TOOL=nn where the sub OCHG1 is:

OCHG1
M5 G30 P1
IF[VTLCN EQ TOOL] NTLOK
IF[VNTOL EQ TOOL] NCH
IF[VNTOL EQ 0] NTC
M64
NTC T=TOOL
NCH M6
NTLOK
RTS

I also have it in a lib file where TOOL=60 registered as G115 so that my operators can clear the presenter and spindle to check tools at the end of shift.

What happened
I was firing up the machines the other morning, running the 1st piece to put the machine into cycle and it never changed tools. It started running the program with the current tool, T60, in the spindle but it called up the tool length offset for the 1st tool in the program, H07, was making the first rapid move and had called up work offset H11, spindle and coolant on. Also the program display screen wasn't displaying the program. It showed the correct program name in the title bar, but nothing was displayed in the window. I dialed rapid down to 0% and hit Quick Edit. The active line was the CALL OCHG1 TOOL=07 line. Aside from the unexpected results I find it odd that it would show the active block as the tool change line but be processing the block 4 lines past that. Program structure is:
O5001
(COMMENT LINES)
RP=1M289
G119 (Lib program that clears the work offset, Z axis to "home", then X and Y to tool change position then B0.)
G0G90G94G20G80
M1
N1007 (*TOOL 7* 2IN ISCAR FACE MILL *LONG*)
CALL OCHG1 TOOL=7
G15 H11
M08
M120
G0 G90 X-18.5 Y3.5S1145M03
G56 H07 Z12.
Z8.2389
G1 X-17.2

Same exact results in MDI when entering CALL OCHG1 TOOL=1. It started to run the program for the current pallet, blank program window, and called the offset for the 1st tool (T7) in the program etc. G115 after an MDI tool change using the M06 command did the same.

After talking with a friend he suggested that perhaps someone had went into the parameters and disabled the interlock that prevents a tool change to an empty pot. His suggestion was to create a main program with the T variable in it. Load that program, power down completely and back up then run the main program so I did after commanding an M6 tool change in MDI. As a main program it works. Tried calling up the main program for the part again and running, same strange result. I thought it might have to do with a 7in face mill I had installed in the machine the night before for another setup, the interlock for the tool change, so I cleared it and the two dummy tools from the tool registry so the 3 pots showed NONE. No luck.

Checked the keystroke log to see if I could find any entries where someone had gone into the parameters but is didn't show anything. The operator stated that it ran fine the day before, obviously since it didn't crash, and that he had not been on the control except to pallet change when OP1 came out with a slag hole inside a drilled boss and left him with no part for the OP2 fixture. Which is one of the reasons I use the sub call to start with.

Does anyone have any idea what might be causing this? I'd appreciate any help, ideas etc.
Thanks
Scott
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-17-2009, 05:14 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?

Can you put up what these variables represent ?
VTLCN
VNTOL
VNTOL

I think
VTLCN is current tool
VNTOL is next tool

Have you single blocked thru the code and checked the variables after each block ?

Could an additional block be inserted that would error if conditions are not meet ? ie IF [ VTLCN NEQ TOOL ] err "TOOL NOT LOADED" after the M6 line

We have ours set to replace the M6 code with a G-code
works a similar way, no T/C if the tool is in the spindle but goes to P1, if T/C required , it goes to P1 and T/Cs

ie
Code:
N1999 M1
()
N2000 G116 T3 ( Tool 3, H3, D3, dia=25mm)
N2001 T4
()
N2002 G15 H1
let me know if you want a look at the G116 file

Have a look at this thread-post #6
OKUMA MA40 HA variables

extra ideas ?? maybe
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 04-17-2009, 06:34 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road

You are correct about the variables.
VTLCN= Actual tool number in the spindle
VNTOL= Tool number in the presenter
VNTOL EQ 0: If next tool=Zero then stage the tool number that the program making the call has set as the variable for TOOL.

I'd like to see your routine it if you don't mind posting it.

I didn't think of the single block and check so no I haven't I'm afraid. I got focused on what was suggested about the interlock. The person who I was talking to set the machines up when he was our tooling and apps eng before going to work for an Okuma dealer. It was a problem that had occured on other machines he had dealt with and he had a ready culprit and fix in mind so... Considering despite 5 weeks notice he was not treated well when he left I try not to bother him too much for stuff like this, although he is the kind of guy that would drop in on his way through town just to help out.

As to the other thread. I printed it yesterday to read over the weekend but haven't gotten farther than "Cool more info". I use a main program that is essentially sets my XYZ work offsets used in the program for each pallet, then checks the current pallet with a goto line to call the appropriate sub file for that pallet. It was set up this way so we could later add the robot and pallet loading system we want to the Okumas and run several part sets (LH and RH) together. Different way to skin the same cat as a schedule program.
Snipped from A500.MIN
IF[VPLNO EQ 1]N010
IF[VPLNO EQ 2]N020
MSG(PALLET NO NG)
GOTO NEND
N010 CALL O5001(.SSB)
N011 GOTO N001
N020 CALL O5002(.SSB)
N021 GOTO N001


Originally Posted by Superman View Post
Can you put up what these variables represent ?
VTLCN
VNTOL
VNTOL

I think
VTLCN is current tool
VNTOL is next tool

Have you single blocked thru the code and checked the variables after each block ?

Could an additional block be inserted that would error if conditions are not meet ? ie IF [ VTLCN NEQ TOOL ] err "TOOL NOT LOADED" after the M6 line

We have ours set to replace the M6 code with a G-code
works a similar way, no T/C if the tool is in the spindle but goes to P1, if T/C required , it goes to P1 and T/Cs

ie
Code:
N1999 M1
()
N2000 G116 T3 ( Tool 3, H3, D3, dia=25mm)
N2001 T4
()
N2002 G15 H1
let me know if you want a look at the G116 file

Have a look at this thread-post #6
OKUMA MA40 HA variables

extra ideas ?? maybe
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 04-17-2009, 08:40 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?
Thumbs up LIB file G116

Here you go

changed .LIB to .TXT for attaching
Attached Files
File Type: txt GAUGINGMXS.txt‎ (5.3 KB, 72 views)
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- Greetings - File conversion problem ducky Mastercam 5 03-17-2009 04:55 PM
Drilling file problem ? SScnc PCB milling 2 10-20-2008 08:57 PM
CAD file interpretation problem NC Cams Post Processor Files 1 10-12-2007 07:11 PM
DXF-file import problem stmahe Dolphin CADCAM 1 04-12-2007 11:28 AM
File to G-code problem mikie General CNC (Mill and Lathe) Control Software (NC) 7 10-24-2005 07:21 AM




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