Need help with some post modifications please.

Need help with some post modifications please.

CGPM
Collaborator Collaborator
429 Views
0 Replies
Message 1 of 1

Need help with some post modifications please.

CGPM
Collaborator
Collaborator

I am trying to add a 4th axis to my post and am running into some problems, plus I would like to do some cleaning up.  I have been studying up on Java Script and how to modify posts but am at a point that some help would really save a lot of time.  I would like to learn this because I am real picky about my code so I am asking for help here before going the "official" route.  If there is a post that does what I am looking for then please let me know what it is so I can compare and modify mine accordingly.  Thanks in advance for any help.

 

My main issues are:

1) The fixture offset after the tool change only shows up after the first tool.  After that it is in the line calling up the offsets and spindle.  This is a problem since the A axis moves are before the fixture offset is called in the subsequent tool changes.

2) When the A axis is moved in the middle of a program it sends the Z axis home cancelling both height and fixture offsets. After A axis rotation then the offsets are called again and the spindle speed and M3 are called.  I would at least like to remove the spindle speed and M3 codes if I can't avoid having to call the fixture and height offsets.

 

G0 G17 G40 G49 G52 G80 G90 M11
G0 G49 G52 Z0.
(FACE1)
T1 M6 (2.5" FACE MILL)
T2
G57 J2    I would like this not to be here if I can have the A axis move in the G43 line.
M11
G0 A0.    I would like the A move to be in the G43 line.
M10    Move to after the G43 line, but before any cutting.
M9
G0 G43 X4.625 Y0. Z.25 H1 G57 S5000 M3  The fixture offset here does not support more than the first 6 offsets, no J offsets.
G18 G3 X4.375 Z0. I-.25 F65.
G1 X3.
X0.
G3 X-.25 Z.25 K.25
G17
G0 G49 G52 Z0.    I would like Z to move up 4 inches without cancelling height and fixture offsets.
(FACE1 2)
M11
G0 A270.
M10
M9    I would like to not have this as it is not needed.
G0 G43 X4.625 Y.75 Z1. H1 G57 S5000 M3    Remove crossed out code if offsets are not cancelled before A axis move.
G18 G3 X4.375 Z.75 I-.25 F65.
G1 X3.
X0.
G3 X-.25 Z1. K.25
G17
M5
M9
G0 G49 G52 Z0.
(2D POCKET1)
T2 M6 (.25 MILL)
T3
M11
G0 A0.    I would like the A move to be in the G43 line.
M10    Move to after the G43 line, but befor any cutting.
M8
G0 G43 X1.5272 Y.0513 Z.1 H2 G57 S15002 M3
G1 Z.0394 F30.
Z-.2
G3 X1.4522 I-.0375
X1.7647 I.1563
I-.275
X1.7397 Y.0763 I-.025
G0 Z.1
(2D CONTOUR1)
M8    It would be nice if this were not here, redundant.
G0 X1.7363 Y.0171
G1 Z.1 F30.

G0 Z.1
(2D POCKET2)
M8    It would be nice if this were not here, redundant.
G0 X.562 Y-.2231
G1 Z.1 F30.

G0 Z.1
M5
M9
G0 G49 G52 Z0.
(DRILL1)
T3 M6 (.203 DRILL)
T4
M11    Since there is no A axis move it would be nice if
A0.    these 3 lines were not here, redundant.
M10
M8
G0 G43 X2.4351 Y-.4274 Z.1 H3 G57 S15000 M3
G81 G98 Z-.6 R.1 F30.
G80
G0 X2.4351 Y-.4274 Z.1
M5
M9
G0 G49 G52 Z0.
(DRILL2)
T4 M6(1/4-20 TAP)
T1
M11
A0.
M10
M8
G0 G43 X2.4351 Y-.4274 Z.1 H4 G57
G93
G84 Z-.6 R.1 F0.05 S2500
G80
G94
G0 X2.4351 Y-.4274 Z.1
M5
M9
M11
G0 G49 G52 X-10. Y0 Z0 A0
M30

0 Likes
430 Views
0 Replies
Replies (0)