1210631362 发表于 2026-1-19 15:43
强行改开头
开头是指输出的开头那一段后处理吗?怎么修改?
tudouy 发表于 2026-1-14 16:11
大师请教一个问题 ,我现在这个后处理加了多坐标宏以后,#1=#1+1
这一段跑到m9后面去了,怎么让他加在m9前 ...
你这个就在g80后面加就可以
laosan653 发表于 2026-1-18 21:39
大师您好!我这让车床后处理加入浮动转速,在一定范围内浮动,怎么编写? ...
可以考虑在llin或者其他块尝试添加逻辑增加波动百分之5这样
1210631362 发表于 2026-1-19 15:50
可以考虑在llin或者其他块尝试添加逻辑增加波动百分之5这样
增加波动百分之五,怎么写呢?什么格式,怎么写?什么格式能无限循环?
自己改的后处理,冷却液每条刀路都有冷却液,咋也改不好
laosan653 发表于 2026-1-20 13:15
增加波动百分之五,怎么写呢?什么格式,怎么写?什么格式能无限循环?
...
llin$里面就已经是每次g1都会输出的了,不需要考虑循环,至于波动你可以自己考虑一下怎么写
qingxiansen1 发表于 2026-1-23 21:41
自己改的后处理,冷却液每条刀路都有冷却液,咋也改不好
放的位置不对,你要是想加强制的冷却液,你就在换刀后面加
1210631362 发表于 2026-1-23 22:56
llin$里面就已经是每次g1都会输出的了,不需要考虑循环,至于波动你可以自己考虑一下怎么写
...
好的,我试一试
1210631362 发表于 2026-1-23 22:57
放的位置不对,你要是想加强制的冷却液,你就在换刀后面加
最开始改的ptlchg0$ 识别四轴转角度自动回安全位置,发现转角度好无冷却液输出 ,后面改pcant_out模块改成了冷却液全局输出
coolant_output : 1 # Global Coolant Output Control Parameter
pcant_out
if cant_pos < three,
[
if cantext$ = three, bld = one
if cantext$ = four, bld = zero
if cantext$ = one, strcantext = strcantext + sm00
if cantext$ = two, strcantext = strcantext + sm01
if cantext$ > four,
[
if coolant_output = 1, #return
strtextno = no2str(cantext$)
strcantext = strcantext + strm + strtextno
]
]
else,
[
if coolant_output = 1,
[
coolant_on = zero
#return
]
coolant_bin = flook (two, cantext$)
if frac(cantext$/two),
[
if all_cool_off,
[
if coolant_on, pbld, n$, sall_cool_off, e$
coolant_on = zero
]
else,
[
if coolant_on > 0,
[
coolant_on = coolant_on - coolant_bin/2
coolantx = cantext$ - 50
pbld, n$, *scoolantx, e$
]
]
]
else,
[
local_int = zero
coolantx = zero
suppress = zero
while local_int < 20 & coolant_on > 0,
[
result2 = and(2^local_int, coolant_on)
local_int = local_int + one
if result2 = coolant_bin, suppress = one
]
if suppress <> 1,
[
coolant_on = coolant_on + coolant_bin
coolantx = cantext$ - 50
if cant_pos = four, *scoolantx
else, pbld, n$, *scoolantx, e$
]
]
]
qingxiansen1 发表于 2026-1-25 00:03
最开始改的ptlchg0$ 识别四轴转角度自动回安全位置,发现转角度好无冷却液输出 ,后面改pcant_out ...
回安全距离不关冷却啊,为什么要考虑有没有冷却液,不行就在ptlchg0或者转完角度加