|
最近做四轴的零件比较多,但四轴后处理有问题,V9.1版在WIN7系统下很慢,只能用X版的,前段时间在论坛里下载的X7,四轴的也是不能用,出问题找不出原因,始终过切,换的X6四轴也是有问题,没办法,来论坛求救,往高手指点一二啊下面做了个验证四轴定轴加工程序,结果就出现G54、G55、G56、G57四个坐标系来,而且角度也不对# p& ]) p1 [. Q7 n/ B. [/ A
. j9 B8 ^, w1 \/ N
4 i( J! b% }0 Y2 i# u" K- X8 V P
%
9 q! K; @& Y; B" lO0000(T87)
. `( I6 ^- k! B) f(DATE=DD-MM-YY - 13-12-15 TIME=HH:MM - 13:49); `$ f( H& k- l2 x; q6 z
(MCX FILE - G:\G Z W J\ZA XIANG\验证.MCX-6)
! }8 e, I+ @$ J2 i; n( b" A+ p(NC FILE - C:\USERS\ADMINISTRATOR\DOCUMENTS\MY MCAMX6\MILL\NC\T87.NC)9 f. P- U, M) G- y% I n
(MATERIAL - ALUMINUM MM - 2024)
% o2 f( e( p4 @; f; S/ Q0 n( T1 | D10R0 | H1 ) l/ V$ A, Q8 F, j
G21
+ u5 I! i# z7 |7 X& JG0 G17 G40 G49 G80 G90+ R4 C% d# a f1 E6 \
T1 M6
( }7 [; s4 F/ I0 G5 FG0 G90 G54 X-68.44 Y-22.176 A0. S30000 M3
; o: S. V( Q& ^G43 H1 Z150.. O- j- U. z5 ~. o- O
Z53.
. c- N5 S# i) ^3 ]: @1 w& ^% ^G1 Z30. F300.
/ l3 O8 a0 k. N3 ]0 Z2 U9 F...............省略8 J' y' u( ?( `4 A& t7 p! \3 B
G0 Z150.
- U2 h9 b1 Z0 ^" nG55 X-33.988 Y-19.172 Z150. A-90.. h: {5 x- X! r) J. ?3 [
Z53.
G3 W- W9 b( ]# Q, `, HG1 Z30. F300.( u$ E8 B) N' N
...............省略+ s0 q: F6 H$ K: a$ K
G0 Z150.
1 B, l' g4 W1 z4 `G56 X32.49 Y-25.106 Z150. A-90. D' Z2 W" ?, y7 e; e- z- x( Z
Z53.+ [8 P; ^; @5 P8 o& b
G1 Z30. F300.2 a5 G6 E: _: {4 E, O& n
...............省略
$ B; }, b7 i6 P( m eG0 Z150.6 n6 U' g! }' o3 `& D
G57 X34.267 Y-29.965 Z150. A-180.
* X6 k' D9 i+ f: ?( z0 wZ53.
* ~8 e0 C' f- U1 W) Y' v$ @4 Q. ~. OG1 Z30.106 F300.) N6 E: t6 l) Y; ?, u
...............省略
) P L, N; M$ W( w& r2 H3 r9 WG0 Z150.
6 a3 N9 @' ~/ y- ]- n8 a+ K1 G8 p+ ]% ?M5- K. b$ u- A8 R7 t6 \; K4 I
G91 G28 Z0., {4 G& W; a% x: o; u+ t
G28 X0. Y0. A0.# o8 K' E1 Z7 B$ q" R4 A2 f
M30
4 |) g, w; ]% B- V%( c4 @, j: Z1 V3 h& s. P) U
8 Q# l5 e! I$ d: n- f6 b. v
这是前几天做的零件,分流器,做了7种,都类似差不多的,出乎意料,程序竟然没有问题,也没有撞机盒过切,
3 l3 b. a" G. \& r1 y
; Q1 A U( G( J: b8 n
2 ] L W$ f: g* W L
现在就要做个比较复杂的零件,零件也比较大,不允许出问题,必须使用四轴,但后处理没有搞好,完全不敢做啊,求高人指点。我这个后处理哪里有问题
9 ]- H; J: \3 A( Q- S# The following three initializations are used for full arc and helix arc output when the CD
0 N. _5 e% ^2 R. k4 B# is set to output R or signed R for arcs' F' r! I: ~, P1 B! a4 t, w0 t% U
arctype$ : 2 #Arc center type XY plane 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
* V0 u5 I: x( |$ O) P( Darctypexz$ : 2 #Arc center type XZ plane 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
5 a3 C( g2 u- a/ |0 ~( C% garctypeyz$ : 2 #Arc center type YZ plane 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
f, A% H9 \5 u4 J
1 H) O! C5 o1 Z* P3 J# \# --------------------------------------------------------------------------
# y) V J# h& Y. H: v# Rotary Axis Settings5 h5 |, {' ~" F0 j6 t7 C5 {
# --------------------------------------------------------------------------
4 G. ~, A$ {# a% w' O% h0 \read_md : no$ #Set rotary axis switches by reading Machine Definition?
; v0 E/ B5 y' y; {vmc : 1 #SET_BY_MD 0 = Horizontal Machine, 1 = Vertical Mill 4 T: H5 z! q* ^6 K
rot_on_x : 1 #SET_BY_MD Default Rotary Axis Orientation9 ]6 M; m6 F% h0 W
#0 = Off, 1 = About X, 2 = About Y, 3 = About Z ! t0 D) b. @. m
rot_ccw_pos : 0 #SET_BY_MD Axis signed dir, 0 = CW positive, 1 = CCW positive
2 W# a7 g' k% j2 z* Findex : 0 #SET_BY_MD Use index positioning, 0 = Full Rotary, 1 = Index only" M! W" N% _( }0 P' W6 @7 \) F: M( ^
ctable : 5 #SET_BY_MD Degrees for each index step with indexing spindle
( I4 g8 }+ G* O$ @use_frinv : no$ #SET_BY_CD Use Inverse Time Feedrates in 4 Axis, (0 = no, 1 = yes)7 D: l4 M u' f8 H' M6 ]3 n
maxfrdeg : 2000 #SET_BY_MD Limit for feed in deg/min; l( s5 \/ V- u; p" q. B
maxfrinv : 999.99#SET_BY_MD Limit for feed inverse time5 D' f6 `1 w8 w8 g
maxfrinv_m : 99.99 #SET_BY_MD Maximum feedrate - inverse time2 B! U: P6 X4 Z" _- _! F' i
frc_cinit : yes$ #Force C axis reset at toolchange
2 ~. u) U: t" A9 @5 h- Cctol : 225 #Tolerance in deg. before rev flag changes
0 R6 _$ Q" A; u( e% ?ixtol : 0.01 #Tolerance in deg. for index error
. G& k2 i% ]# k2 {" }frdegstp : 10 #Step limit for rotary feed in deg/min
, `8 p& L, W/ N6 `! l$ ]# Vrot_type : 1 #SET_BY_MD Rotary type - 0=signed continuous, 1=signed absolute, 2=shortest direction$ Z: @4 w7 O2 I& Q1 j% \; M+ ~. y
force_index : no$ #Force rotary output to index mode when tool plane positioning with a full rotary
: v6 B8 \. p' T! u+ y) t/ Zuse_rotmcode : 0 #Output M-Code for Axis direction (sindx_mc)
7 ]- L. J5 L" X0 f8 \4 | #0 = Signed direction (only valid when rot_type = 1)
( W; N- l4 d% y [4 U. l #1 = M-Code for direction
, [# C# O0 m: l% f+ c$ Q" K% E" \3 \#Rotary Axis Label options
. Z6 g2 F0 v& o* _use_md_rot_label : no$ #Use rotary axis label from machine def? - Leave set to 'no' until available! ^. b0 E1 p9 p% ]1 i
srot_x : "A" #Label applied to rotary axis movement - rotating about X axis - used when use_md_rot_label = no6 S2 S* {, b$ M
srot_y : "B" #Label applied to rotary axis movement - rotating about Y axis - used when use_md_rot_label = no
7 g0 |5 B3 }+ k% [* ?9 Jsrot_z : "C" #Label applied to rotary axis movement - rotating about Z axis - used when use_md_rot_label = no
0 D4 W8 G+ U3 W8 [sminus : "-" #Address for the rotary axis (signed motion); g7 r% n7 v* i
]' B8 Z, \) _+ l. d) V
#Axis locking* q3 l# ^7 B- ~+ O, u$ o2 |% s
rot_lock : 0 #Use rotary axis lock/unlock codes (0 = no, 1 = yes)
( z! x: p- O/ Q7 E9 X* aslock : "M10" #Axis lock
5 q6 O, R/ m" {3 J8 V! Isunlock : "M11" #Axis unlock
* W7 M: d. t& O f* ~) g* f
+ P) T$ f8 d( j& O$ p
2 j1 z. i2 p! C
, g' V! a1 z0 A4 O" v3 U |
|