changing post from haas to okuma need help with work offset
Before ppl tell me to ask Mastercam or a third party let me say that they haven't paid since x5 so I have no support. not my fault company is cheap.
Okuma control is osp-p200ma
so up to now I have been changing the program by hand every time so I figured id give it a try I have figured almost everything out except 3 things, first of all, is the work coordinate system.
Haas uses a g54,g55,g56.exc what my Okuma uses is a g15 h1,g15 h2, g15 h3 and so on. below I will paste the Haas post area that has to do with the wcs
(starts here)
wcs #G54+ coordinate setting at tool change
if mi1$ > one,
[
sav_frc_wcs = force_wcs
if sub_level$ > 0, force_wcs = zero
if workofs$ <> prv_workofs$ | (force_wcs & toolchng),
[
if workofs$ < 6,
[
g_wcs = workofs$ + 54
]
else,
[
g_wcs = workofs$ + 104
]
if workofs$ >= 0 & workofs$ <= 25, *g_wcs
else,
[
if mprint(swcserror, 2) = 2, exitpost$
]
]
force_wcs = sav_frc_wcs
!workofs$
]
(ends here)
what I need to do is to make (if workofs$ < 999) for it to use always g15 + whatever # I have in Mastercam under work offset in planes tab and if it is at 0 to default to g15 h1
my other problem is how to turn off so there is no a0.(probably really simple just haven't found it yet)
then it is to change the Haas g98 to make it say line before g71 + whatever clearance i have set in mastercam then in the same drilling\tapping cycle at the end to say m53
if any1 has any ideas or can help me out please im all for it.