gmocappy clock

More
5 years 11 months ago - 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
Last edit: 5 years 11 months ago by jasen.

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

More
5 years 10 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

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

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

More
5 years 10 months ago - 5 years 10 months ago #193710 by pippin88
Replied by pippin88 on topic gmocappy clock
Norbert - I like this. Can it be made standard in gmocappy please?
Last edit: 5 years 10 months ago by pippin88.

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

More
5 years 10 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
The following user(s) said Thank You: HalaszAttila, ikkuh

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

More
5 years 10 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 -

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

More
5 years 9 months ago #193785 by jasen
Replied by jasen on topic gmocappy clock
Norbert , works great.
Jasen

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

Moderators: newbynobi, HansU
Time to create page: 0.417 seconds
Powered by Kunena Forum