Timer HAL Component

More
5 years 8 months ago #197989 by TheRoslyak
Good day.
Сan you tell me if there is a hal component timer.
I need it to count the time by "hal.program-is-run".
Started counting when hal.program-is-run is true and finished with false.
And returned the time of cycle.
If such a component or I need to do it yourself

Please Log in to join the conversation.

More
5 years 8 months ago #197998 by rodw

Please Log in to join the conversation.

More
5 years 8 months ago #198005 by TheRoslyak
Replied by TheRoslyak on topic Timer HAL Component
Thank you very much. This is what I need!
I still have to modify. But it seems easy)
Can I count nano seconds?

UPD I forgot to fix ini. Nano seconds count too

Please Log in to join the conversation.

More
5 years 8 months ago #198007 by TheRoslyak
Replied by TheRoslyak on topic Timer HAL Component
One more question: How I can predict this time?
If I know final control program.

Please Log in to join the conversation.

More
5 years 8 months ago #198015 by chris@cnc
Replied by chris@cnc on topic Timer HAL Component
In menu
file -> properties
you can read the estimated program runtime. It seems there is no way to export.
forum.linuxcnc.org/38-general-linuxcnc-q...ram-runtime-searched

Please Log in to join the conversation.

More
5 years 8 months ago #198018 by TheRoslyak
Replied by TheRoslyak on topic Timer HAL Component
This is not quite what I want.
The program is known but its coordinates are changing.
Like :
g0 X[#1] Y[#2]
g0 X[#3] Y[#4]
And this parameters send by telnet.
Like
#1=4 #2=3 #3=4 #4=1 and etc
I want to predict the time and return it as a Hal component

Please Log in to join the conversation.

More
5 years 8 months ago #198211 by andypugh
Replied by andypugh on topic Timer HAL Component

TheRoslyak wrote: This is not quite what I want.
The program is known but its coordinates are changing.
Like :
g0 X[#1] Y[#2]
g0 X[#3] Y[#4]
And this parameters send by telnet.
Like
#1=4 #2=3 #3=4 #4=1 and etc
I want to predict the time and return it as a Hal component


That sounds hard.

You could run it through the (separate) stand-alone-interpreter and process the output.
Unless the program is really as simple as your example?

Please Log in to join the conversation.

More
5 years 8 months ago #198289 by Todd Zuercher
Replied by Todd Zuercher on topic Timer HAL Component
I wonder if some of this would be better served by using digital inputs and outputs in the G-code (M62-M68)?

Please Log in to join the conversation.

Time to create page: 0.818 seconds
Powered by Kunena Forum