Timer HAL Component

  • TheRoslyak
  • TheRoslyak's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
08 Feb 2021 11:51 - 08 Feb 2021 11:53 #197989 by TheRoslyak
Timer HAL Component was created 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
Last edit: 08 Feb 2021 11:53 by TheRoslyak.

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

More
08 Feb 2021 12:28 #197998 by rodw

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

  • TheRoslyak
  • TheRoslyak's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
08 Feb 2021 14:43 - 08 Feb 2021 14:51 #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
Attachments:
Last edit: 08 Feb 2021 14:51 by TheRoslyak.

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

  • TheRoslyak
  • TheRoslyak's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
08 Feb 2021 15:04 #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 or Create an account to join the conversation.

More
08 Feb 2021 16:26 #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 or Create an account to join the conversation.

  • TheRoslyak
  • TheRoslyak's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
08 Feb 2021 16:43 #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 or Create an account to join the conversation.

More
09 Feb 2021 22:50 #198211 by andypugh
Replied by andypugh 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


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 or Create an account to join the conversation.

  • Todd Zuercher
  • Todd Zuercher's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
10 Feb 2021 16:38 #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 or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum