PDA

View Full Version : Comment on fadal post



bala955
12-26-2008, 09:11 PM
comment appears as follow
O1000
(1/2"ENDMILL )
T1 M6
G0 G90 X-2.0684 Y-0.1665 S4500 M3 E1
Z0.1 H1
M8
G1 Z-0.52 F75.

how can i get it to appear as follow
T1 M6 (1/2"ENDMILL )
G0 G90 X-2.0684 Y-0.1665 S4500 M3 E1
Z0.1 H1
M8
G1 Z-0.52 F75.

Jason S
12-29-2008, 11:18 AM
The easiest fix is to move "Comments" after your tool change line in your post, then when you post it, go to the end of your tool change line and hit delete and it will move your comment line up.

bala955
12-30-2008, 11:47 PM
how do you do that in post. i was unable to figure that out. please elaborate
thanks

Jason S
12-31-2008, 07:22 AM
Really simple:

Go to your Surfcam postlib folder and open the postform.m file. Go to your first tool change code, and after your tool change -T<Tool> M<6>- line type in "Comments". Do this on your second tool change also. This is way I have mine setup for the 4020, the comment is before the tool change.

# First tool change code:

1stToolChange
G<90> G<80> G<70> G<40> G<17> G<0>
Comments
T<Tool> M<6>
S<Speed> M<Direct>
G<0> G<90> X<H> Y<V> E[WORK]
H<Lcomp> Z<D> M<Cool>
End

# Secondary tool change code:

ToolChange
M<09> M<05>
G<0> z<00>
M<01>
Comments
T<Tool> M<6>
S<Speed> M<Direct>
G<0> G<90> X<H> Y<V> E[WORK]
H<Lcomp> Z<D> M<Cool>
End

bala955
12-31-2008, 08:30 AM
Hi i keep getting errors on comments line. would you be able to post your complete post on line . i could try that

Thanks

Jason S
12-31-2008, 08:43 AM
Enjoy. I also PM'd my e-mail to you.

name FADAL 4020

% 00
! 00
/ 00
O >4
N >4
G >2
X ->3.>4
x 00
Y ->3.>4
y 00
H >2
D >2
Z ->3.>4
z 00
A ->3.>4
I ->3.>4
J ->3.>4
K ->3.>4
R ->3.>4
Q ->3.>4
P >40
F ->3.>3
S >3
M >2
T >2
a 00
b 00
c 00
d 00
E >2
f 00
g 00


ModalLetters X Y Z F R
SBackDoor Supressheader
ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85

Sequence#s N 0 2 2
First#? N # Write a sequence # on the 1st line?
Last#? N # Write a sequence # on the last line?
HCode X
VCode Y
Dcode Z
FeedCode F

Comment ( )

Spindle 3 4 5 # Spindle on Cw, on Ccw, Off
Coolant 8 9 7 # Coolant On, Off, Mist
DComp 41 42 40 # Cutter diameter compensation Left, Right, Off
LComp 43 49 # Cutter length compensation On, Off

Feed G<1> # Feed mode 'G' code
Rapid G<0> # Rapid mode 'G' code
Cw G<2> # Circular mode clockwise 'G' code
Ccw G<3> # Circular mode counter-clockwise 'G' code
Inc/Abs G 91 90 # Mode values for incremental and absolute
CtrCode I J # Circular arc-center word addresses
# typically I J or R
Spaces? Y # Write spaces between words in blocks?
Incremental? N # Output is incremental?
CtrIncremental? Y # Arc center output as incremental from start?
ByQuadrants? N # Break arc output into quadrants?
Helical? N


#Each $<0> # Specifies that each line of code will have
the character (here the '$') output at the
end of the line. Note: the EOB is also output
after this character. The character must be
formatted in Section 1. To utilize this
function, simply delete the ' #' before
'Each'.

Drill
IF <Dwell> = 0
G<98> G<81> X<H> Y<V> Z<D> R<Vclear> F<FRate>
Else
G<98> G<82> X<H> Y<V> Z<D> R<Vclear> P<Dwell> F<FRate>
Endif
end cancel

CSink
G<98> G<82> X<H> Y<V> Z<D> R<Vclear> P<Dwell> F<FRate>
end cancel

Peck
IF <Dwell> = 0
G<98> G<83> X<H> Y<V> Z<D> Q<VBite> R<Vclear> F<FRate>
Else
G<98> G<73> X<H> Y<V> Z<D> Q<VBite> R<Vclear> F<FRate>
Endif
end cancel

LTap
G<98> G<74> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel

Tap
G<98> G<84> X<H> Y<V> Z<D> R<Vclear> S<Speed> F<FRate>
end cancel

Ream
G<98> G<86> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel

Bore
G<98> G<76> X<H> Y<V> Z<D> R<Vclear> I<Vclear> J<Vclear> F<FRate>
end cancel

Back
G<98> G<87> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel

Cancel
G<80>
end

# Tape start code:
StartCode
%<0> # Output '%' .
!0 O<Program#> '(P/N OP)'
End


# Description of exact stop code:
ExactStop
G<4>
end

# First tool change code:

1stToolChange
G<90> G<80> G<70> G<40> G<17> G<0>
Comments
T<Tool> M<6>
S<Speed> M<Direct>
G<0> G<90> X<H> Y<V> E[WORK]
H<Lcomp> Z<D> M<Cool>
End

# Output a safe startup of CDC :
Infeed
G<Side> D<DComp> X<H> Y<V> F<FRate>
end


Outfeed
G<1> G<40> X<H> Y<V>
end

# Secondary tool change code:

ToolChange
M<09> M<05>
G<0> z<00>
M<01>
Comments
T<Tool> M<6>
S<Speed> M<Direct>
G<0> G<90> X<H> Y<V> E[WORK]
H<Lcomp> Z<D> M<Cool>
End

EndCode
M<09> M<05>
G<0> z<00>
G<0> x<00> Y<8.> f<00>
M<30>
%<0>
End

Replace "x" with "X0."
Replace "y" with "Y8.E0"
Replace "z" with "Z0.H0."
Replace "f" with "E0"
Replace "G84" with "G84.1"

bala955
12-31-2008, 09:04 AM
Sorry that did not work for me. my post looks like this

name FADAL Format 1

% 00
/ 00
O >4
L >4
N >4
G >2
D >2
T >2
R ->3.>4
z ->3.>4 Z
X ->3.>4
Y ->3.>4
Z ->3.>4
S >4
H >2
M >2
E >2
I ->3.>4
J ->3.>4
K ->3.>4
F >3.>3
Q ->3.>4
P ->3.>4
d >3.>4
e >3.>4
f >3.>4

SbackDoor SupressHeader

ModalLetters X Y Z F # List of letters that are modal

ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85 # List of g codes that are modal

Sequence#s N 0 1 1 # Char, freq, incr & start
First#? N # Y or N 'Output 1st sequence no.
Last#? N # Y or N 'Output last sequence no.

HCode X # X or X U 'Horizontal char.
VCode Y # Y or Y V 'Vertical char.
Dcode Z # Depth char.
FeedCode F # Feed rate char.

Comment ( ) # Begin End comment char.

Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 61 62 63 64 # Flood, Off, Mist and Thru Spindle M codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes

Feed G1 # Linear move
Rapid G0 # Rapid positioning word
ArcPlane G 17 18 19 # G17, G18, G17 Arc Plane selection
ReturnPlane 98 99 # G98 G99 Return Plane selection

Cw G2 # Circular move clockwise
Ccw G3 # Circular move counter clockwise
Inc/Abs G 91 90 # Inc & Abs char. & values
CtrCode I J K # I J or R or I J K L
Helical? Y

Spaces? Y # Y or N 'Spaces between words

Incremental? N # Y or N 'Inc or abs output
CtrIncremental? Y # Y or N 'Inc or abs I & J
ByQuadrants? N # Y or N 'Break arcs at quadrants

UppercaseComments? Y # Y or N 'Require uppercase comments

Drill # Drilling canned/manual cycle
G81 G[RetPlane] R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

CSink
G82 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate] P[Dwell]
end cancel

Peck # Pecking canned/manual cycle
G83 G[RetPlane] R[Vclear] z[D] F[FRate] Q[VBite] X[H] Y[V]
end cancel

LTap # Left handed tapping cycle
G74 G[RetPlane] R[Vclear] z[D] F[Frate] Q[VBite] X[H] Y[V]
end cancel

Tap # Tapping canned/manual cycle
G84 G99 R[Vclear] z[D] F[Frate] Q[VBite] X[H] Y[V]
end cancel

Ream # Reaming canned/manual cycle
G85 G99 R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

Bore # Boring canned/manual cycle
G86 G99 R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

Back # Back boring canned/manual cycle
G76 G99 R[Vclear] z[D] F[FRate] Q[Sclear] X[H] Y[V]
end cancel

Cancel # Cancel a canned/manual cycle
G80
end

StartCode # Start of the program
%0
O[0]
End

1stToolChange # First tool change
M6 T[Tool]
G0 G90 S[Speed] M[Direct] E[1] X[H] Y[V]
Z[D] H[Lcomp] M[Cool]
End

Infeed # Enable cutter comp
G1 G[Side] X[H] Y[V] F[FRate]
end

Outfeed # Disable cutter comp
G40 X[H] Y[V]
Z[D]
end

ToolChange # Secondary tool changes
M5 M9
G0 G49 G90 Z0
M1
M6 T[Tool]
G0 G90 S[Speed] M[Direct] E[1] X[H] Y[V]
Z[D] H[Lcomp] M[Cool]
End

Upon [Speed] # Output spindle speed change
M[Direct] S[Speed]
End

EndCode # End of the program
M5 M9
G0 G49 G90 Z0
M1
E0 X0 Y0
M2
%0
End

replace "d" with "Tool Radius: "
replace "e" with "Diam: "
replace "f" with "Corner Rad.: "

Jason S
12-31-2008, 10:32 AM
I just loaded your post into my file and added the Comment after the tool changes and it worked.

This what it should look like:

name FADAL Format 1

% 00
/ 00
O >4
L >4
N >4
G >2
D >2
T >2
R ->3.>4
z ->3.>4 Z
X ->3.>4
Y ->3.>4
Z ->3.>4
S >4
H >2
M >2
E >2
I ->3.>4
J ->3.>4
K ->3.>4
F >3.>3
Q ->3.>4
P ->3.>4
d >3.>4
e >3.>4
f >3.>4

SbackDoor SupressHeader

ModalLetters X Y Z F # List of letters that are modal

ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85 # List of g codes that are modal

Sequence#s N 0 1 1 # Char, freq, incr & start
First#? N # Y or N 'Output 1st sequence no.
Last#? N # Y or N 'Output last sequence no.

HCode X # X or X U 'Horizontal char.
VCode Y # Y or Y V 'Vertical char.
Dcode Z # Depth char.
FeedCode F # Feed rate char.

Comment ( ) # Begin End comment char.

Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 61 62 63 64 # Flood, Off, Mist and Thru Spindle M codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes

Feed G1 # Linear move
Rapid G0 # Rapid positioning word
ArcPlane G 17 18 19 # G17, G18, G17 Arc Plane selection
ReturnPlane 98 99 # G98 G99 Return Plane selection

Cw G2 # Circular move clockwise
Ccw G3 # Circular move counter clockwise
Inc/Abs G 91 90 # Inc & Abs char. & values
CtrCode I J K # I J or R or I J K L
Helical? Y

Spaces? Y # Y or N 'Spaces between words

Incremental? N # Y or N 'Inc or abs output
CtrIncremental? Y # Y or N 'Inc or abs I & J
ByQuadrants? N # Y or N 'Break arcs at quadrants

UppercaseComments? Y # Y or N 'Require uppercase comments

Drill # Drilling canned/manual cycle
G81 G[RetPlane] R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

CSink
G82 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate] P[Dwell]
end cancel

