Thread: Newbie Okuma Newbie Needs Help
View Single Post
  #3   Ban this user!
Old 02-02-2008, 02:31 AM
broby's Avatar
broby broby is offline
 
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 578
broby is on a distinguished road

[quote=craven12;403215]2003 Okuma Captain L370M OSPE100L, IEMCA VIP 80 Barfeeder.

Hi folks, new to this site. For the last 10 years I have run Fanuc controls. We now have a used Okuma, which I have no
experience with. This is a SSB file that was with the machine when we got it. I am trying to understand it. It's for
the barfeeder. Can someone explain what some of the commands mean? G and M codes (except for the M436, I can't seem to find what that is) I do know, but VDIN, NRTS, RTS, I don't know.
Any help would be appreciated.

Craven12

-------------------------------------------------------------------------------------------------------------------
(Making the assumption this program is Imperial)
OBAR2 (sub program name, ie what is called from the main program)
N1 G50 S3000 (max spindle speed)
G0 X22 Z22 M5 (Rapid to Home posn and stop the spindle)
T010101 (select tool 1, Tool Nose Rad comp for 1 and Offset 1)
X.200 Z.02 T010101 (move to posn making sure tool 1 is selected first)
M84 (open the chuck)
G4 F8 (pusher does full retract, so it doesn't whip in the sleeve. Slow to advance, hence the 8 second dwell) (well you know the answer here already)
M83 (Close the chuck)
G4 F2 (wait another 2 seconds)
G0 Z1 (rapid to Z posn)
IF [VDIN[24] EQ 1] N100 (this is checking an input to see if it is on or not)
(to find out which one you need to have the maintenance manual)
(if the input is ON then it will jump to line N100)
GOTO NRTS (unconditional jump to line NRTS)
N100 M77 (what does M77 do when input via MDI?)
M84 (open the chuck?)
G0 X22 Z22 (rapid to home position, but if M84 is Chuck open then lookout!)
G4 F8 (wait 8 seconds)
M436 (what the heck is this? Have you tried via MDI to see what happens? With hand near E-Stop!)
M83 (close chuck)
M76 (Try via MDI to work out this M Code)
G4 F2 (wait 2 seconds)
G0 X.100 Z.02 T010101 (rapid to XZ position with tool 1)
M84 (chuck open)
G4 F8 (wait 8 seconds)
M83 (chuck Close)
G4 F2 (Wait 1 second)
G0 Z1 (rapid to Z1)
NRTS RTS (RTS means ReTurn from Sub, Equivalent of Fanuc's M99)

I would suggest that you try in MDI mode some of the M codes to see what they do, then the process of decoding the program will be much easier!
If this program is to be used for barfeeding it seems to contain some rather strange coding and movement values.

The SSB file I created for barfeeding is much easier to follow...
Program is written for a maetric system!
The call to the program contained several variables allowing the user to select the barfeed tool number, length to feed out, Diameter at which the tool is to be positioned at and the position at which the "cut" face is located at.
the G94 allows the machine to move in feed mode without the spindle rotating! (feed per minute rate rather than G95 feed per rev)



$B-FEED.SSB%
SUBPROGRAM OBARF USED FOR BAR FEEDING IN LCS15 ONLY
LAST UPDATED 29/08/97 BJR
TO USE, COPY FOLLOWING LINE INTO MAIN PROGRAM
CALL OBARF LEN=84.5 CUTP=-2.5 TOOL=505 DIAM=05
OBARF
N1 G0 X600 Z600
NBARF T=TOOL
N3 X=DIAM Z=LEN+5
N4 Z=CUTP
N5 M84
N6 G1 G94 Z=LEN+0.5 F3000
N7 G4 F1
N8 M83
N9 G0 G95 X600 Z600
N10 RTS

Hope some of this makes sense!
If not... oh well, one but can try eh!?!
Cheers
Brian.
Reply With Quote

 

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