- Posts: 731
- Thank you received: 0
gmocappy clock
I thought about adding it like this:
forum.linuxcnc.org/38-general-linuxcnc-q...nce-for-axes?start=0
but it would perfect fit into the timer.
Instead of
And I think I'll add the elapsed time for the current part. To be resetted on pressing start.
Please Log in to join the conversation.
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 -
If you don't want to use expensive hardware for reading analog signals, I can make an offer to you.
I wrote a very basic modus client running on a PIC microcontroller that has analog and digital inputs. You can use it with the MB2HAL component for example connected by a serial to USB converter.
Please Log in to join the conversation.
I am working on timer.py to add Hal pins to set an alarm if limits are reached. First pin would be total run time to give a message machine needs maintenance, if that one works, it would be easy to add more alarm pin.
I was thinking about using the spare space for a part counter, but I do like also your idea of travel distance?
What to do?
Norbert
Please Log in to join the conversation.
Simply integrate the absolute velocity:
To get the real distance, the absolut value of the velocity vector has to be calculated first (sqrt(v_x² + v_y² + v_z²)), then integrated.
As you always have that value for displaying, you may could use this.
A use case for that would be to estimate the wear of the mill.
But for lubrication intervals I think it is also useful to have the separate travel distances for each axis.
If it is displayed in the ntb_setup area, there will be enough space for all that.
A value for "Time/travel since last lubrication" could also be useful.
Please Log in to join the conversation.
Adding the embedded tab as in previous post.
This one has the following hal pin:
As shown in the attached hal file you will need to set the periods for the time after you want the alarm like so:
In real machines you will sure set the time intervals longer, in my machine I set the machine time to 259200 and spindle time to 480
After that time periode the alarm pin will get high and will stay high until you set the corresponding timer.reset_alarm pin to high, do not forget to set it low again after you have done the maintenance or lube! Setting the reset pin high will clear the alarm an increment the elapsed_periods pin, so if you have done 10 lubes you may control the lube level to see if the use of oil is in between your limits or what ever you want to do with that information.
All values will be stored in a var file and reloaded on next start, machine pin after turning on the machine, spindle pin after turning on the spindle.
So what next?
- part counter
- travel distance
- anything else
And again you see, there is nothing impossible with gmoccapy and python. By the way this embedded tabs can also be included and axis and some other GUI.
So now I need testers and feed back
Norbert
Please Log in to join the conversation.
Please Log in to join the conversation.
But adding a label and writing a value as a first step failed. Can you give me please a hint what I did wrong?
It seems that the pins are not created and due to this error the vcp is not displayed.
Please Log in to join the conversation.
All Hal connections for an embedded tab must be done in the Hal file specified in the loading code (INI file command) in this case in timer.hal
Please watch that pins are not all ready connected in a previous Hal file.
Order of loading Hal files are
The order they are listed in the INI File
Then the postgui Hal file
than the embedded tabs Hal file.
I can not see if you glade file is correct, I am on a wrong computer
Norbert
Please Log in to join the conversation.
Sorry I didn't post that, that war clear I thought.newbynobi wrote: Where did you do the connection?
All Hal connections for an embedded tab must be done in the Hal file specified in the loading code (INI file command) in this case in timer.hal
I used your most recent timer.hal without the last four lines
and
Linuxcnc says that it can't find the pin named 'timer.periode_time_machine'.
I think without including timer_hu.py it showed at least the panel ( I'm on the wrong computer too :laugh: )
Please Log in to join the conversation.
timer.periode_time_machine
so your name is right.
there must be an other error too.
can you post your timer_hu.py file please
and the complete terminal output
Please Log in to join the conversation.
