Сustomization QTvcp

More
14 May 2020 04:00 - 14 May 2020 04:35 #167701 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Thank! Everything is working. Thanks to you, I realized my dream! I created macros return.ngc allowing after stopping the program to move the tool on the table and go back turn on the spindle at a given speed, and set
feed rate. For complete happiness is not enough RUN FROM HERE according to the algorithm given in the archive. I ate but lacked knowledge. Tell me please if it is possible and you will have a free minute.
Attachments:
Last edit: 14 May 2020 04:35 by hottabich.

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

More
14 May 2020 16:52 #167761 by cmorley
Replied by cmorley on topic Сustomization QTvcp
You can set spindle running in MDI and then run from line should keep that spindle setting.
I tried setting the feedrate in MDI but it didn't seem to work - it may be a linuxcnc bug.

You could write a function that sets the spindle with a MDI command then calls run-from-line.

Usually one selects the line in the gcode_display widget.

Please be specific about what doesn't work.


Chris
The following user(s) said Thank You: hottabich

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

More
14 May 2020 19:34 - 14 May 2020 19:37 #167778 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Everything works great. Please open the file from the archive return.ngc and you will see what it is for. File from G54 x0, y0, z0 returns tool to point program stop (the milling cutter has broken, it is necessary to clean it ....) sets the feedrate, starts the spindle at the set speed and lowers it after a pause Zxx tool. All data is written to the Macro mdi_touchy section immediately after stop. And after that you need to go from the break line (the line number remembers my interface in line-number.log). But looking for the right line is not soon. Now, if I could beat the ability to register the line number in the Line window. As an option, Setup From Here from the archive. But to implement it in Qtvcp will not work. Something like this. After the update, the load dialog does not close file after cancel the window of the file . Linuxcnc 2.9.0~pre0.2047
Attachments:
Last edit: 14 May 2020 19:37 by hottabich.

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

More
14 May 2020 20:09 #167781 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I'm having a bit of trouble understanding...

But looking for the right line is not soon.


I think you mean you are getting the wrong line logged. Yes this is a known problem with linuxcnc - there is currently no work around.

After the update, the load dialog does not close file after cancel the window of the file


Oh oops ! I'll fix that soon. Thanks.

Chris
The following user(s) said Thank You: hottabich

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

More
14 May 2020 20:32 - 14 May 2020 20:40 #167785 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Thank you for the attention! It’s really hard for me to communicate my messages with Google translator. Here is the macro and Run from here like mine in qtpyvcp. Very comfortable and very bistro to go from the line. The macro works in mdi touch.
Attachments:
Last edit: 14 May 2020 20:40 by hottabich.

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

More
14 May 2020 22:28 #167790 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Yes I'm sure it is difficult to understand me too with Google translate.

How do you wish to enter the line number to start from?
Do you wish to enter it in editbox widget?

Your PyQtvcp example seems to have a box to enter the line number in.
Is that what you want?

Chris
The following user(s) said Thank You: hottabich

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

More
15 May 2020 03:54 - 15 May 2020 04:00 #167806 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Your PyQtvcp example seems to have a box to enter the line number in.
Is that what you want? ---- YES! Yes - forum.linuxcnc.org/qtpyvcp/38017-qtpvcp-...around-run-from-line Or Yes - forum.linuxcnc.org/qtpyvcp/38131-qtpyvcp...-program-step-solved. Launch Qtdragon with my files from post # 167701 and you will see everything. Surprisingly, I understand you perfectly! Entering a line number takes too much time in large files.
Attachments:
Last edit: 15 May 2020 04:00 by hottabich.

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

More
15 May 2020 05:04 #167809 by cmorley
Replied by cmorley on topic Сustomization QTvcp
ok i think I understand now - sorry it took so long!

add a linedit widget - I'll call it runFromLineEdit
add a stateEnableGridLayout, set properties: is_on_status and is_idle_status
add a PushButton into the stateEnableGridLayout - I'll call it runFromLineButton

using Designer add the signal clicked() from the PushButton to the form calling function runFromLineClicked

in the handler file add under init_widgets(self):
        self.w.runFromLineEdit.setValidator( QtGui.QIntValidator())

in the handler file under #CALLBACKS FROM FORM#
    def runFromLineClicked(self):
        text = self.w.runFromLineEdit.text()
        if text !='':
            ACTION.RUN(line = int(text))

Hopefully that should give you a line edit that you can only put numbers into and pressing the button will run the program from that line.

Chris
The following user(s) said Thank You: hottabich

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

More
15 May 2020 06:23 - 15 May 2020 06:54 #167811 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Something with Designer. I can not change the name of the object. Sorry this is my problem.
Last edit: 15 May 2020 06:54 by hottabich.

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

More
15 May 2020 06:29 #167812 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Do you have another object named the same in the screen?
The name is not important other then it must be the same in designer and the handler file.
You can use the default name if you like.
The following user(s) said Thank You: hottabich

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

Moderators: cmorley
Time to create page: 0.127 seconds
Powered by Kunena Forum