找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 400|回复: 2

请教一个mpmaster后处理问题

[复制链接]

3

主题

168

回帖

218

积分

中级会员

积分
218
QQ
发表于 2022-9-7 07:17:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区

您需要 登录 才可以下载或查看,没有账号?立即注册

×
ihs的mpmaster我不想要后处理读机床控制定义,后处理在哪里关掉他呀,感谢师傅们。
' F0 E  Q" J6 R/ s& M

438

主题

5759

回帖

901万

积分

管理员

积分
9014290
发表于 2022-9-10 08:06:24 | 显示全部楼层
如下基础红色标记处。2 n; s  U2 Q' K' V8 g

# e% N4 B4 }' z7 ~# --------------------------------------------------------------------------- {  W& }; Q! v
# Parameter read postblocks:- S; s3 a; C* |  Z  W
# --------------------------------------------------------------------------
! p8 H. G7 `$ F9 W. zpprep$          #Pre-process postblock - Allows post instructions after the post is parsed but before the NC and NCI file are opened.
5 ^8 A- R# U6 {      param_read$ = 1 ----------------------------> here
% Z$ ?. Z: S0 i( {" o" h# S      #DO NOT ATTEMPT TO OUTPUT TO THE NC FILE IN THIS POSTBLOCK (OR ANY POSTBLOCKS YOU MAY CALL FROM HERE) BECAUSE THE NC OUTPUT FILE IS NOT YET OPENED!
* R! s, k% H% E$ _      rd_mch_ent_no$ = 0  #Read only the machine base parameters (use to collect common parameters from CNC_MACHINE_TYPE)
, d  F" Q0 g2 v8 f7 D" s# u" b# w3 U( F      rd_md$    ----------------------------> here    #Read machine definition parameters! T5 Z* {- b* h' p; d2 o/ s
* d5 z# }  `# ~1 |
      #debug* U: `7 P) C) _4 N/ Q; ?/ N
      #error_msg$ = 01 _5 J6 U- n/ j/ C  b1 c+ ]
      #err_file$ = 4; J9 W# M5 W; k: S9 r( u
      #bug2$ = 40
