Hallo,
found another strange behavior:
– start sim/axis_mm.ini
– start hal show and watch halui.program.optional-stop.is-on (it is on
by default here)
– push the optional stops button (pin should be False by now)
– load a program of your choice (i.e. arcspiral.ngc)
– See the halui pin, it has changed
As far as I tested, that happen every time a new program is loaded (mode
changes to mode 2).
IMHO that is not correct, it should be possible to set the
optional_stops in any motion mode at any time and the setting should
remain set, until a user changes that.
Affect not only axis, also gmoccapy and may be other GUI
Norbert
评论 (2)
#2 – pkmcnc 于 2016-07-25
https://github.com/LinuxCNC/linuxcnc/commit/92ca9a20cc2e19facfb31d7066340acc1120f3ae also fixed a dangerous bug with spontaneous TLO reset.
#1 – jepler 于 2016-07-22
I used gdb to find where optional stop is being set back to true. It happens while task is processing a message of type EMCTASKPLAN_INIT
All UIs using the Python linuxcnc module recently had their behavior change, by adding a call to resetinterpreter to programopen. At the time I made this change, I didn’t realize this consequence of it (see commit 27d3822f):