sanity check

If you have a question about the software please ask it here.

sanity check

Postby stirling » Mon Oct 15, 2018 8:15 pm

In the following albeit trivial example (on V1.2047)

(starting from somewhere other than X100)

Code: Select all
exec.Code("G1 X100");
exec.AddStatusmessage("Finished");

The message doesn't get displayed until X=100 i.e. it waits for the gcode to finish before displaying the message. This is clearly incorrect behavior i.e. the Code() method is blocking and it shouldn't be.

Can someone try this on their system and let me know how it behaves please?
UC300ETH_5LPT
Razordance DTHC
http://www.razordance.co.uk/THC.htm
stirling
 
Posts: 32
Joined: Mon Jul 23, 2018 12:54 pm

Re: sanity check

Postby dezsoe » Mon Oct 15, 2018 8:34 pm

Hmm. The same here with 1.2049, also with the latest test version.
dezsoe
 
Posts: 2055
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: sanity check

Postby Dan911 » Mon Oct 15, 2018 11:10 pm

Isn't macro's paused/ blocked when Gcode (run) is enabled??? I've read this in several threads but haven't experienced or tested.
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: sanity check

Postby dezsoe » Tue Oct 16, 2018 6:46 am

Yes, Dan, exacty that made me say "Hmm"... :) I tested all the three methods with the same results:

Code: Select all
exec.Code("G0 X25");
exec.AddStatusmessage("Finished1");

exec.Codesync("G0 X50");
exec.AddStatusmessage("Finished2");

List<string> codelist = new List<string>(); //Create a new List of strings.
codelist.Add("G0 X0"); //Add g-code lines to the List.
exec.Codelist(codelist); //Execute the List of g-codes.
exec.AddStatusmessage("Finished3");

Now what about this thread? :shock:
dezsoe
 
Posts: 2055
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: sanity check

Postby Battwell » Tue Oct 16, 2018 8:40 am

am i the only one that expects it to only print once finished?
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 827
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: sanity check

Postby stirling » Tue Oct 16, 2018 8:41 am

Thanks for confirming it's not just here it's happening.

dezsoe wrote:Now what about this thread? :shock:


Exactly so...

FWIW it appears that the Setfield() method also blocks.
UC300ETH_5LPT
Razordance DTHC
http://www.razordance.co.uk/THC.htm
stirling
 
Posts: 32
Joined: Mon Jul 23, 2018 12:54 pm

Re: sanity check

Postby Robertspark » Tue Oct 16, 2018 5:32 pm

That's the way I'd like it to work
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: sanity check

Postby stirling » Wed Oct 17, 2018 9:09 am

@cncdrive - could you comment on this situation please?

It is my understanding that (current) intended behavior for my example snippet is that the gcode line and the message line should run asynchronously i.e. in parallel.

As I have said, on my system it behaves synchronously (i.e. serially) and it seems @Dezsoe at least is seeing the same on 1.2049.

Guys, I know some of you want serial execution but all I'm trying to establish at the moment is what the CURRENT system is MEANT to be doing.

If it's MEANT to be synchronous then so be it (though I'd profoundly disagree with that decision). However if it's currently MEANT to be asynchronous then it appears to me (and @Dezsoe) at least that it is not and therefore is bugged.
UC300ETH_5LPT
Razordance DTHC
http://www.razordance.co.uk/THC.htm
stirling
 
Posts: 32
Joined: Mon Jul 23, 2018 12:54 pm

Re: sanity check

Postby dezsoe » Wed Oct 17, 2018 9:27 am

Yesterday late night, when I was tired to do any useful, I tested all the versions I have on my laptop. I'm not happy with the results:

Works fine (1.xxxx):
2031, 2032, 2033, 2035, 2036, 2037

Waits for the code to finish (1.xxxx):
1111, 1115, 1116, 1117, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2016, 2019, 2020, 2021, 2022, 2024, 2026, 2029, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2101, 2102, 2103, 2104, 2105, 2106, 2107

The test code was the same as before.
dezsoe
 
Posts: 2055
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: sanity check

Postby cncdrive » Wed Oct 17, 2018 9:47 am

Dezsoe, why are you not happy with the results.
50% of the people are happy with this method and the others with the other.
E.g. Terry is happy with this one. :)
cncdrive
Site Admin
 
Posts: 4717
Joined: Tue Aug 12, 2014 11:17 pm

Next

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 8 guests