Re: [Emc-users] Unexpected move after Stop

2017-02-16 Thread Sebastian Kuzminsky
On 02/16/2017 09:01 AM, Marius Alksnys wrote:
>
>
> 02/16/2017 05:25 PM, Sebastian Kuzminsky rašė:
> ...
>> There were a couple of terrible "surprise move" bugs in 2.7.5 and 2.7.6.
>>   As far as we know these are all fixed in 2.7.7 and later.
>>
>> Which version of LinuxCNC were you running when you had this surprise
>> motion?  I really hope it was something older than 2.7.7!
>
> It was 2.7.8 and now 2.8.0-pre1-2846-g9e23976, and I can't find a way to
> offer an operator to stop the program in the middle. It just moves after
> stop. Every time.

That sounds frustrating, but it's great that it's super repeatable, 
that'll make it easier to find and debug.

I tried to reproduce the problem here this morning in 2.7, but could not 
get anything bad to happen.

Can you reproduce it in a sim config, and send a detailed recipe telling 
me how you reproduce it on your system?

If it's not reproducible in sim, the second best option is to post a 
complete copy of your config (along with the steps you take to reproduce 
the problem) and i'll try to whittle it down to something that i can 
reproduce locally.


-- 
Sebastian Kuzminsky

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2017-02-16 Thread Marius Alksnys


02/16/2017 05:25 PM, Sebastian Kuzminsky rašė:
...
> There were a couple of terrible "surprise move" bugs in 2.7.5 and 2.7.6.
>   As far as we know these are all fixed in 2.7.7 and later.
>
> Which version of LinuxCNC were you running when you had this surprise
> motion?  I really hope it was something older than 2.7.7!

It was 2.7.8 and now 2.8.0-pre1-2846-g9e23976, and I can't find a way to 
offer an operator to stop the program in the middle. It just moves after 
stop. Every time.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2017-02-16 Thread Sebastian Kuzminsky
On 02/16/2017 07:32 AM, Marius Alksnys wrote:
> I can confirm the same on another 3 axis machine with trivial
> kinematics. After stopping or pause/stopping a program motion continues
> some straight line at programmed feedrate to some point and stops. The
> distance is big. This occurs every time, when paused in an arc motion
> and stopped after that. Two tools already broken..
>
> I found this as an already fixed "surprise move bug" in master:
> https://github.com/LinuxCNC/linuxcnc/commit/404be0fd8f6b6396f31943755db4b4754687d79b

There were a couple of terrible "surprise move" bugs in 2.7.5 and 2.7.6. 
  As far as we know these are all fixed in 2.7.7 and later.

Which version of LinuxCNC were you running when you had this surprise 
motion?  I really hope it was something older than 2.7.7!


> Then I installed master branch and get another errors - not being able
> to run any program with an error:
> emc/task/emctask.cc 397: interp_error: exception during generator call:
> TypeError: 'NoneType' object is not callable
>
> exception during generator call: TypeError: 'NoneType' object is not
> callable
>
>
> What would you recommend me to do?

If this problem occurs with 2.7.8, then please try reproduce the problem 
in a sim config.  Then post a tarball of the whole config directory and 
a gcode file and a set of steps the operator can take to reproduce the 
problem.


> Debug messages:
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,105.936000,174.984000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,342.188909,1231.880073,+0,-1,)
> Motion id 24 took 0.082464 seconds.
> Outgoing motion id is 1108.
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,105.047000,175.443000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,375.140935,1350.507367,+0,-1,)
> Issuing EMC_TASK_PLAN_PAUSE -- (  +510,+12,   +31,)
> Issuing EMC_TASK_ABORT --  (  +503,+12,   +32,)
> emc/task/emctask.cc 389: interp_error: bad number format (conversion
> failed) parsing ''
> bad number format (conversion failed) parsing ''
> Motion id 25 took 3.132175 seconds.
> Motion id 0 took 0.02 seconds.
> Outgoing motion id is 2114.
> Issuing EMC_TASK_PLAN_SYNCH -- (  +516,+12,+0,)
> Outgoing motion id is 2115.
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,169.066000,226.898000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,342.896322,1234.426761,+0,-1,)
> Issuing EMC_TASK_SET_MODE --   (  +504,+16,   +33,+1,)
> Motion id 2115 took 5.132525 seconds.
> Motion id 0 took 0.02 seconds.
> Issuing EMC_TASK_PLAN_SYNCH -- (  +516,+12,+0,)
> can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the
> interpreter idle

Well that looks all kinds of broken.  I don't get that when I pause and 
then abort a linear move in 2.7.8 in sim/axis/axis.


-- 
Sebastian Kuzminsky

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2017-02-16 Thread Marius Alksnys
This surprise move exists even in the latest master version.

