QtPyVCP Mill Touch V6

More
18 Dec 2019 20:24 #152878 by hottabich
Replied by hottabich on topic QtPyVCP Mill Touch V6
It will be very good. And is it possible to correct it so that the cutter rises on a pause? Thanks for attention.

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

More
18 Dec 2019 22:20 #152884 by Donb9261
Replied by Donb9261 on topic QtPyVCP Mill Touch V6
Using your example program.run:#<qLineEditName> results in the following:

Not sure where the second argument is coming from.

using print(program_start_line) prints >> #<line_number> Obviously not what one would expect. I would expect the value from the line edit to be returned.


Traceback (most recent call last):
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 96, in <lambda>
widget.clicked.connect(lambda: method(*args, **kwargs))
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/program_actions.py", line 84, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)

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

More
18 Dec 2019 23:09 #152887 by BigJohnT
Replied by BigJohnT on topic QtPyVCP Mill Touch V6

It will be very good. And is it possible to correct it so that the cutter rises on a pause? Thanks for attention.


That's not possible AFAIK because every situation is different.

JT

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

More
18 Dec 2019 23:10 #152888 by BigJohnT
Replied by BigJohnT on topic QtPyVCP Mill Touch V6

Using your example program.run:#<qLineEditName> results in the following:

Not sure where the second argument is coming from.

using print(program_start_line) prints >> #<line_number> Obviously not what one would expect. I would expect the value from the line edit to be returned.


Traceback (most recent call last):
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 96, in <lambda>
widget.clicked.connect(lambda: method(*args, **kwargs))
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/program_actions.py", line 84, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)


That is a syntax example... you need to use the name of a qlinedeit.

JT

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

More
18 Dec 2019 23:14 #152889 by Donb9261
Replied by Donb9261 on topic QtPyVCP Mill Touch V6
Lol. I did. That would have been the rookiest of all rookie mistakes. :)

I have my action set to: program.run:#<lineNumber>

My qlineedit is named lineNumber

prints #<LineNumber> No actual value from the entry sent just the text

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

More
19 Dec 2019 02:30 #152895 by Donb9261
Replied by Donb9261 on topic QtPyVCP Mill Touch V6
I think there is an issue with Qt 5.9.5 and using #<somewidget> as it is just passing the string and not grabbing the value from the widget. Thinking about it though it seems to only be actions and works fine with MCODES. Not sure. But I posted a work around.

Thanks John.

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

More
19 Dec 2019 02:35 #152896 by Donb9261
Replied by Donb9261 on topic QtPyVCP Mill Touch V6
Just tested probe_basic M6 function. Set T 1 and press M6. It works. So, I am at a loss. It seems to send the T#<main_tool_number> M6 fine. Else the UI would error on the T call. :unsure:

I will test some of the others to see if it is just program.run:line that is effected and walk it back from there.

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

More
19 Dec 2019 06:15 - 27 Dec 2019 08:10 #152898 by hottabich
Replied by hottabich on topic QtPyVCP Mill Touch V6
How to unlock spindle speed adjustment during program execution?
Last edit: 27 Dec 2019 08:10 by hottabich.

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

Moderators: KCJLcvette
Time to create page: 0.168 seconds
Powered by Kunena Forum