Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Okuma Mill Macro help


Mr.ZX
 Share

Recommended Posts

I have an Okuma mill with a OSP control. I need a macro that I can use for tool length measurement. Are there any Okuma Macro Gurus out there that can help? I can program macros on Fanuc and Hass all day long, but do not have time to learn the "Okuma" way right now.

 

Let me know

Link to comment
Share on other sites

No tool presetter, I am going to make a preset post that will use an indicating type of presetter. I want to be able to type a command, have the tool put into the spindle, and go to the preset point. Also it must set G15H0. I wrote a couple of them for Fanucs and Hass, but the Okuma language is different.

Control type OSP-U100M

Link to comment
Share on other sites

oh ok

are you going to use G15 H0 as your position for the presetter.

I would probably use VC1 and VC2

you could say in the macro

N01

IF [VC1 LE VC2] GOTO N10

GOTO NEND

N10

IF [VATOL EQ VC1] N20

T=VC1 M6

N20G00 X0. Y0. G15 H0

M0(measure tool use mid auto manual)

G00 Z20.0

VC1=VC1+1

GOTO N01

NEND M30

 

its been awhile and I dont have my manual here with me but that should get you close.

 

so you would set VC1 to your starting tool number and VC2 to your ending tool number

then it will run the loop till it reaches there.

you could assign this macro to an MCODE then fire it from MDI also.

Link to comment
Share on other sites

yes, you can even do it with slide hold.

(caution you must get the tool close to wear you left off or it will cut right through your part!)

you just hit slide hold or M0 press mid auto manual

run your table around

put it back roughly where you left it

press mid auto off

Do Not hit cycle start

push sequence restart I am going off an old memory but it is something like that smile.gif

hey if the power goes out you know you can restart your Okuma exactly where you left off?

pretty handy for a huge stitching job

Link to comment
Share on other sites

Here ya go

 

OTOOL (PROGRAM NAME)

(************TO CALL**********)

(G111 MEASURES THE TOOL IN THE SPINDLE)

(G111 T1 [sELECTS THE TOOL AND MEASURES IT])

(NOTE: THE TIP OF THE CUTTER MUST BE IN LINE WITH THE KEY)

(AND THE CUTTER RADIUS MUST BE SET)

(SET CUTTER RADIUS FOR BORING BAR TOOLS ALSO)

(TIPPED TOOLS CAN BE MESURED WITH G111 PA=??)

(G15 H20)

IF [PA NE EMPTY] N1

PA=0

N1

IF [PT EQ EMPTY] N4 (IF T IS NOT SET GOTO LINE 4)

IF [VTLCN EQ PT] N4 (IF T=TOOL IN THE SPINDLE GOTO LINE 4)

IF [VNTOL EQ PT] N3 (IF T=NEXT TOOL GOTO LINE 3)

IF [VNTOL EQ 0 ] N2 (IF NEXT TOOL IS VACANT GOTO LINE 2)

M64 (CANCEL PRE-SELECT TOOL)

N2

T=PT (PRE-SELECT COMMANDED TOOL)

N3

M06 (TOOL-CHANGE)

N4

CALL OO30 PX=[VTOFD[VTLCN]] VFST=#81H PRS=PA

(TOOL GAUGE CYCLE)

RTS (END)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...