I solved "exception during generator call: TypeError: 'NoneType' object 
is not callable" by deleting and making new python stdglue.py, remap.py 
nd toplevel.py files like it is written here: 
http://linuxcnc.org/docs/devel/html/remap/remap.html#_upgrading_an_existing_configuration_for_remapping

02/16/2017 04:32 PM, Marius Alksnys rašė:
> I can confirm the same on another 3 axis machine with trivial
> kinematics. After stopping or pause/stopping a program motion continues
> some straight line at programmed feedrate to some point and stops. The
> distance is big. This occurs every time, when paused in an arc motion
> and stopped after that. Two tools already broken..
>
> I found this as an already fixed "surprise move bug" in master:
> https://github.com/LinuxCNC/linuxcnc/commit/404be0fd8f6b6396f31943755db4b4754687d79b
>
> Then I installed master branch and get another errors - not being able
> to run any program with an error:
> emc/task/emctask.cc 397: interp_error: exception during generator call:
> TypeError: 'NoneType' object is not callable
>
> exception during generator call: TypeError: 'NoneType' object is not
> callable
>
>
> What would you recommend me to do?
>
> Info from v. 2.7.8 config:
> In G-code:
> G64 P0.05 Q0.001
>
> I use M6 tool change remap with subroutines. Two important lines in main
> INI file:
> [RS274NGC]
> ...
> REMAP=M6 modalgroup=6 prolog=change_prolog ngc=toolchange
> epilog=change_epilog
> ON_ABORT_COMMAND=O  call
> ...
> [TRAJ]
> AXES = 3
> COORDINATES = X Y Z
> LINEAR_UNITS = mm
> ANGULAR_UNITS = degree
> CYCLE_TIME = 0.010
> DEFAULT_LINEAR_VELOCITY = 50
> MAX_LINEAR_VELOCITY = 700
> NO_FORCE_HOMING = 0
> ARC_BLEND_ENABLE = 1
> ARC_BLEND_FALLBACK_ENABLE = 0
> ARC_BLEND_OPTIMIZATION_DEPTH = 100
> ARC_BLEND_GAP_CYCLES = 4
> ARC_BLEND_RAMP_FREQ = 100
>
> LinuxCNC/AXIS version 2.7.8
> 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux
>
> Debug messages:
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,105.936000,174.984000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,342.188909,1231.880073,+0,-1,)
> Motion id 24 took 0.082464 seconds.
> Outgoing motion id is 1108.
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,105.047000,175.443000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,375.140935,1350.507367,+0,-1,)
> Issuing EMC_TASK_PLAN_PAUSE -- (  +510,+12,   +31,)
> Issuing EMC_TASK_ABORT --  (  +503,+12,   +32,)
> emc/task/emctask.cc 389: interp_error: bad number format (conversion
> failed) parsing ''
> bad number format (conversion failed) parsing ''
> Motion id 25 took 3.132175 seconds.
> Motion id 0 took 0.02 seconds.
> Outgoing motion id is 2114.
> Issuing EMC_TASK_PLAN_SYNCH -- (  +516,+12,+0,)
> Outgoing motion id is 2115.
> Issuing EMC_TRAJ_LINEAR_MOVE --(  +220,+120,
> +0,169.066000,226.898000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
> +2,13.33,342.896322,1234.426761,+0,-1,)
> Issuing EMC_TASK_SET_MODE --   (  +504,+16,   +33,+1,)
> Motion id 2115 took 5.132525 seconds.
> Motion id 0 took 0.02 seconds.
> Issuing EMC_TASK_PLAN_SYNCH -- (  +516,+12,+0,)
> can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the
> interpreter idle
>
>
> 06/25/2016 08:35 PM, Tomaz T. rašė:
>>
>>
>>
>> I'm a bit confused what could cause unexpected move after pressing stop or 
>> pause->stop.
>> Here is print screen what happened: https://cdn.pbrd.co/images/1X2RCHL7.jpg
>> Recently I implemented manualtoolchange but the only thing I was modifying 
>> were subroutines ... not sure if there could be source of this issue?


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2017-02-16 Thread Marius Alksnys
I can confirm the same on another 3 axis machine with trivial 
kinematics. After stopping or pause/stopping a program motion continues 
some straight line at programmed feedrate to some point and stops. The 
distance is big. This occurs every time, when paused in an arc motion 
and stopped after that. Two tools already broken..

I found this as an already fixed "surprise move bug" in master: 
https://github.com/LinuxCNC/linuxcnc/commit/404be0fd8f6b6396f31943755db4b4754687d79b

Then I installed master branch and get another errors - not being able 
to run any program with an error:
emc/task/emctask.cc 397: interp_error: exception during generator call: 
TypeError: 'NoneType' object is not callable

exception during generator call: TypeError: 'NoneType' object is not 
callable


What would you recommend me to do?

Info from v. 2.7.8 config:
In G-code:
G64 P0.05 Q0.001

