Custom timed notifications
- Dave2024
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 57
- Thank you received: 10
07 Jun 2025 02:00 #329855
by Dave2024
Custom timed notifications was created by Dave2024
How’s it going. So I recently switched over to GMOCCAPY from the traditional Axis interface. I have to say it looks much nicer and I like how tool touchoff and setting g54 home positions is much more intuitive. In Axis I always made the mistake of not selecting the correct joint when doing touchoff and accidentally set my tool length offset as a X or Y offset shift then go crash the machine during a run. Anyways besides all that, I’m now wanting to go to the next level and start customizing the GMOCCAPY interface. I want to start out with something simple like a machine running timer alert. This would be an alert that tells me to oil the ways after 10hrs of runtime. This way the oiling is perfect and scheduled saving on way oil. Stuffs not cheap lol What I’m trying to make happen is a function that’s tied to the run button that then activates a timer and stores the time running in a file on the hard drive. When the total time running = 10hrs reset the time and display a message saying: “The machine has been running for 10hrs now. It is time to Oil the ways.” Where should I start on this? I know there’s a hal.program-is-run and a time.N.start. Then what do I do? time.N.start <= hal.program-is-run? Sorry I’ve never programed python much but have some C#, Java, VB, SQL, C++,and XLM skills. My collage sucked and never let us program in Python.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20387
- Thank you received: 6933
07 Jun 2025 02:11 #329856
by tommylight
Replied by tommylight on topic Custom timed notifications
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds