司丶 发表于 2024-7-20 11:28:07

车床后处理里每个地址符前加空格要改哪里

网上找了个车床的后处理挺好用 就是出来的程序都没有空格隔开 我这里有一台老广数传进去不分行 有没有懂改后处理的指导一下改哪里
T0101
G99G97S200M04
G00X219.Z23.584M08
X214.881
G32Z-122.708F18.
G00X219.
Z21.292
X214.881
G32Z-125.F18.
G00X219.
Z19.
X214.881
这是出来的程序就是这样的


qlx888888 发表于 2024-7-22 18:29:47

找到这个,中间要加几个空格就改几

y81992669 发表于 2024-7-20 13:05:04

spaces$=1    ,的意思就是空格是一个

司丶 发表于 2024-7-24 10:40:36

qlx888888 发表于 2024-7-22 18:29
找到这个,中间要加几个空格就改几

找到了 这里是1 但是出来的还是没有间隔 后处理里的spaces$=1 也改了 但是还是没有空格

司丶 发表于 2024-7-24 10:41:09

y81992669 发表于 2024-7-20 13:05
spaces$=1    ,的意思就是空格是一个

找到了 也改了 出来的还是不行 没有空格 都是挨着的

司丶 发表于 2024-7-24 10:43:41

qlx888888 发表于 2024-7-22 18:29
找到这个,中间要加几个空格就改几

ptoolcomment    #Comment for tool
      if tool_info = 1 | tool_info = 3,
      [
      tnote = abs(t$)
      toffnote = tloffno$
      strtool$ = ucase(strtool$)
      stinsert2 = ucase(stinsert2)
      !spaces$
      spaces$ = zero
      #scomm_str, *tnote, " ", *toffnote, scomm_end, e$
      if posttype$ = two, # Lathe toolpath operation
          [
          if tool_op$ = 64, # Drill operation
          scomm_str, *strtool$, scomm_end, e$
          else,
          scomm_str, *strtool$, " ", *stinsert, *stinsert2, scomm_end, e$
          ]
      else, # Mill toolpath operation
      scomm_str, *strtool$, scomm_end, e$
      spaces$ = prv_spaces$
      ]

这一段看看有什么问题吗? 会不会是加上的空格又强制删除了 看不懂这些

司丶 发表于 2024-7-24 10:49:39

司丶 发表于 2024-7-24 10:43
ptoolcomment    #Comment for tool
      if tool_info = 1 | tool_info = 3,
      [


改好了 把所有的spaces$ = zero 删除了就行了 这段意思应该是强制删除所有空格
页: [1]
查看完整版本: 车床后处理里每个地址符前加空格要改哪里