|
|
发表于 2026-3-7 11:29:50
|
显示全部楼层
不会啊
是不是加在这里?
# --------------------------------------------------------------------------
pskchl_mk #车床回零方式控制模块
if skchl_kg < 0 | skchl_kg > 2, skchl_kg = 0 #当输入其它数字后,强制按“0”方案执行
if skchl_kg = 0, #0 = 机床原点 (G0 X_轴 Z_轴同时移动 )
[
pbld, n$, "G00", *xh$, *zh$,strcantext, e$
]
if skchl_kg = 1, #1 = 机床原点 (G0 先 X_轴 再 Z_轴 )
[
pbld, n$, "G00", *xh$, strcantext, e$
pbld, n$, "G00", *zh$, strcantext, e$
]
if skchl_kg = 2, #2 = 机床原点 (G0 先 Z_轴 再 X_轴 )
[
pbld, n$, "G00", *zh$, strcantext, e$
pbld, n$, "G00", *xh$, strcantext, e$
]
# ------------------------------------------------------------------
|
|