有些控制器與機器的搭配, NC程序裡的 圓弧差補數值很小的時候, 數控系統會跑錯 方向, (360-正確的弧度數), 而造成過切! 其實是數控系統的公差設置問題, 但如果弧小於控制系統的圓弧差補誤差(數控系統也沒法調整了!), 我們必須將小於控制系統誤差的圓弧差補 強迫 輸出為 直線差補來取代.
在Surfcam的Post改機器配置文件, 例如: 銑床/ 加工中心
xxxx.m3 ----- 你用的那個機器配置文件
name M320 W/R G01 (Metric)
% 00
/ 00
O >4
N >4
g >2 G
G >2
X ->4.>3
Y ->4.>3
Z ->4.>3
A ->4.>3
I ->4.>3
J ->4.>3
K ->4.>3
Q ->4.>3
R ->4.>3
P >40
F >3.1
H >2
D >2
T >2
M >2
S >4
ModalLetters X Y F R # 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 ( )
Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 # On, Off & Mist m codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes
Feed G<1> # Linear move
Rapid G<0> # Rapid positioning word
Cw G<2> # Circular move clockwise
Ccw G<3> # Circular move counter clockwise
Inc/Abs G 91 90 # Inc & Abs char. & values
CtrCode R # I J or R or I J K L
MinRad .02 #這裡加這行, 代表小於0.02的弧, 強迫輸出為G01
Spaces? N # 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
StartCode # Start of the program
%<0>
O<rogram#>
G<17> G<40> G<49> G<80>
g<91> G<28> Z<0>
End
1stToolChange # First tool change
G<90> G<0> G<Work> X<0> Y<0>
G<0> X<H> Y<V>
M<Direct> S<Speed>
G<43> Z<D> H<Lcomp>
M<Cool>
End
Infeed # Enable cutter comp
G<Side> X<H> Y<V> D<DComp> F<FRate>
end
Outfeed # Disable cutter comp
G<1> G<40> X<H> Y<V>
end
ToolChange
M<9>
g<91> G<28> Z<0> # Secondary tool changes
N<Block> T<Tool>
M<Direct> S<Speed>
G<90> G<WORK> G<0> X<H> Y<V>
G<43> Z<D> H<Lcomp>
M<Cool>
End
EndCode # End of the program
M<5> M<9>
g<91> G<28> Z<0>
M<30>
%<0>
End
Drill # Drilling canned/manual cycle
G<81> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel
Peck # Pecking canned/manual cycle
G<83> X<H> Y<V> Z<D> Q<VBite> R<Vclear> F<FRate>
end cancel
Tap # Tapping canned/manual cycle
G<84> X<H> Y<V> Z<D> R<Vclear> F<Frate> Q<VBite>
end cancel
LTap # Left handed tapping cycle
G<74> X<H> Y<V> Z<D> R<Vclear> F<Frate> Q<VBite>
end cancel
Ream # Reaming canned/manual cycle
G<85> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel
Bore # Boring canned/manual cycle
G<86> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel
Back # Back boring canned/manual cycle
G<87> X<H> Y<V> Z<D> R<Vclear> F<FRate>
end cancel
Cancel # Cancel a canned/manual cycle
G<80>
end |