System date/time within HAL

More
21 Dec 2025 13:15 #340368 by Ritterchen
System date/time within HAL was created by Ritterchen
Hi together,
I am building a central lubrication system for my machine. The existing ones are mainly based on oil and hard-ways so run on a relatively fast cycle of min/ a few meters. See here www.forum.linuxcnc.org/49-basic-configur...-lube-time-component

My question is if there is a way to obtain the system date and time to build a function to run the lubrication e.g. once a week?

If there is a way to have the date in HAL I think its easy to build a routine with a written settings parameter of the last execution and and the digital input feedback from the SSV sensor.

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

More
27 Dec 2025 18:10 #340592 by NWE
Replied by NWE on topic System date/time within HAL
Did you take a look at userspace python hal components? Using that you can create hal pins within a python program. As far as I know, you can easily import time and use it. It will just not be running in the realtime kernel. For a central lubrication system I doubt that would be a problem.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum