- Posts: 403
- Thank you received: 75
Gmoccapy - A new screen for linuxcnc
- cncnoob1979
- Offline
- Platinum Member
-
Thanks for the reply, Sorry I haven't responded as of yet. I will try to switch to a button to see if I get the same behavior. Where is the logic performed for Gmoccapy in reference to the E-Stop. I really like the design and will almost certainly be using this for my frontend.
I am replacing the computer I use to control the mill. I had a few complete freezes this past weekend. However I don't believe that this will be the culprit.
Did I mention I really like Gmoccapy? Also do you believe it will be possible to embed Linuxcnc-Features into a user tab? I have tried but failed at the attempt so far.
Thanks!
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
-
- Posts: 1931
- Thank you received: 394
Look in the gmoccapy.py file for on_hal_status as entry point.
Norbert
Please Log in or Create an account to join the conversation.
- Robban
- Offline
- Junior Member
-
- Posts: 30
- Thank you received: 2
The gearchange tab is connected to the postgui hal with this code that runs an "M" file that changes the scale and offset in for the pwm gen.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
-
- Posts: 1931
- Thank you received: 394
-c = the name of the component
-u = a python handler
-H a user hal file, please connect here
Norbert
Please Log in or Create an account to join the conversation.
- lexxa
- Offline
- New Member
-
- Posts: 3
- Thank you received: 0
1) I have a problem with halui.spindle.forward/reverse/stop and gmoccapy.
in mu postgui_halfile.hal
When spindle is stopped and I press "hw_sp_fwd", spindle starts to cw. When spindle is running and I pressing "hw_sp_rev", spindle stops, but software button spindle CCW is active and target speed of spindle equal of zero.
When spindle is running and I pressing "hw_sp_stop" spindle stops through time
After some cycle pressing of hw button stop-rev spindle starts with reverse direction yet.
When I run the spindle from gmoccapy sowtware button everything works as it should.
When changing direction, the output voltage change the sign to target voltage for a short time and then output voltage is set to zero.
2) When in list of G code is G95 and F0.1. The seted value of feed is zero. When F1.2 setted value of feed is 1.
I corrected it:
How add hal pins to correct control the spindle (and coolant, mist)?
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
-
- Posts: 1931
- Thank you received: 394
) I have a problem with halui.spindle.forward/reverse/stop and gmoccapy.
in mu postgui_halfile.hal
net hw_sp_fwd halui.spindle.forward hm2_5i25.0.7i70.0.2.input-16
net hw_sp_stop halui.spindle.stop hm2_5i25.0.7i70.0.2.input-15
net hw_sp_rev halui.spindle.reverse hm2_5i25.0.7i70.0.2.input-14
When spindle is stopped and I press "hw_sp_fwd", spindle starts to cw. When spindle is running and I pressing "hw_sp_rev", spindle stops, but software button spindle CCW is active and target speed of spindle equal of zero.
When spindle is running and I pressing "hw_sp_stop" spindle stops through time
After some cycle pressing of hw button stop-rev spindle starts with reverse direction yet.
When I run the spindle from gmoccapy sowtware button everything works as it should.
When changing direction, the output voltage change the sign to target voltage for a short time and then output voltage is set to zero.
I am pretty sure, that that is caused due to non perfect Hal connections.
if you do:
setp halui.spindle.forward 1
setp haluie.spindle.stop 1
setp halui.spindle.reverse 1
you will get problems, because the halui pin do only react on getting high.
setp halui.spindle.forward 1
setp halui.spindle.forward 0
setp haluie.spindle.stop 1
setp halui.spindle.forward 0
setp halui.spindle.reverse 1
setp halui.spindle.reverse 0
will work. Do you use momentary switches?
I just tested on gmoccapy 1.6.0 and if I enter in MDI G95 F0.1 I do get F0.1 and if I enter G95 F1.2 I get F1.22) When in list of G code is G95 and F0.1. The seted value of feed is zero. When F1.2 setted value of feed is 1.
I tested in metric and imperial units.
Or do you refer to the F value in active gcode?
Please check from MDI and tell me if that does work.
What version of gmoccapy do you use?
Norbert
Please Log in or Create an account to join the conversation.