Hello everyone!
Long time lurker first time poster. I have been using Surfcam for about 6 years now. The posts my company used were never truly correct and they always hand edited them. I've taken it on my self to fix this once and for all. I've managed to edit several posts successfully but one is still throwing me for a loop. What i'm looking for is the structure format Mpost uses. I now all the command, sequences and variables. I just dont understand the structure it decides to output code.
For example:
here is my Mori post form:
name MORI LATHE
% 00
O 4
N >3
G >2
X ->3.>4
Z ->3.>4
D >2
I ->3.>4
K ->3.>4
p >4 P
q >4 Q
d ->3.>4
U ->3.>4
W ->3.>4
P ->3.>4
Q ->3.>4
R ->3.>4
F >3.>3
A 2
T >2
S >4
M >2
u 2
ModalLetters X Z I K F S M
ModalGs 0 1 2 3 80 81 82 83 84 85
Sequence#s N 0 1 10 10 100
First#? N
Last#? N
HCode Z
VCode X
FeedCode F
Comment ( )
Spindle 3 4 5
Coolant 8 9 7
SpeedType G 97 96
Dcomp 41 42 40
Feed G1
Rapid G0
Cw G2
Ccw G3
Sbackdoor Supressheader
Inc/Abs G 91 90
Inch/MM 20 21
CtrCode R
Leading0s? N
ByDiameter? Y
RevSigns
Spaces? Y
Incremental? N
CtrIncremental? Y
ByQuadrants? Y
ReturnPlane 98 99
UppercaseComments? Y
Tap
G77 Z[H] K[Vclear] F[FRate]
End
Ream
G74 Z[H] K[Vclear] F[FRate]
End
Bore
G74 Z[H] K[Vclear] F[FRate]
End
AutoThread
G33 X[V] Z[H] F[Frate]
End
Rough
if [TipAng] = -90
G72 p[StartN] q[EndN] d[Step] U[VLeave] W[SLeave] F[plunge]
else
G71 p[StartN] q[EndN] d[Step] U[VLeave] W[SLeave] F[Plunge]
endif
End
Finish
G70 p[StartN] q[EndN]
End
Cancel
G80
End
Upon [Speed]
M[Direct] S[Speed]
End
StartCode
%0
O0
End
1stToolChange
G18
"G0 G28 V0."
"G0 G53 X0. Z-15."
G50 G99 S[MaxRpm]
G[Work]
G0 T[Tool]
G[Work] G99 G18
M69
M46
G[SpeedType] S[Speed] M[Direct]
G0 X[V] Z.1 M[COOL]
Z[H]
End
Infeed
G0 X[V]
G1 G[Side] Z[H] F[FRate]
End
Outfeed
G1 X[V]
G1 G40 Z[H] F[FRate]
End
ToolChange
G0 Z.3 M[coolantoff]
"G28 V0."
"G53 X0. Z-15."
M5
M01
G0 T[tool]
G[Work] G99 G18
M69
M46
G[SpeedType] S[Speed] M[Direct]
G0 X[V] Z.1 M[COOL]
End
EndCode
G0 Z.3 M[coolantoff]
"G28 V0."
"G53 X0. Z-15."
M5
M30
%0
End
Replace "C0" with "C0."
Replace "T1" with "T0101"
Replace "T2" with "T202"
Replace "T3" with "T303"
Replace "T4" with "T404"
Replace "T5" with "T505"
Replace "T6" with "T606"
Replace "T7" with "T707"
Replace "T8" with "T808"
Replace "T9" with "T909"
Replace "T10" with "T1010"
To me it looks like my postform is correct but the output is still not correct.
Below is a very basic turning canned cycle operation:
%
O0000
G18
G0 G28 V0.
G0 G53 X0. Z-15.
G50 G99 S3000
G54
G0 T01010
G54 G99 G18
M69
M46
G96 S600 M3
G0 X1.2532 Z.1 M8
Z.0131
G0 X1.0674 (what controls this line)
G71 P100 Q110 D.1 U.01 W.003 F.012
N100 G0 X0
G1 G42 Z0 F.006
G1 X.35
G3 X.45 Z-.05 R.05
G1 Z-.2451
G2 X.55 Z-.2951 R.05
G1 X.6826
G3 X.7826 Z-.3451 R.05
G1 Z-.4886
G2 X.8826 Z-.5386 R.05
G1 X.9
G3 X1. Z-.5886 R.05
G1 Z-1.
X1.25
N110
G0 X1.0674
Z.0131 (where does this come from)
G70 P100 (missing the Q110)
G1 X1.25
G40 Z-.9984 F.006 (This looks like my Outfeed sequence, but why is it way down here?
G0 Z.3 M9
G28 V0.
G53 X0. Z-15.
M5
M30
%
I can't figure out where the phantom lines of code are coming from and how to change it. I'm hoping someone here can help me.
Thanks
-Nick