multiple MDI commands in a VCP Action MDI widget?

More
25 Jun 2015 22:14 #60128 by tome
Is it possible to put multiple MDI commands in a VCP Action MDI widget in Glade? If I want to have a tool selection button it might do:
G53 X0
M6 T1 G43

Commas don't work, and putting multiple on a line didn't seem to work, hitting return doesn't give me another line...
-Tom

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

More
26 Jun 2015 15:03 #60149 by ArcEye
There are Action MDI widgets and MDI History widgets, but the basic working sequence of Linuxcnc is not changed.

You cannot send a MDI command whilst another one is still being executed.

Axis gives the appearence that you can, because it allows you to stack several commands in a history widget, but in fact it calls c.wait_complete() between them
and does not send the second until the first has completed.

If you want to send several commands in one go from a button press, write a sub-routine file that contains them and call that

eg
o<toolmove> sub
G53 X0
M6 T1 G43
o<toolmove> endsub

and call that sub from the MDI widget

o<toolmove> call

regards

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

More
26 Jun 2015 19:01 #60156 by tome
I see, I did assume (based on Axis behavior) that you could just send them one after another and Linuxcnc did the right thing. Thanks ArcEye.
-Tom

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

Moderators: HansU
Time to create page: 0.273 seconds
Powered by Kunena Forum