I use M6 tool change remap with subroutines. Two important lines in main 
INI file:
[RS274NGC]
...
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=toolchange 
epilog=change_epilog
ON_ABORT_COMMAND=O  call
...
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_LINEAR_VELOCITY = 50
MAX_LINEAR_VELOCITY = 700
NO_FORCE_HOMING = 0
ARC_BLEND_ENABLE = 1
ARC_BLEND_FALLBACK_ENABLE = 0
ARC_BLEND_OPTIMIZATION_DEPTH = 100
ARC_BLEND_GAP_CYCLES = 4
ARC_BLEND_RAMP_FREQ = 100

LinuxCNC/AXIS version 2.7.8
3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux

Debug messages:
Issuing EMC_TRAJ_LINEAR_MOVE --  (  +220,+120, 
+0,105.936000,174.984000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
 
+2,13.33,342.188909,1231.880073,+0,-1,)
Motion id 24 took 0.082464 seconds.
Outgoing motion id is 1108.
Issuing EMC_TRAJ_LINEAR_MOVE --  (  +220,+120, 
+0,105.047000,175.443000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
 
+2,13.33,375.140935,1350.507367,+0,-1,)
Issuing EMC_TASK_PLAN_PAUSE --   (  +510,+12,   +31,)
Issuing EMC_TASK_ABORT --(  +503,+12,   +32,)
emc/task/emctask.cc 389: interp_error: bad number format (conversion 
failed) parsing ''
bad number format (conversion failed) parsing ''
Motion id 25 took 3.132175 seconds.
Motion id 0 took 0.02 seconds.
Outgoing motion id is 2114.
Issuing EMC_TASK_PLAN_SYNCH --   (  +516,+12,+0,)
Outgoing motion id is 2115.
Issuing EMC_TRAJ_LINEAR_MOVE --  (  +220,+120, 
+0,169.066000,226.898000,-401.414000,0.00,0.00,0.00,0.00,0.00,0.00,
 
+2,13.33,342.896322,1234.426761,+0,-1,)
Issuing EMC_TASK_SET_MODE -- (  +504,+16,   +33,+1,)
Motion id 2115 took 5.132525 seconds.
Motion id 0 took 0.02 seconds.
Issuing EMC_TASK_PLAN_SYNCH --   (  +516,+12,+0,)
can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the 
interpreter idle


06/25/2016 08:35 PM, Tomaz T. rašė:
>
>
>
> I'm a bit confused what could cause unexpected move after pressing stop or 
> pause->stop.
> Here is print screen what happened: https://cdn.pbrd.co/images/1X2RCHL7.jpg
> Recently I implemented manualtoolchange but the only thing I was modifying 
> were subroutines ... not sure if there could be source of this issue?


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2016-06-26 Thread Tomaz T .
I also tried to prevent this move to happen with lowering Max Velocity slider 
to zero (before pressing Stop), then warning show up: can't do that 
(EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with interpreter idle.

> 
> I seem to recall that 5axiskins links to the tool-length offset, so a
> change in tool length might change the apparent position of the
> controlled point, which the servo loop will attempt to correct.
> 

  
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2016-06-25 Thread andy pugh
On 25 June 2016 at 19:20, Tomaz T.  wrote:
> Yes I'm using 5axiskins (slightly modified) and till now I didn't noticed 
> this kind of issues.

I seem to recall that 5axiskins links to the tool-length offset, so a
change in tool length might change the apparent position of the
controlled point, which the servo loop will attempt to correct.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2016-06-25 Thread Tomaz T .
Yes I'm using 5axiskins (slightly modified) and till now I didn't noticed this 
kind of issues.
> 
> Is this a non-trivial kinematics machine?
> 
> I'm working on a machine that does something like this when switching
> between forward and inverse kinematics (or maybe the other way around). In
> my case it is caused by a slight error in my forward kinematics function.
> 
  
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected move after Stop

2016-06-25 Thread Chris Kelley
Is this a non-trivial kinematics machine?

I'm working on a machine that does something like this when switching
between forward and inverse kinematics (or maybe the other way around). In
my case it is caused by a slight error in my forward kinematics function.

On Sat, Jun 25, 2016 at 12:35 PM, Tomaz T.  wrote:

>
>
>
> I'm a bit confused what could cause unexpected move after pressing stop or
> pause->stop.
> Here is print screen what happened:
> https://cdn.pbrd.co/images/1X2RCHL7.jpg
> Recently I implemented manualtoolchange but the only thing I was modifying
> were subroutines ... not sure if there could be source of this issue?
>
>
> --
> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Unexpected move after Stop

2016-06-25 Thread Tomaz T .



I'm a bit confused what could cause unexpected move after pressing stop or 
pause->stop.
Here is print screen what happened: https://cdn.pbrd.co/images/1X2RCHL7.jpg
Recently I implemented manualtoolchange but the only thing I was modifying were 
subroutines ... not sure if there could be source of this issue?
  
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users