开源改变世界

qtDragon,M6 重映射不起作用 #1770

推推 grbl 2年前 (2023-01-31) 150次浏览
打开
snelweg 打开了这个问题 2022 年 6 月 16 日 · 10 条评论
打开

qtDragon,M6 重映射不起作用#1770

snelweg 打开了这个问题 2022 年 6 月 16 日 · 10 条评论

注释

qtDragon,M6 重映射不起作用 #1770
蛇尾 评论了 2022 年 6 月 16 日  

按照https://linuxcnc.org/docs/devel/html/gui/qtdragon.html#_auto_tool_measurement上的文档,重新映射不起作用。
论坛上有很多关于这个问题的讨论。几个版本前我有点让它工作,但现在 2.9 pre 什么都没有。我注意到路径名甚至一些例程名称与文档中提到的不同。

以下是我重现该问题所遵循的步骤:
方法 1:MDI:M6 T11

方法 2:包含换刀的 GCode 文件,例如 M6 T11

这是我期望发生的事情:

- Measure the workpiece with the touch probe
- load job
- start job
- spindle moves to the tool change position and requests the first tool
- tool clamped and confirmed
- spindle drives to the tool sensor and measures the first tool
- first milling begins
- first milling finished
- spindle moves to the tool change position and requests the second tool
- tool clamped and confirmed
- spindle moves to the tool sensor and measures the second tool
- second milling begins
- etc. until the job is finished

这就是发生的事情:
没有。机器挂起并在一段时间后放弃。我收到一条关于硬限制的消息,然后什么也没有,LinuxCNC 正在运行但根本没有 gui 或响应。

这一切都适用于 gmoccapy 顺便说一句。
有关我的硬件和软件的信息:

I am using this Linux distribution and version:
    Distributor ID: Debian
    Description: Debian GNU/Linux 10 (buster)
    Release: 10
    Codename: buster

I am using this kernel version:

Linux cnc-machine 4.19.0-20-rt-amd64SMP PREEMPT RT Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux

我在跑步 …

the apt version,
** deb http://buildbot.linuxcnc.org/ buster master-rtpreempt
** deb-src http://buildbot.linuxcnc.org/ buster master-rtpreempt

我正在使用这个 LinuxCNC 版本(显示在包管理器中,或者对于 git 版本,scripts/get-version-from-git):
LINUXCNC - 2.9.0-pre0-6687-g3bbfd0017

我正在使用这个用户界面(GUI):
qtDragon

