Contact me: hankecnc@gmail.com

小贡献,加快工作 #1507

推推 grbl 3年前 (2023-02-02) 263次浏览
关闭
MARIOBASZ 打开了这个问题 2021 年 1 月 1 日 · 0 条评论
关闭

小贡献,加快工作#1507

MARIOBASZ 打开了这个问题 2021 年 1 月 1 日 · 0 条评论

评论

小贡献,加快工作 #1507
贡献者

我的 Git 分支已经过时了,我建议从这里:

在 cnc.py 中:
#—————————————- ————————–
@staticmethod
def zenter_rapid(z, d=None):
如果 CNC.lasercutter:
如果 CNC.laseradaptive:
返回 “m4”
否则:
返回 “m3”
否则:
返回 “g0 %s”%(CNC.fmt(“z”,z,四))

#----------------------------------------------------------------------

zenter_rapid(在 ZENTER 之前);
def getSegmentZTab(段,altz=无):

……
…..
如果进入:
如果收回: block.append(CNC.zenter_rapid(surface + 1.0))
#if entry feed to Z
block.append(CNC.zenter(max(zh, ztab) ,7))
表面=max(zh,ztab)+1.0

在 def 钻孔(线)中:

		if peck is None:
			lines.append(CNC.zenter_rapid(self.cnc["surface"] + 1.0))
			lines.append(CNC.zenter(depth))
			lines.append(CNC.zsafe())
		else:
			z = self.cnc["surface"]
			while z>depth:
				z = max(z-peck, depth)
				lines.append(CNC.zenter_rapid(self.cnc["surface"] + 1.0))
				lines.append(CNC.zenter(z))
				lines.append(CNC.zsafe())