- Posts: 425
- Thank you received: 81
qtvcp issues
- auto-mation-assist
- Offline
- Platinum Member
-
Less
More
7 years 9 months ago #124223
by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
I forgot to add:
Can someone explain to me what the numbers in these mean.
Issuing EMC_TASK_SET_MODE -- ( +504,+24, +20, +1,)
Can someone explain to me what the numbers in these mean.
Issuing EMC_TASK_SET_MODE -- ( +504,+24, +20, +1,)
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Platinum Member
-
Less
More
- Posts: 1931
- Thank you received: 394
7 years 9 months ago #124224
by newbynobi
Replied by newbynobi on topic qtvcp issues
Does your way also work correct, if no movement is involved?
What if we just send a G4 P1 or M61 Q2 or just a (MSG, Hallo world)
I had Problems with that.
Norbert
What if we just send a G4 P1 or M61 Q2 or just a (MSG, Hallo world)
I had Problems with that.
Norbert
Please Log in or Create an account to join the conversation.
- KCJ
- Offline
- Platinum Member
-
Less
More
- Posts: 328
- Thank you received: 267
7 years 9 months ago #124225
by KCJ
Replied by KCJ on topic qtvcp issues
In QtPyVCP I use a work around that is very similar to what Norbert described to reset the mode after an MDI command. It seems to work well. Here is the code if it might be helpful:
github.com/kcjengr/qtpyvcp/blob/master/q...hine_actions.py#L131
github.com/kcjengr/qtpyvcp/blob/master/q...hine_actions.py#L131
Please Log in or Create an account to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
Less
More
- Posts: 425
- Thank you received: 81
7 years 9 months ago - 7 years 9 months ago #124226
by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
I will have to check.
It should work if the command was sent by one of the push buttons that sets a flag,
and if the task_ mode is 3 (mdi),
and if the inpos (in position) status is True.
I would think that all of those would be valid under the conditions you describe. But I will check to be sure.
I forgot to mention in my earlier posts that In the handler that I have this commented out.
# from qtvcp.widgets.gcode_editor import GcodeEditor as GCODE
It should work if the command was sent by one of the push buttons that sets a flag,
and if the task_ mode is 3 (mdi),
and if the inpos (in position) status is True.
I would think that all of those would be valid under the conditions you describe. But I will check to be sure.
I forgot to mention in my earlier posts that In the handler that I have this commented out.
# from qtvcp.widgets.gcode_editor import GcodeEditor as GCODE
Last edit: 7 years 9 months ago by auto-mation-assist.
Please Log in or Create an account to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
Less
More
- Posts: 425
- Thank you received: 81
7 years 9 months ago #124227
by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
Ok great, every bit of information is helpfull.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
7 years 9 months ago #124228
by cmorley
Replied by cmorley on topic qtvcp issues
There is code in the ACTION library that should cover mode changes back and forth.
ACTION.ensure_mode(modes)
only changes modes if required, returns: whether the mode changed, and the old mode, so you can return it to the same mode.
No sense in reinventing the wheel. If the code doesn't quite suit what you need I am certainly willing to add code to cover common requirements.
Chris M
ACTION.ensure_mode(modes)
only changes modes if required, returns: whether the mode changed, and the old mode, so you can return it to the same mode.
No sense in reinventing the wheel. If the code doesn't quite suit what you need I am certainly willing to add code to cover common requirements.
Chris M
The following user(s) said Thank You: KCJ
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.199 seconds