Howdy folks,

I'm really new to CNC machining (although being mentored by someone who isn't) so please forgive any noob errors I make.

I'm having a problem running a simple program (attached below) to make a protective base plate for my machine's bed. The machine is a newly-installed Feeler VMP-580 with FANUC Oi-MD control. It was a floor demo model and when we started working with it we noticed that the dealer had not cleared out all the programs, and perhaps param settings. BTW, this same exact program has been used by a colleague on his 580 with no problems. Here is what's happening (refer to the program below):

* Three tools (22, 23, and 4) all touched off correctly.
* Plate squared up and edge-found properly & work offset entered into G54
* The center drill (T22) cycle (G82) works properly and puts the holes in the correct X-Y position and depth
* The 1/2" drill (T23) peck cycle (G83) is beginning 1" above where it is supposed to. Basically drilling air.
* Finally, the 1/4" EM (T4) pocketing operation is starting 2" above where it is supposed to. More air.

The only thing we can think of is some kind of interaction between a control setting (parameter) and this line:

G0 G28 G91 Z0 M19

which appears only before the peck cycle and the pocket. When sending the spindle home after running this the control shows a Z relative position of -2"

Anyone have any idea what might be happening here? Any help appreciated!

.bill

%
O1
(VMP 580 PLATE 1ST OP.NCC 5/15/2013)
G0 G17 G40 G94
M6 T22
G54 G90 X-12.75 Y2.375
S1000 M3
G43 Z2.3 H22
T23 M9
G82 X-12.75 Y2.375 Z-0.1083 R0.1 F3.9 P1000
X-2.35
Y14.125
X-12.75
G80
M9
G0 G28 G91 Z0 M19
M6
G54 G90 X-12.75 Y2.375
S1500 M3
G43 Z2.3 H23
T4 M8
G83 X-12.75 Y2.375 Z-1.375 Q0.125 R0.1 F6.0
X-2.35
Y14.125
X-12.75
G80
M9
G0 G28 G91 Z0 M19
M6
G54 G90 X-2.398 Y14.125
S4000 M3
G43 Z2.3 H4
T22 M8
G0 Z0.1
G1 Z-0.1 F10.0
G3 I0.048 J0 F21.4
G1 X-2.498
G3 I0.148 J0

M30
%