1210631362 发表于 2026-1-23 22:56:26

laosan653 发表于 2026-1-20 13:15
增加波动百分之五,怎么写呢?什么格式,怎么写?什么格式能无限循环?
...

llin$里面就已经是每次g1都会输出的了,不需要考虑循环,至于波动你可以自己考虑一下怎么写

1210631362 发表于 2026-1-23 22:57:25

qingxiansen1 发表于 2026-1-23 21:41
自己改的后处理,冷却液每条刀路都有冷却液,咋也改不好

放的位置不对,你要是想加强制的冷却液,你就在换刀后面加

laosan653 发表于 2026-1-24 07:16:11

1210631362 发表于 2026-1-23 22:56
llin$里面就已经是每次g1都会输出的了,不需要考虑循环,至于波动你可以自己考虑一下怎么写
...

好的,我试一试

qingxiansen1 发表于 2026-1-25 00:03:51

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$
            ]
          ]
      ]

1210631362 发表于 2026-1-25 23:13:14

qingxiansen1 发表于 2026-1-25 00:03
最开始改的ptlchg0$ 识别四轴转角度自动回安全位置,发现转角度好无冷却液输出   ,后面改pcant_out   ...

回安全距离不关冷却啊,为什么要考虑有没有冷却液,不行就在ptlchg0或者转完角度加

大犀牛 发表于 2026-1-26 23:44:53

"C:\Users\0\Pictures\QQ截图20260126233748.png"
后处理会输出一个重复的m8,请问怎么关闭下面那个M8啊

qin110 发表于 2026-1-30 16:58:00

大师,后处理报警弹窗时如何提取刀路ID

1210631362 发表于 2026-2-5 14:56:16

大犀牛 发表于 2026-1-26 23:44
后处理会输出一个重复的m8,请问怎么关闭下面那个M8啊

可能是刀路开了后处理又有强制就重复了吧,关掉其中一个就可以

1210631362 发表于 2026-2-5 14:56:46

qin110 发表于 2026-1-30 16:58
大师,后处理报警弹窗时如何提取刀路ID

opinfo 15240
页: 61 62 63 64 65 66 67 68 69 70 [71]
查看完整版本: MasterCAM后处理交流