E-stop button in PyQtVCP
02 Feb 2021 21:55 #197481
by aleksamc
E-stop button in PyQtVCP was created 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.halIn 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
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
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.
- FranseFrikandel
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 2
02 Feb 2021 22:13 #197485
by FranseFrikandel
Replied by FranseFrikandel on topic E-stop button in PyQtVCP
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.
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.
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
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.
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
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.
Time to create page: 0.113 seconds