What's new
What's new

Tool motion doesnt make sense per program - OSP7000

GibsonI

Aluminum
Joined
Jul 8, 2010
Location
Australia QLD
Hi Guys,

Still on the steep learning curve of CNC programming and operation but having fun (amongst the headaches).

I tested a program with machine lock on and it ran as expected.

I then test ran my next program for an almost identical part and I get a tool path that I cant explain.

It happens in the code highlighted green.

Instead of the tool moving 7mm in the -ve Z direction, it moves in the positive direction.

Can anyone explain this to me?


(On a side note, Ive started using the paint commands for animation etc and it seems that the zero points you specify for this are the z offsets set regardless of any 'in-program' VZSHZ commands. i.e. using VZSHZ before the paint command in the program does move the paint '0 point' to the new program '0' point.) (my code area in orange)


Thanks for any assistance all you experienced guys.

Iain.


(51mm tip #2)
(Material 60/40 4140 hollowbar)
(Bar 37.23mm out from jaws)
(Z0 15mm from jaw face)
(JAW PRESSURE 150)
(PROVEN AND BACKSAVED x)
G50 S2000
G90
G95
G40
M42
VZSHZ=15
DEF WORK
PS LC,[0,0],[23,60],4
PS LC,[0,0],[23,40],0
END
DRAW

NSTAR
G00 X400 Z800
T010101
(FACE)
G00 X65 Z21.2 M08
G96 G01 X35 M03 S100 F0.25
G00 X400 Z800 M09
T020202
G00 X65 Z20.73 M08
G96 G01 X35 M03 S150 F0.1
G00 Z50 M09
G00 X400 Z800
(ROUGH Internal CYC)
N0001 G00 X400 Z800
T060606
N0002 G96 M03 S100
N0003 G00 X38 Z22 M08
N0004 G85 NAT01 D3 F0.25 U0.3 W0.3
(FINISH Internal CYC)
N0101 G00 X400 Z800
T090909
N0102 G96 M03 S150
G00 X48 Z22
N0103 G87 NAT01 F0.15
(Int. CONTOUR)
NAT01 G81 G42
N0201 G01 X50.9 Z20.73
N0202 G01 X50.9 Z14.73
N0203 G01 X47.5 Z14.73
N0204 G01 X44.7 Z4.0
N0205 G01 X44.7 Z-4.0
G40
G80
G00 X35
G00 Z100
G00 X400 Z800
(EXT CYCLE 1)
G00 X400 Z800
T040404
G96 M03 S120
G00 X62 Z22 M08
G85 NAT02 D2 F0.2
M09
(EXT CONTOUR 1)
NAT02 G81 G42
N0401 X53.6 Z20.73
N0402 G01 X54.5 Z14.73
G40
G80
(EXT CYCLE 2)
N0502 G96 M03 S120
N0503 G00 X61 Z15 M08
N0504 G85 NAT03 D2 F0.2
M09
(EXT CONTOUR 2)
NAT03 G81 G42
N0601 X54.5 Z14.73
N0602 G01 X50.36 Z3
N0603 G01 X50.36 Z-4
G40
G80
(EXT FINISH 1&2)
G42
G00 X60 Z22
G00 X52
G01 X52.5 Z20.73 F0.15
G01 X53.28 Z14.85
G03 X53.26 Z14.6 I-1 K-0.07
G01 X49.16 Z3
G01 X49.16 Z-4
G00 X50 Z5
G40
(POINT CYCLE)
N0702 G96 M03 S150
N0703 G00 X50 Z5 M08
N0704 G85 NAT04 D1 F0.15
M09
(POINT CONTOUR)
NAT04 G81 G42
N0701 G01 X49.16 Z4
N0702 G01 X45.7 Z0
N0703 G01 X45.7 Z-3.5
G40
G80
G00 X60 Z14
M01 (CHECK OK FOR PARTING)

(PARTING)
G00 X400 Z800
T1212
M01 (PUT BAR IN FOR PARTS CATCHER T/S)
G00 X60 Z0 M08
G00 X50 Z0
M03 G96 S100
G01 X40 Z0 F0.1
M05
G00 X400 Z800 M09

(BAR RESET)
T101010
G00 X-10 Z20.75
M00 (PULL BAR)
G00 X400 Z8003
GOTO NSTAR
M02
%

 
G01 X49.16 Z3 are you saying the Tool arrives correctly here,
G01 X49.16 Z-4 then reverses direction here?

It should not, I suspect something is mis-interpreted.

I don't understand the question, sorry.

Why are you using the Z shift? Just touch off the Tool on the jaws and jog it back 15 mm and set zero.

Why are you using the DEF_WORK function, is this an IGF program? A lot of variables here that I'm not understanding, it seems that you're making it difficult for yourself. KISS.

See if it works without that garbage you inserted. DEF_WORK is a function of the Animations and VZSHZ is a function of work shift, so why do all that? For fun?

R
 








 
Back
Top