我正在使用此接口硬件供应商和芯片组(:
Mesa 7i96、7i84

qtDragon,M6 重映射不起作用 #1770
作者

使用 qtDragon 文档中的 [RS274NGC] 指令时立即获取此信息


Traceback (most recent call last):
  File "/usr/share/qtvcp/screens/qtdragon/qtdragon_handler.py", line 687, in slider_rapid_changed
    rapid = (float(value) / 100) * self.factor
AttributeError: 'HandlerClass' object has no attribute 'factor'
qtDragon,M6 重映射不起作用 #1770
合作者

你能从终端运行它并 pastbin 输出吗?最有可能发现重映射代码存在问题。

qtDragon,M6 重映射不起作用 #1770
作者

终端里什么也没有。该进程挂起,没有任何效果,也没有 GUI。
当我尝试在另一个终端启动 LinxCNC 时,我收到 LinuxCNC 正在运行的消息,如果我想重新启动它。

在 linux 调试文件中没有提到任何一个问题。

我注意到路径名甚至一些例程名称与文档中提到的不同。

  1. qt_auto_tool_probe.ngc 也无处可寻。但是 qt_auto_probe_tool.ngc 确实存在。
  2. YOUR_LINUXCNC_DIRECTORY/configs/sim/QtDragon/python 也不存在,看起来它被替换为:
    /usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/
  3. ~/linuxcnc/nc_files/remap_subroutine/ 不存在,在我的系统上找不到替代方案
qtDragon,M6 重映射不起作用 #1770
合作者

好的,好的信息。谢谢

qtDragon,M6 重映射不起作用 #1770
合作者
  1. 是的,文档是错误的,autoprobe 被称为 qt_auto_tool_probe.ngc
  2. 好的,我会在文档中添加更多信息
  3. 有没有:~/linuxcnc/nc_files/examples/remap_subroutine?
qtDragon,M6 重映射不起作用 #1770
作者
  1. 不,那个目录也不存在。在我的机器上找不到整个 remap_subroutine 目录。
qtDragon,M6 重映射不起作用 #1770
合作者

nc_files 中有什么?还是那也不见了?

qtDragon,M6 重映射不起作用 #1770
作者
蛇尾 评论了 2022 年 6 月 19 日  

这里是~/linuxcnc目录下的所有文件和目录

@DESKTOP-9FIBCI1:~/linuxcnc$ 树

├── 配置
│ ├── my-mill
│ ├── custom.hal
│ ├── custom_postgui.hal
│ ├── my-mill.hal
│ │ ├── my-mill.ini
│ │ ├ ── postgui_call_list.hal
│ │ ├── pyvcp_options.hal
│ │ ├── qtvcp_postgui.hal
│ │ └── tool.tbl
│ ├── my-mill.stepconf
│ ├── sim.gmoccapy
│ │ ├── 4_axis.ini
│ │ ├── 6_axis.ini
│ ├── 7_axis.ini
│ │ ├── 7_axis_tool.ini
│ │ ├── 8_axis.ini
│ │ ├── 9_axis.ini
│ │ ├── 按钮。空地
│ │ ├── core_sim4.hal
│ │ ├── core_sim_6.hal
│ │ ├── core_sim_7.hal
│ ├── core_sim_8.hal
│ │ ├── core_sim_9.hal
│ ├── core_sim.hal
│ │ ├── core_sim_XYZAB.hal │
│ ├──Z─core_sim_hal_XY
├── core_sim_XYZCW.hal
│ ├── dro.glade
│ ├── gmoccapy2.glade
│ │ ├── gmoccapy_4_axis.ini
│ │ ├── gmoccapy.ini │ │ ├──
│ panoccapy_left
│ ─gmoccapy_messages.ini│ –
gmoccapy_pedant.ini│├├├├├├├├├├├├├├├├├├├├├
_
_
_
_
.ini文件
gmoccapy_tool_sensor.para│ –
gmoccapy_with_user_tabs.ini│├│ –
gmoccapy_xyzab.inii│
_ _ ├── hallib -> /usr/share/linuxcnc/hallib │ ├── h_buttonlist.glade │ ├── h_buttonlist.hal │ ├── jogwheel.glade │ ├── jogwheel.hal │ │ ├─ ─ lathe.tbl │ │ ├── left.hal │ ├── left_panel.hal │ │ ├── left_panel.ini │ ├── 宏 │ │ │ ├── change.ngc │ │ │ ├── go_to_position .ngc │ │ │ ├── 光环世界.ngc │ │ │ ├── i_am_lost.ngc

││ –
││││││││├├├├├├├├├├├├├├├z
_ _ _ ── jog_around.ngc │ │ ├── macro_0.ngc │ │ │ ├── macro_10.ngc │ │ │ ├── macro_11.ngc │ │ ├── macro_12.ngc │ │ │ c── macro_1├.ngc │ │ │ ├── macro_14.ngc │ │ ├── macro_15.ngc │ │ │ ├── macro_1.ngc │ │ ├── macro_2.ngc │ │ │ ─ │ │ macro_3.ngc │ │ ─ macro_4.ngc │ │ ├── macro_5.ngc │ │ │ ├── macro_6.ngc │ │ │ ├── macro_7.ngc

│ │ │ ├── macro_8.ngc
│ │ │ ├── macro_9.ngc
│ │ │ ├── macro_Instructions.txt
│ │ │ └── on_abort.ngc
│ │ ├── messages.ini
│ │ pendant │ .glade
│ ├── pendant.hal
│ │ ├── pin.out
│ │ ├── position.txt
│ │ ├── python
│ │ ├── remap.py
│ │ ├── stdglue.py
│ │ │ └── toplevel.py
│ │ ├── README
│ │ ├── README_es
│ │ ├── right_panel.ini
│ │ ├── sig.out │
├── sim_hardware_button.ini
│ │ │ │ simulated_home.hal
│ │ ├── simulated_home_lathe.hal
│ │ ├── sim.var
│ │ ├── sim.var.bak
│ ├── spindle_sim.hal
│ │ ├── tool_sensor.glade
│ ├── tool_sensor.hal
│ ├── tool_sensor.ini
│ │ ├── tool_sensor.para
│ │ ├── tool.tbl
│ │ ├── v_buttonlist.glade
│ │ ├── v_buttonlist.hal
│ │ ├── vcp_box.glade │ │ ├── vcp_box.hal
│ ├── with_user_tabs.ini │
│ ├── with_user_tabs.ini
├── XYZAB.ini
│ │ ├── XYZAC.ini
│ │ └── XYZCW.ini
│ └── sim.qtvcp_screens.qtdragon
│ ├── core_sim.hal
│ ├── gantrysim.hal
│ ├── hallib -> /usr/share/linuxcnc/hallib
│ ├── python
│ │ ├── pycache
│ │ │ └── remap.cpython-310.pyc
│ ├── qt_auto_probe_tool.ngc -> ../../../nc_files/remap-subroutines/qt_auto_probe_tool.ngc
│ │ ├── remap.py
│ │ ├── stdglue.py -> ../../../../nc_files/remap_lib/python-stdglue/stdglue.py
│ │ └── toplevel.py
│ ├── qtdragon_auto_tool_probe.ini
│ ├─ ─ qtdragon_hd.ini
│ ├── qtdragon.ini
│ ├── qtdragon.log
│ ├── qtdragon.log.txt
│ ├── qtdragon_postgui.hal
│ ├── qtdragon_postgui_ya.hal
│ ├── qtdragon │.pref
│ ── qtdragon.var
│ ├── qtdragon.var.bak
│ ├── qtdragon_xyyz.ini
Qtdragon_xyza.ini│ –
Qtdragon_xyz.ini│ –
q├├├├├├├├├├├├├├├├├├├├├├├
_
_
pycache │ │ │ └── resources.cpython-310.pyc │ │ └── resources.py │ ├── README │ ├── silver_dragon.png │ └── tool.tbl ├── hal_sigs_graphviz.py └── nc_files ├── examples -> /usr/share/linuxcnc/ncfiles ├── gcmc_lib -> /usr/share/linuxcnc/ncfiles/gcmc_lib ├── gladevcp_lib -> /usr/share/linuxcnc/ncfiles/gladevcp_lib

├── ngcgui_lib -> /usr/share/linuxcnc/ncfiles/ngcgui_lib
├── ngcgui.txt
├── readme.ngc
├── remap_lib -> /usr/share/linuxcnc/ncfiles/remap_lib
└── remap-subroutines -> /usr/share/linuxcnc/ncfiles/remap-subroutines

`@DESKTOP-9FIBCI1:~/linuxcnc/configs/sim.qtvcp_screens.qtdragon$ cd python/

@DESKTOP-9FIBCI1:~/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python$ ls -la ../../../../nc_files/remap_lib/python-stdglue/stdglue.py

ls: kan geen toegang krijgen tot ‘../../../../nc_files/remap_lib/python-stdglue/stdglue.py’: Bestand of map bestaat niet
(file not found)
@DESKTOP-9FIBCI1:~/ linuxcnc/configs/sim.qtvcp_screens.qtdragon/python$
`

qtDragon,M6 重映射不起作用 #1770
合作者

尝试使用:
SUBROUTINE_PATH =/usr/share/linuxcnc/ncfiles/remap-subroutines:/usr/share/linuxcnc/ncfiles/remap_lib

qtDragon,M6 重映射不起作用 #1770
合作者

我在 owords/remaps 的路径上添加了一些工作以允许绝对路径。
获得正确的路径似乎比它应该更痛苦。
在开发中,路径与安装 linuxcnc 时不同,因此安装的路径不会被我测试。

我假设在安装 linuxcnc 时将示例目录添加到 linuxcnc/nc_files – 也许我错了。

免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论
标签
还没有
项目

还没有

发展

没有分支机构或拉取请求

2名参加者
qtDragon,M6 重映射不起作用 #1770qtDragon,M6 重映射不起作用 #1770

喜欢 (0)