We are machining multiple parts in one program, using g15 H# Is it possible to have a blank for each work offset in the graphic area?
Printable View
We are machining multiple parts in one program, using g15 H# Is it possible to have a blank for each work offset in the graphic area?
Yes
Each seperate stock for each offset should start DEF WORK (offset#) [ syntax should be close - been away from Okumas for a while ]
& your stocks should be defined before a single END & then a DRAW statement
You then can define the tools, before having the NC program code.
Okuma can have a seperate file that is loaded with the .MIN file that has the stock ( I forget the actual extension required ) ( but the filenames must be identical ) , but it is best ( IMO ) to have only 1 file.
Thanks Superman
We have done this, but only one of the stock shows on the graphics. Please look at our stock definition. Did we do something wrong?
DEF WORK[1]
DIREC V
ORIGIN H4
CYLNDR 2P,[-77,-52],[77,52],-18,2
END
DEF WORK[2]
DIREC V
ORIGIN H3
CYLNDR 2P,[-77,-52],[77,52],-18,2
END
DRAW
The second definition is being ignored? You have two END statements and Superman said only a single END statement is required.
I had better luck formatting things like this as so:
DEF WORK[1]
DIREC V
ORIGIN H4
CYLNDR 2P,[-77,-52],[77,52],-18,2
END
CLEAR
DRAW
DEF WORK[2]
DIREC V
ORIGIN H3
CYLNDR 2P,[-77,-52],[77,52],-18,2
END
DRAW
I don't remember why, but that's what I remember working for me.
Thank you tea hole
I have done what you have suggested inserting the "clear" but is still ignores the second graphic.
I'm more inclined to go along this avenue
Mind you, it has been a long time since running an OkumaCode:
DEF WORK[1]
DIREC V
ORIGIN H4
CYLNDR 2P,[-77,-52],[77,52],-18,2
ORIGIN H3
CYLNDR 2P,[-77,-52],[77,52],-18,2
END
CLEAR
DRAW
This is what works for us on our MC-V4020:
CLEAR
DEF WORK[1]
ORIGIN H1
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H2
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H3
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H4
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H5
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H6
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H7
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
ORIGIN H8
CYLNDR 0P,[0,0],24,-17,1
CYLNDR 0H,[0,0],08,-17,1
END
DRAW
8 fixture offsets each with it's own cylinder with a hole in the middle.
Best regards,
Okuma Wiz,
Can you explain what the information on each line means? I am a newbie to Okuma and I am trying to understand these lines.
I understand it is a cylinder, but what do the brackets represent? and more so the numbers after?
CYLNDR 0P<----What does the 0P stand for?
,[0,0]<-----[0,0] Is this x,y locations?
,24,-17,1<----What are each of these numbers referring to?
CYLNDR 0H,[0,0],08,-17,1<-------What does the 0H stand for? the Hole?
Thanks,
Todd
Consider 0P = Part, 0H = hole
[0,0] start drawing at x0 y0
24 = make cylinder dia = 2.4"
-17 = make length -1.7" so zero is at top and cylinder is -.1.7 long from z zero
1 = solid pattern
Soooo, it draws a cylinder 2.4" diameter with a .8" hole thru it. 1.7" long with z zero at the top of the part.
Best regards,