Peck # Pecking canned/manual cycle
G83 G[RetPlane] R[Vclear] z[D] F[FRate] Q[VBite] X[H] Y[V]
end cancel

LTap # Left handed tapping cycle
G74 G[RetPlane] R[Vclear] z[D] F[Frate] Q[VBite] X[H] Y[V]
end cancel

Tap # Tapping canned/manual cycle
G84 G99 R[Vclear] z[D] F[Frate] Q[VBite] X[H] Y[V]
end cancel

Ream # Reaming canned/manual cycle
G85 G99 R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

Bore # Boring canned/manual cycle
G86 G99 R[Vclear] z[D] F[FRate] X[H] Y[V]
end cancel

Back # Back boring canned/manual cycle
G76 G99 R[Vclear] z[D] F[FRate] Q[Sclear] X[H] Y[V]
end cancel

Cancel # Cancel a canned/manual cycle
G80
end

StartCode # Start of the program
%0
O[0]
End

1stToolChange # First tool change
M6 T[Tool]
Comments
G0 G90 S[Speed] M[Direct] E[1] X[H] Y[V]
Z[D] H[Lcomp] M[Cool]
End

Infeed # Enable cutter comp
G1 G[Side] X[H] Y[V] F[FRate]
end

Outfeed # Disable cutter comp
G40 X[H] Y[V]
Z[D]
end

ToolChange # Secondary tool changes
M5 M9
G0 G49 G90 Z0
M1
M6 T[Tool]
Comments
G0 G90 S[Speed] M[Direct] E[1] X[H] Y[V]
Z[D] H[Lcomp] M[Cool]
End

Upon [Speed] # Output spindle speed change
M[Direct] S[Speed]
End

EndCode # End of the program
M5 M9
G0 G49 G90 Z0
M1
E0 X0 Y0
M2
%0
End

replace "d" with "Tool Radius: "
replace "e" with "Diam: "
replace "f" with "Corner Rad.: "

bala955
12-31-2008, 11:46 AM
Thanks a lot it worked . i must be doing something wrong