Gmocappy fires relay twice

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 03:34 - 07 Sep 2019 03:43 #144446 by bevins
Gmocappy fires relay twice was created by bevins
This is a weird one. Don't know what I am doing wrong. Really basic stuff. I am firing three relays with machine-is-on. They are used for various things but a major one is drive enable. The relays energize twice with Gmocappy. They click on, off then on again when I turn on the machine.

In Axis they don't do that. They just fire once.

Any ideas?
Last edit: 07 Sep 2019 03:43 by bevins.

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

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 03:38 - 07 Sep 2019 03:42 #144447 by bevins
Replied by bevins on topic Gmocappy fires relay twice
Here is a video showing this behavior.




#Gmocappy custom.hal
net machine-is-on hm2_7i92.0.7i77.0.0.output-00 hm2_7i92.0.7i77.0.0.output-01 hm2_7i92.0.7i77.0.0.output-02

#Axis custom.hal
net machine-is-on hm2_7i92.0.7i77.0.0.output-00 hm2_7i92.0.7i77.0.0.output-01 hm2_7i92.0.7i77.0.0.output-02


Last edit: 07 Sep 2019 03:42 by bevins.

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

More
07 Sep 2019 06:49 #144458 by cmorley
Replied by cmorley on topic Gmocappy fires relay twice
what drives the signal 'machine-is-on'?

Chris M

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

More
07 Sep 2019 11:42 #144469 by Arpad
Replied by Arpad on topic Gmocappy fires relay twice
I have the same problem after gmocappy 2.334 version

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

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 12:27 - 07 Sep 2019 16:41 #144470 by bevins
Replied by bevins on topic Gmocappy fires relay twice

what drives the signal 'machine-is-on'?

Chris M


When you press the on button in the gui.

Gmocappy version 3.08

/EDIT Sorry, halui,machine-is-on is driving machine-is-on.
Last edit: 07 Sep 2019 16:41 by bevins.

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

More
07 Sep 2019 12:57 #144472 by JohnnyCNC
Replied by JohnnyCNC on topic Gmocappy fires relay twice
I had a similar problem in Axis when it was starting up. I used a debounce to solve the problem.
#This stops the relay that controls the 48volts from briefly clicking on while LCNC is starting.
net machine-ison halui.machine.is-on => vc-p4s.machine.ison debounce.1.0.in
#                               SSR 48Volt                    DYN4 Power
net mach-on debounce.1.0.out => hm2_5i25.0.7i76.0.0.output-02 hm2_5i25.0.7i76.0.0.output-04

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

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 13:27 - 07 Sep 2019 13:53 #144473 by bevins
Replied by bevins on topic Gmocappy fires relay twice

I had a similar problem in Axis when it was starting up. I used a debounce to solve the problem.
#This stops the relay that controls the 48volts from briefly clicking on while LCNC is starting.
net machine-ison halui.machine.is-on => vc-p4s.machine.ison debounce.1.0.in
#                               SSR 48Volt                    DYN4 Power
net mach-on debounce.1.0.out => hm2_5i25.0.7i76.0.0.output-02 hm2_5i25.0.7i76.0.0.output-04


I am pressing a button in the gui. There should be no debounce problem there. IF there is it should be dealt with in the code for the gui.

I tried your example and that didnt work.
Last edit: 07 Sep 2019 13:53 by bevins.

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

More
07 Sep 2019 15:33 #144484 by PCW
Replied by PCW on topic Gmocappy fires relay twice

what drives the signal 'machine-is-on'?

Chris M


When you press the on button in the gui.

Gmocappy version 3.08


I think what Chris meant is: what drives the 'machine-is-on' signal in the hal file

Could you post your hal files?
The following user(s) said Thank You: bevins

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

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 15:34 #144485 by bevins
Replied by bevins on topic Gmocappy fires relay twice
When hitting estop it clicks twice also.

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

  • bevins
  • bevins's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
07 Sep 2019 15:58 - 07 Sep 2019 16:01 #144486 by bevins
Replied by bevins on topic Gmocappy fires relay twice
Axis Hal Scope when pressing machine-on button in gui.



Gmocappy Hal Scope when pressing machine-on button in gui.

Attachments:
Last edit: 07 Sep 2019 16:01 by bevins.

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

Time to create page: 0.323 seconds
Powered by Kunena Forum