…… ….. 如果进入: 如果收回: 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())
我的 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 钻孔(线)中: