E-stop button in PyQtVCP

More
02 Feb 2021 21:55 #197481 by aleksamc
I added E-stop button from the www.qtpyvcp.com/tutorials/basic_vcp/basic_vcp_03.htmltutorial
As ActionButton > ActionName="machine.estop.toggle"
In simulation it worked fine))

But now I want to transmit it to real machine:
I receive E-stop signal from classiclader-out, so I added in postgui.hal
net estop-ext classicladder.0.out-00 =>  iocontrol.0.emc-enable-in
In default axis gui it works fine.
But in my PyQtVCP it doesn't,
because my ActionButton > ActionName="machine.power.toggle" is deactivated.
I don't understand what problem is and what way to work in.
I added my hal files in another thread, Classic Lader doesn't run E-stop

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

More
02 Feb 2021 22:13 #197485 by FranseFrikandel
It is a bit unclear to me, but as I understand it you have 2 buttons, one linked to machine.estop.toggle and one linked to machine.power.toggle, right?

You can only use machine.power.toggle once machine.estop.toggle button has been enabled.

Also try setting both machine.power.toggle and machine.estop.toggle buttons as a checkable under the QAbstractButton class if they are not already.

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

More
03 Feb 2021 08:57 #197525 by aleksamc
Replied by aleksamc on topic E-stop button in PyQtVCP
I have estop bit that is connected to iocontrol.0.emc-enable-in and it's TRUE.
But bit iocontrol.0.user-enable-out is FALSE and it's block my POWER button.

In axis GUI is everything fine. But my custom interface is not working.
"chackeble" doesn't help
The following user(s) said Thank You: Lcvette

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

More
03 Feb 2021 10:04 #197532 by aleksamc
Replied by aleksamc on topic E-stop button in PyQtVCP
I solved the problem.

Problem was that in my ini file was wrong pass to Mcode remap commands. GUI gives me error messege "error opening file" but I didn't anderstood what file is. So when I found problem in ini file, everithing workd fine
The following user(s) said Thank You: Lcvette

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

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