1 [9 v" P9 b" G4 |/ _7 `0 M      #fastmode$ = no$: L" S8 m" ^: Q9 b2 @
  e5 D( x4 n2 |4 T2 s

3 s# `( r, i& s% N
$ R% |7 z+ x7 A3 E' J. _# --------------------------------------------------------------------------6 m, H* B' u% D5 s' Q9 C4 n
psynclath$      #Read NCI Axis-Combination (950) line1 ^+ {; H" R- b5 M6 D+ P+ r; o) ^
      pset_mach    ----------------------------> here#Set rotary switches by reading machine def parameters/ W2 w. I: k8 i/ ~  H0 |
      #Rotaxtyp = 1 sets initial matrix to top# N- Y! J8 b1 o( k! @. q
      #Rotaxtyp = -2 sets initial matrix to front
3 u4 _# h- \, R+ ?      if vmc, rotaxtyp$ = one" z0 f# B" \: E' S3 P8 r( c6 _
      else, rotaxtyp$ =  -26 B9 m! N' F4 h5 E

& i! H# E3 Q/ O" @% @pset_mach       #Set post switches by reading machine def parameters4 M9 M, L9 m8 ~3 `/ |8 ]
      rot_ax_cnt = 01 V* ]% \2 P7 U3 |! P- S
      rotaxerror = 0# C( D8 q5 c: y1 i8 O. p
      rot_on_x = 0  #Turn off rotary axis unless it is detected in machine read - supresses rotary output in 3 axis machines& ~8 D. A: _) Q
* N1 e8 p, o: F# k: y
      rd_cd$      ----------------------------> here  #Read control definition parameters - calls pmachineinfo$
9 ]2 M9 i, D8 m      #Output error message if Write NC operation information is not enabled in CD
& I+ P$ r3 {4 ^" [      #if write_ops = 0, result = mprint(swriteopserror,2), exitpost$
4 Y9 ]* Q0 Z* Z/ x2 g1 \
8 z; X0 @8 c8 j9 H1 R% Y* j# H: k      if sof = 1,. O7 x: P) c9 B
        [
3 E( w2 V* k' g9 r) x2 l8 m/ b8 u        maxfeedpm = 999999       #Uncomment these variables to force use of machine def values as initial lowest max feedrate value
! r3 C# T9 P" X) _  u        maxfeedpm_m = 9999999    #Otherwise the default (post) initialization setting is used as initial value
: n" }9 u( W' |6 E' c        #minfeedpm = 999999
$ ]: {* Z5 D5 V  S6 D6 A2 W8 G' w        #minfeedpm_m = 999999
: u  k- s2 V' N# e        !maxfeedpm, !maxfeedpm_m  #, !minfeedpm, !minfeedpm_m
; F0 x9 J! v9 Y/ D& A        rd_mch_ent_no$ = 02 V  r! j7 X; _; F
        rd_md$     ----------------------------> here   #Read machine definition parameters - calls pmachineinfo$
0 z0 O5 U: G# K& W. g/ p3 l  t        ]/ Z. R0 U- H; s3 m; C9 @# a

3 A& B' ]# r: G, ?5 B3 n0 [1 f      rd_mch_ent_no$ = syncaxis$  ----------------------------> here #Retrieve machine parameters based on current axis combination - read from .nci G950 line
2 m! E1 C. ^/ M; a' r      rd_md$      ----------------------------> here  #Read machine definition parameters - calls pmachineinfo$
% I0 n6 v! \6 B  [$ a, A0 m: |/ [      rd_tlpathgrp$   ----------------------------> here# Read toolpath group parameters - calls pmachineinfo$- p5 Z* \# h0 ^. i! U9 d+ z
3 G2 Q- ~; k! C; O' X: R' d' C" |
      rd_prm_op_no$ = op_id$
( V/ I* s& d$ R& K      rd_params$     ----------------------------> here   #Read operaitons parameters5 G, k# |2 i( M, `6 k( c
3 j1 F& Z9 E" Q/ i: ~
      #We only need these set at toolchange (and start of file).  No need to set them each time a user may call rd_md; ^' a- V" I  V- {2 @/ I! P
      if sav_rot_on_x = zero, rot_on_x = zero
  f5 x% ?0 x+ x5 d  |( B      else, rot_on_x = rot_axis9 x, U% m; Z# K4 ~" B
      rot_cw_pos = rot_dir
9 d5 B; D+ ?& p8 |      index = rot_index
2 [) }) J* `6 q4 \2 L3 E      if rot_angle = zero, ctable = one #ctable zero will produce a divide by zero error, so force to one if zero in MD
) @' t7 s9 f% Z* ^3 F1 Z. Q3 t- H      else, ctable = rot_angle3 q' Y- U  f; t7 x4 J5 K5 j% H
$ E" c3 g3 R3 t3 g( \
      if met_tool$ = 1,+ {* i5 A' b- S4 }  I& h% Y/ u
        [
% N* M: s0 ~: l$ x; m& k1 @        maxfrinv = maxfrinv_m           #Set limit for feed inverse time  d3 t( I( _* G4 |" D' n8 H
        minfrinv = minfrinv_m
; r4 q$ x& f* `+ n: H2 b1 c4 |        maxfeedpm = maxfeedpm_m         #Set limit for feed in mm/min( x3 O# k2 g" i+ _) K2 B3 L
        minfeedpm = minfeedpm_m0 P% @) ]1 Q% G) A/ b
        ]9 |, ^8 H3 ?  O# m! z2 F: ^2 v/ i
4 _! M* O* ^: E$ i
      if use_md_rot_label, sav_srot_label = srot_label   #Backup the original rotary axis label5 y1 @& c# G" D+ u! M
( P" S# [; o) j! Y% u

$ g* |6 Z$ b- ~& {" O4 ~( s, I4 o& t$ t6 O: {
回复

使用道具 举报

3

主题

168

回帖

218

积分

中级会员

积分
218
QQ
 楼主| 发表于 2022-9-10 12:33:32 | 显示全部楼层
感谢若风老师。$ n3 P, y( k- o2 q8 F- C
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

QQ|Archiver|手机版|小黑屋|若枫后处理论坛 ( 苏ICP备11015087号-1|苏公网安备32059002001368号 )

GMT+8, 2026-11-20 03:18 , Processed in 0.189593 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表