[LinuxCNC/linuxcnc Issue#562] python interface current_line return wrong value?

未分类 bolang 5个月前 (10-15) 36次浏览

Issue #562 | 状态: 进行中 | 作者: lethang12cdt | 创建时间: 2019-02-20

标签: python


Here are the steps I follow to reproduce the issue:

1. I tried to get value of currentline is executing by stat.currentline

This is what I expected to happen:

Because stat.motionline is only return current motion line(g0, g1,..), It’s not update when program running command g4,m62-m65(and maybe more) So i ‘d like to use stat.currentline and hope it will return current line is executing

This is what happened instead:

It only return last line of gcode

Information about my hardware and software:

* I am using master version


评论 (1)

#1 – andypugh 于 2019-02-25

I suspect that this is unavoidable. In effect the non-motion commands take zero time. They are used to modify the canonical commands that are added to the motion queue. What the current-line shows is the G-code line that created the currently-executing motion command.
In effect the motion planner never even sees the non-motion G-codes. (though I am surprised about G4)


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/562

喜欢 (0)