Timer HAL Component
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
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
С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.
08 Feb 2021 12:28 #197998
by rodw
Replied by rodw on topic Timer HAL Component
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
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
I still have to modify. But it seems easy)
Can I count nano seconds?
UPD I forgot to fix ini. Nano seconds count too
Last edit: 08 Feb 2021 14:51 by TheRoslyak.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
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.
If I know final control program.
Please Log in or Create an account to join the conversation.
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
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
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
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.
09 Feb 2021 22:50 #198211
by andypugh
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?
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
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
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.082 seconds