Can i Jog part program using MPG ?
19 Feb 2021 10:31 #199393
by andypugh
It's not quite that simple.
It turns out that there are _many_ scale components and (largely) have names.
My previous advice was based on the assumption that the XHC hal only loaded one, un-named scale.
TWOPASS might be the neatest answer.
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
What is the adaptive feed going to be controlled by? In your HAL snippets it comes from "jog-counts" but I don't see anything driving that signal.
Do you really need lowpass and ddt?
Is this a code snippet that you borrowed from somewhere and are trying to use without really understanding what it does? It seems excessively complex.
Replied by andypugh on topic Can i Jog part program using MPG ?
You need to uncomment line 24.
It's not quite that simple.
It turns out that there are _many_ scale components and (largely) have names.
My previous advice was based on the assumption that the XHC hal only loaded one, un-named scale.
TWOPASS might be the neatest answer.
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
What is the adaptive feed going to be controlled by? In your HAL snippets it comes from "jog-counts" but I don't see anything driving that signal.
Do you really need lowpass and ddt?
Is this a code snippet that you borrowed from somewhere and are trying to use without really understanding what it does? It seems excessively complex.
The following user(s) said Thank You: marq_torque
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
19 Feb 2021 11:13 #199401
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
Please Log in or Create an account to join the conversation.
19 Feb 2021 11:22 #199402
by andypugh
Replied by andypugh on topic Can i Jog part program using MPG ?
This is all in the docs but:
You can only loadrt each component once. This needs to be done in a HAL file that is interpreted before any other HAL file that tries to use the component, or inside the same HAL file and before the component is addf-ed or net-ed.
The exception to this is using TWOPASS, but in that case each instance of the component has to be be given a name with the names= directive in the loadrt.
But first answer the question about where jog-counts comes from. Otherwise this is all a waste of time.
You can only loadrt each component once. This needs to be done in a HAL file that is interpreted before any other HAL file that tries to use the component, or inside the same HAL file and before the component is addf-ed or net-ed.
The exception to this is using TWOPASS, but in that case each instance of the component has to be be given a name with the names= directive in the loadrt.
But first answer the question about where jog-counts comes from. Otherwise this is all a waste of time.
Please Log in or Create an account to join the conversation.
06 Jun 2021 12:46 - 06 Jun 2021 12:47 #211293
by Jetiman
Replied by Jetiman on topic Can i Jog part program using MPG ?
Is there any news on the subject.
At work, we also have to turn in manual mode.
I think that's really good.
Would be good if it works with the WHB04B
At work, we also have to turn in manual mode.
I think that's really good.
Would be good if it works with the WHB04B
Last edit: 06 Jun 2021 12:47 by Jetiman.
Please Log in or Create an account to join the conversation.
08 Jun 2021 22:17 #211554
by andypugh
Can you be more specific about what you want to do, and what you have already tried?
Replied by andypugh on topic Can i Jog part program using MPG ?
Is there any news on the subject.
Can you be more specific about what you want to do, and what you have already tried?
Please Log in or Create an account to join the conversation.
11 Jun 2021 16:03 #211813
by Jetiman
Replied by Jetiman on topic Can i Jog part program using MPG ?
I want it like this:
So far I haven't tried much. I don't know how to build this.
I have a WHB04B, which works normally.
So far I haven't tried much. I don't know how to build this.
I have a WHB04B, which works normally.
Please Log in or Create an account to join the conversation.
14 Jun 2021 22:13 #212063
by andypugh
Replied by andypugh on topic Can i Jog part program using MPG ?
Do you have the MPG set up to change the value on the motion.adaptive-feed HAL pin?
Have you studied the HAL documentation enough to know what I am describing?
Have you studied the HAL documentation enough to know what I am describing?
Please Log in or Create an account to join the conversation.
Time to create page: 0.089 seconds