- Posts: 18
- Thank you received: 0
gmocappy clock
5 years 11 months ago #190109
by jasen
gmocappy clock was created by jasen
Hi , I would like to add a clock showing the cycle run in gmocappy.
any sugestions? I add this to the postgui hal file , and the pins works just fine. What I need it to add it at the top of the current gnocappy clock , just under the user tab.
# -- hooking up cycle timer
loadrt time
#loadrt not
addf time.0 servo-thread
addf not.5 servo-thread
net prog-running not.5.in <= halui.program.is-idle
net cycle-timer time.0.start <= not.5.out
net cycle-timer-pause time.0.pause <= halui.program.is-paused
#net cycle-seconds pyvcp.time-seconds <= time.0.seconds
#net cycle-minutes pyvcp.time-minutes <= time.0.minutes
#net cycle-hours pyvcp.time-hours <= time.0.hours
any sugestions? I add this to the postgui hal file , and the pins works just fine. What I need it to add it at the top of the current gnocappy clock , just under the user tab.
# -- hooking up cycle timer
loadrt time
#loadrt not
addf time.0 servo-thread
addf not.5 servo-thread
net prog-running not.5.in <= halui.program.is-idle
net cycle-timer time.0.start <= not.5.out
net cycle-timer-pause time.0.pause <= halui.program.is-paused
#net cycle-seconds pyvcp.time-seconds <= time.0.seconds
#net cycle-minutes pyvcp.time-minutes <= time.0.minutes
#net cycle-hours pyvcp.time-hours <= time.0.hours
Please Log in to join the conversation.
5 years 9 months ago #193654
by newbynobi
Replied by newbynobi on topic gmocappy clock
Halo jasen,
please find attached a modified glade file. I added three labels:
gmoccapy.lbl_hours
gmoccapy.lbl_minutes
gmoccapy.lbl_seconds
Is this what you looked for?
This glade file will require you to use the latest 2.8 branch from rip environment. Please update to the latest 2,8 release, and than replace the gmoccapy glade file with the attached one.
place it in linuxcnc-dev/src/emc/usr_intf/gmoccapy and replace the one from the rip environment.
do a make and try if that is what you want.
Norbert
please find attached a modified glade file. I added three labels:
gmoccapy.lbl_hours
gmoccapy.lbl_minutes
gmoccapy.lbl_seconds
Is this what you looked for?
This glade file will require you to use the latest 2.8 branch from rip environment. Please update to the latest 2,8 release, and than replace the gmoccapy glade file with the attached one.
place it in linuxcnc-dev/src/emc/usr_intf/gmoccapy and replace the one from the rip environment.
do a make and try if that is what you want.
Norbert
Attachment not found
Please Log in to join the conversation.
5 years 9 months ago #193710
by pippin88
Replied by pippin88 on topic gmocappy clock
Norbert - I like this. Can it be made standard in gmocappy please?
Please Log in to join the conversation.
5 years 9 months ago #193722
by newbynobi
Replied by newbynobi on topic gmocappy clock
I have been thinking a while to include timers for
- machine on
- Program running
- spindle running
but I do not think the position of the timers over the clock on the right button box is the correct place for that. IMHO it should be placed on the settings page.
If I do include such a feature, it will be in a new GUI based on python 3 and GTK3, not in gmoccapy.
If you like the timers, just make a glade panel an include that one as a custom panel.
Hope you do understand, that I will try to get my work concentrated on the new python3 version.
Norbert
- machine on
- Program running
- spindle running
but I do not think the position of the timers over the clock on the right button box is the correct place for that. IMHO it should be placed on the settings page.
If I do include such a feature, it will be in a new GUI based on python 3 and GTK3, not in gmoccapy.
If you like the timers, just make a glade panel an include that one as a custom panel.
Hope you do understand, that I will try to get my work concentrated on the new python3 version.
Norbert
Please Log in to join the conversation.
5 years 9 months ago #193778
by jasen
Replied by jasen on topic gmocappy clock
Great , thats what was needed. Many thanks Norbert.
BTW , I notice that the speed controls dont work under touch screen displays , I mean the sliders , still need to use the + and _ buttons , and in many cases you need fast acction. Is there a way to make the sliders working with mouse or touch , not only the + and -
BTW , I notice that the speed controls dont work under touch screen displays , I mean the sliders , still need to use the + and _ buttons , and in many cases you need fast acction. Is there a way to make the sliders working with mouse or touch , not only the + and -
Please Log in to join the conversation.
5 years 9 months ago #193785
by jasen
Replied by jasen on topic gmocappy clock
Norbert , works great.
Jasen
Jasen
Attachment not found
Please Log in to join the conversation.
5 years 9 months ago #194043
by newbynobi
Jasen, I do know that. The sliders are mostly designed to be used with analog input signals, like potentiometers or also with an MPG input signal. As soon as you connect a analog signal to the gmoccapy hal signal for the slider, the + and - Button are gone and a fast reaction is very well working.
I have been asked several times to ad a handle to that widgets to be able to move them fast with a mouse or touch screen, but I have decided not to put effort in it, to get more time on the python 3 part of linuxcnc.
Norbert
Replied by newbynobi on topic gmocappy clock
jasen wrote: Great , thats what was needed. Many thanks Norbert.
BTW , I notice that the speed controls dont work under touch screen displays , I mean the sliders , still need to use the + and _ buttons , and in many cases you need fast acction. Is there a way to make the sliders working with mouse or touch , not only the + and -
Jasen, I do know that. The sliders are mostly designed to be used with analog input signals, like potentiometers or also with an MPG input signal. As soon as you connect a analog signal to the gmoccapy hal signal for the slider, the + and - Button are gone and a fast reaction is very well working.
I have been asked several times to ad a handle to that widgets to be able to move them fast with a mouse or touch screen, but I have decided not to put effort in it, to get more time on the python 3 part of linuxcnc.
Norbert
Please Log in to join the conversation.
5 years 9 months ago #194057
by jasen
Replied by jasen on topic gmocappy clock
ok. Maybe is time to make a small panel with selectors under the monitor. In any case it will handle the also the estop buton.
thanks.
thanks.
Please Log in to join the conversation.
5 years 9 months ago #194076
by newbynobi
Replied by newbynobi on topic gmocappy clock
I use a pendant, based on a Mesa 7i73 connected to a 7i76E. I can plug my control panel to all 3 of my machines, just connecting power and the Ethernet cable. So there is no need for 3 control panels and the space.
I am pretty sure you will be able to make a lovely design, based on your own hardware?
If you like, I can post fotos and connection sheets.
Norbert
I am pretty sure you will be able to make a lovely design, based on your own hardware?
If you like, I can post fotos and connection sheets.
Norbert
Please Log in to join the conversation.
Time to create page: 0.153 seconds
