We allow 'stacking' of MDI commands - is it OK ???

More
2 years 9 months ago #289743 by zz912
Is there any documentation for OpenPnP and Linuxcncrsh?

I agree with you that feeding the commands one by one should be handled by the GUI.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289747 by blazini36
Not via linuxcncrsh but a server based on it with some extended functions. It was discussed here:
forum.linuxcnc.org/38-general-linuxcnc-q...not-possible-via-nml

And it exists here with the documentation
github.com/iforce2d/linuxcnc-gcode-server


I built a PnP and I was working on getting it all set up with this and got sidetracked. OpenPnP is a PIA, I did get Linuxcnc and the server all set up with some movement in OpenPnP but its a ways off from being functional.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289757 by snowgoer540

@snowgoer540 - 

Your earlier response prompted me to read the NIST rs274 document, and both it and LCNC's manual have this to say:

(rs274 v3 - 3.6.1)
Code:
Note: It is OK to program M0 and M1 in MDI mode, but the effect will probably not be noticeable, because normal behavior in MDI mode is to stop after each line of input anyway.


Does this jibe with your understanding of how MDI is working?  The NIST document doesn't discuss external python commands, of course.

Morning fellas!

I did see that, but I didn't take that to mean that stacking is unallowable. That does - at least high level - describe the behavior of the MDI, stacked or otherwise. Each line is executed and the motion stops. It just so happens if there's another command queued, it moves on and executes that. Thus rendering M0 or M1 pointless since any motion would have already stopped when it gets to it. Sort of like I said earlier, if you want it to have no more motion after a command, don't send any more :)

I say "at least high level" because stacked gcode commands will be subject to G64 path blending, which shows that the interpreter is looking ahead at "stacked" MDI commands. Which to me, is evidence that multiple MDI commands was planned for (at the core LinuxCNC level) and is therefore perfectly valid.

I guess the thing I wonder is - the capability exists and is even planned for, so why is that a problem? If you don't want it to continually execute MDI commands is not the solution then to refrain from entering more than one at a time? I'm not sure what problem removing stacked commands would be solving? It seems to me that the perception that this is "wrong" comes from the knowledge of what other controllers do and do not allow.
The following user(s) said Thank You: spumco

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289759 by snowgoer540

This depends on whether the MDI widget uses more GUI than Gmoccapy. If yes, please move. I didn't know exactly where to put this thread. I also considered the GladeVCP topic, but I don't know if the MDI widget is made in glade.

If you're speaking specifically to Gmoccapy, this is the right place.. I was just making sure because of the open issue referenced in the other thread.

The MDI implementation in Gmoccapy is specific to Gmoccapy.

If I were a rentier and I didn't have to go to work, I would study programming at university.


Work sure does get in the way of a lot of fun things :(

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #289761 by blazini36

@snowgoer540 - 

Your earlier response prompted me to read the NIST rs274 document, and both it and LCNC's manual have this to say:

(rs274 v3 - 3.6.1)
Code:
Note: It is OK to program M0 and M1 in MDI mode, but the effect will probably not be noticeable, because normal behavior in MDI mode is to stop after each line of input anyway. Does this jibe with your understanding of how MDI is working?  The NIST document doesn't discuss external python commands, of course. Morning fellas! I did see that, but I didn't take that to mean that stacking is unallowable. That does - at least high level - describe the behavior of the MDI, stacked or otherwise. Each line is executed and the motion stops. It just so happens if there's another command queued, it moves on and executes that. Thus rendering M0 or M1 pointless since any motion would have already stopped when it gets to it. Sort of like I said earlier, if you want it to have no more motion after a command, don't send any more :) I say "at least high level" because stacked gcode commands will be subject to G64 path blending, which shows that the interpreter is looking ahead at "stacked" MDI commands. Which to me, is evidence that multiple MDI commands was planned for (at the core LinuxCNC level) and is therefore perfectly valid. I guess the thing I wonder is - the capability exists and is even planned for, so why is that a problem? If you don't want it to continually execute MDI commands is not the solution then to refrain from entering more than one at a time? I'm not sure what problem removing stacked commands would be solving? It seems to me that the perception that this is "wrong" comes from the knowledge of what other controllers do and do not allow.
 
That's pretty much what I said, this behavior is likely intended but not well developed for external command feeding. The question here I suppose is "Is this useful/wanted in Gmoccapy?" Probably not, so Gmoccapy should take some steps to prevent it. It's easy to say "just don't do it" but fat fingers and touchscreens.....

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #289765 by snowgoer540

That's pretty much what I said, this behavior is likely intended but not well developed for external command feeding. The question here I suppose is "Is this useful/wanted in Gmoccapy?" Probably not, so Gmoccapy should take some steps to prevent it.

I know a lot of people use Gmoccapy. I'd be hesitant to change long-standing behavior/functionality that I'm not sure I've ever seen anyone else describe as a problem.

It's easy to say "just don't do it" but fat fingers and touchscreens.....


I'm not understanding how removing a GUI's ability to stack MDI commands will prevent user input error caused by fat fingers and touchscreens. That can/will happen entering one line at a time.
Last edit: 2 years 9 months ago by snowgoer540.

Please Log in or Create an account to join the conversation.

Moderators: newbynobi, HansU
Time to create page: 0.267 seconds
Powered by Kunena Forum