What's new
What's new

Newbie Work Offset Problem

Max Weber

Aluminum
Joined
Jun 15, 2017
Machine: 2008 Sharp SV-2412
Control: Fanuc Oi Mate-MC

I'm trying to post this program and I can't tell if its something in my code or something set incorrectly on the machine. My design/program is metric and the machine should be metric, but I purchased this machine second hand with little information, so for all I know there could be a parameter wrong somewhere.

Machine position is X -377mm when I set G54 work offset X -377mm

I load the program, press cycle start and the table rapids negative in X until I get overtravel alarm.

If I set the G54 X-100mm the program runs roughly over the center of the table.

Additionally, the Z offset is set to zero, but it's closer to the tool change height (the tool offsets are only like 17mm for example), not the machine zero. When I'm at zero return home position, my absolute position is something like -700mm (The table is 700mm wide)

From what I understand, this machine will display a metric position in the position screen even if the parameters were changed to inch.

I think there could also be a problem with the code:
%
O1001 (FIRST TEST)
(T1 D=12.7 CR=0. - ZMIN=-26.6 - FLAT END MILL)
(T2 D=3.175 CR=0. - ZMIN=-26.6 - FLAT END MILL)
(T3 D=1.587 CR=0. - ZMIN=-18.4 - FLAT END MILL)
(T4 D=4.039 CR=0. TAPER=118DEG - ZMIN=-27.813 - DRILL)
G90 G94 G17 G49 G40 G80
G21
G28 G91 Z0.
G90

(ROUGH 12 END MILL)
T1 M06
T2
S6112 M03
G54
M08
G00 X-1.246 Y-78.023
G43 Z15. H01
G00 Z5.
Z-6.56
G01 Z-7.83 F1524.
X-1.244 Y-78.015 Z-7.972
X-1.238 Y-77.992 Z-8.113
X-1.228 Y-77.954 Z-8.249
X-1.215 Y-77.901 Z-8.381
X-1.198 Y-77.834 Z-8.506
X-1.177 Y-77.754 Z-8.622
X-1.154 Y-77.662 Z-8.728
X-1.127 Y-77.56 Z-8.823
X-1.098 Y-77.447 Z-8.905
X-1.068 Y-77.326 Z-8.974
X-1.035 Y-77.199 Z-9.029
X-1.001 Y-77.066 Z-9.068
X-0.966 Y-76.93 Z-9.092
X-0.931 Y-76.792 Z-9.1
....
....
....
...
..
.

Hoping this is something no-brainer I'm missing.

Thanks
-Max
 
To switch between inch and metric displays/values on the control, simply home the machine axes, and then go to MDI and input a "G20" for inch, and "G21" for metric. All position displays will change as well.

Your program contains a G21, so the machine is receiving the code as metric. If I remember correctly, if the machine is in a G20/inch modal state, and you try to execute a program containing G21, then it should generate some kind of "illegal inch/metric switching" alarm or something...


I'd be lunch at the local diner that you have some values in the "shift" set of work offsets. Go to the work offsets, and see if you have any values in the "work offset 00" fields. They should all be "zero."

I helped a customer diagnose this issue a couple months ago. Easy mistake to make, but simple to fix.


Let us know what you find.
 
That's totally what it was! I was wondering what that G54 NO. 00 (EXT) meant! There was values in there from the previous owner and when I zeroed them out, it works fine now. Thanks!
 








 
Back
Top