- Posts: 592
- Thank you received: 0
Couple questions about QTPYVCP
6 years 10 months ago #153068
by Leon82
Have you tried setting the button to checkable?
Replied by Leon82 on topic Couple questions about QTPYVCP
Gnevko wrote: Hi everyone
I am not sure if it's correct please for this question (sorry if not) but my be you can help me with the problem described hier: www.forum.linuxcnc.org/18-computer/38015-whb04b-4#153040
If I press an actionButton in the GUI with the following action: "machine.jog.axis:x,pos" than the machine change the mode from
Attachment not found
to
Attachment not found
and after that I can jog with MPG (WHB04B-4) as it should be. As soon I press one of macro buttons on MPG, the machine goes again in previous state (manual + joint) and I need to press an jog button again on GUI to become MPG work.
The question is, what happens exactly if I press the action button with "machine.jog.axis:x,pos"? Is these the possibility to avoid joint mode?
Have you tried setting the button to checkable?
Please Log in to join the conversation.
6 years 10 months ago #153069
by KCJ
Replied by KCJ on topic Couple questions about QTPYVCP
When you press the "machine.jog.axis:x,pos" action button it checks if the machine is in teleoperating mode (Cartesian space or "axis" mode) and changes to that mode it if it not. See here:
github.com/kcjengr/qtpyvcp/blob/1761babf...actions.py#L969-L971
If the MPG is connected to the "axis.n.jog-counts" pin and the machine is not in free (joint) mode, then the axis will not move. One solution might be to connect the jog counts to both the joint.n.jog-counts and the axis.n.jog-counts pins. This will cause the MPG to move the machine if it is in either teleop or free mode, and should be predictable if the machine has trivial kinematics.
EDIT: Another thing you need to check is that the machine is in manual mode before trying to jog. When you use the maco button it almost certainly switches the machine to MDI mode, you will have to switch it back manually.
If the MPG is connected to the "axis.n.jog-counts" pin and the machine is not in free (joint) mode, then the axis will not move. One solution might be to connect the jog counts to both the joint.n.jog-counts and the axis.n.jog-counts pins. This will cause the MPG to move the machine if it is in either teleop or free mode, and should be predictable if the machine has trivial kinematics.
EDIT: Another thing you need to check is that the machine is in manual mode before trying to jog. When you use the maco button it almost certainly switches the machine to MDI mode, you will have to switch it back manually.
Please Log in to join the conversation.
6 years 10 months ago #153071
by Gnevko
Replied by Gnevko on topic Couple questions about QTPYVCP
Thank you for quick response!
The MPG Driver always try to set the machine to manual mode before send a command to HAL (except auto mode of course). I spend the hole day to try debug and understand it
At the moment the jog-count connections looks like that:
EDIT: KCJ you are right, I connected joint.n.jog-counts, but also joint.n.jog-enable, joint.n.jog-scale and joint.n.jog-vel-mode and now it works!
The MPG Driver always try to set the machine to manual mode before send a command to HAL (except auto mode of course). I spend the hole day to try debug and understand it
At the moment the jog-count connections looks like that:
Code:
net pdnt.axis.0.jog-counts whb.axis.0.jog-counts ilowpass.jog.x.in
net pdnt.axis.1.jog-counts whb.axis.1.jog-counts ilowpass.jog.y.in
net pdnt.axis.2.jog-counts whb.axis.2.jog-counts ilowpass.jog.z.in
net pdnt.axis.3.jog-counts whb.axis.3.jog-counts ilowpass.jog.a.in
net pdnt.ilowpass.jog.0.jog-counts ilowpass.jog.x.out axis.x.jog-counts
net pdnt.ilowpass.jog.1.jog-counts ilowpass.jog.y.out axis.y.jog-counts
net pdnt.ilowpass.jog.2.jog-counts ilowpass.jog.z.out axis.z.jog-counts
net pdnt.ilowpass.jog.3.jog-counts ilowpass.jog.a.out axis.a.jog-count
EDIT: KCJ you are right, I connected joint.n.jog-counts, but also joint.n.jog-enable, joint.n.jog-scale and joint.n.jog-vel-mode and now it works!
Please Log in to join the conversation.
6 years 10 months ago #153296
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
Is it possible to make an action button perform 2 actions?
Like
set jog increment.01 ;set jog mode.incremental
Like
set jog increment.01 ;set jog mode.incremental
Please Log in to join the conversation.
6 years 10 months ago #153539
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
when i edit a file and save and go to run it doesn't always start at the top of the program.even if i click the cursor on line 1 and hit save
I may change run to run from line 1, unless i can set a signal to rewind the program
I may change run to run from line 1, unless i can set a signal to rewind the program
Please Log in to join the conversation.
6 years 9 months ago #153972
by hottabich
Replied by hottabich on topic Couple questions about QTPYVCP
Hello! Happy New Year everyone! I decided to make Qtpyvcp interface for linuxcnc. Based on Brender + mill_touch_v6 + probe_basic. Neither can I fix one error. Please help someone who can and if it's not difficult. Files are attached. Thank you in advance. In the attached file, we’ll remove the hobby_mill error L, two L does not solve the problem.
Скачать
Скачать
Please Log in to join the conversation.
6 years 9 months ago #153979
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
It's not finding the mdi handler.
You may have to tell it where to import it from.
I had to do it to get an image to work in the background after qcompile.
You may have to tell it where to import it from.
I had to do it to get an image to work in the background after qcompile.
Please Log in to join the conversation.
6 years 9 months ago #154082
by hottabich
Replied by hottabich on topic Couple questions about QTPYVCP
Download the file, unzip it to your home directory and install according to the attached instructions. Run the simulator and you will see everything. Thanks for attention.
Please Log in to join the conversation.
6 years 9 months ago #154553
by hottabich
Replied by hottabich on topic Couple questions about QTPYVCP
I will supplement my question. In the home directory there are two identical VCP jura and Hobby Mill. Hobby Mill works when I prescribe import jura.mdi_handler as mdiHandler if import hobby_mill.mdi_handler, no named module. For some reason, he sees from a neighboring directory. Can this be fixed somehow? Without a directory, jura does not work.
Please Log in to join the conversation.
Time to create page: 0.104 seconds
