Gmocappy fires relay twice

More
07 Sep 2019 16:13 - 07 Sep 2019 16:17 #144488 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


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

Could you post your hal files?


halui,machine-is-on is driving machine-is-on.


Hal File
Warning: Spoiler!


custom.hal
Warning: Spoiler!
Last edit: 07 Sep 2019 16:17 by bevins.

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

More
07 Sep 2019 19:40 #144492 by PCW
Replied by PCW on topic Gmocappy fires relay twice
Does your axis config use halui the same way?
What pokes halui.machine.on and halui.machine.off ?

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

More
07 Sep 2019 20:19 #144493 by dgarrett
Replied by dgarrett on topic Gmocappy fires relay twice
The userspace pin halui.machine.is-on is following
realtime motion pin motion.motion-enabled.
Some investigation shows this behavior with gmoccapy
has existed for a while -- it has probably just
never been reported.

The problematic code is likely in this function or
its triggers (2.8 branch):
github.com/LinuxCNC/linuxcnc/blob/fbd3f7...py/gmoccapy.py#L2296


Using configs/sim/gmoccapy/gmoccapy.ini, Pressing the Machine-On button:


Suggestion: file a bug report (issue) on github and/or notify Norbert
Attachments:
The following user(s) said Thank You: tommylight

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

More
08 Sep 2019 02:50 #144501 by bevins
Replied by bevins on topic Gmocappy fires relay twice

Does your axis config use halui the same way?
What pokes halui.machine.on and halui.machine.off ?


Yes it does. This basically a generic pncconf. I am just starting towork on the configs and I wanted the customer to use gmocappy.
I am really comfortable with Axis, so I am testing in axis and thenmodifying gmocappy config. I have two machine configs.

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

More
08 Sep 2019 03:04 - 08 Sep 2019 03:23 #144502 by bevins
Replied by bevins on topic Gmocappy fires relay twice

The userspace pin halui.machine.is-on is following
realtime motion pin motion.motion-enabled.
Some investigation shows this behavior with gmoccapy
has existed for a while -- it has probably just
never been reported.

The problematic code is likely in this function or
its triggers (2.8 branch):
github.com/LinuxCNC/linuxcnc/blob/fbd3f7...py/gmoccapy.py#L2296


Using configs/sim/gmoccapy/gmoccapy.ini, Pressing the Machine-On button:


What is triggering motion.motion-enable?

/EDIT nevermind I think I understand how it works. The function (on_tbtn_on_toggled) looks like it works. Must be in the triggers in the widgets.

Where can I create a bug report?
Last edit: 08 Sep 2019 03:23 by bevins.

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

More
08 Sep 2019 08:40 #144505 by cmorley

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

More
10 Sep 2019 14:56 #144706 by newbynobi
Hallo @ALL,

i am able to reproduce the behavior. so now is just to find the reason and bug fix that one.
I apologize for the inconvenience.

Norbert
The following user(s) said Thank You: bevins, tommylight

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

More
08 Jan 2020 20:14 #154343 by bevins
Replied by bevins on topic Gmocappy fires relay twice
Any headway on this issue?

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

More
31 Dec 2020 13:15 #193646 by newbynobi
I just tested this one with gmoccapy 3.1.0 (the latest release from 2.8 branch)

As far as I can see from hal scope, the behavior has been fixed.
Please test with latest 2.8 release and gmoccapy 3.1.0.

I will close the issue, if it has not been solved, please reopen it.

Norbert

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

Time to create page: 0.135 seconds
Powered by Kunena Forum