THC experimental

More
9 years 9 months ago #86506 by BigJohnT
Replied by BigJohnT on topic THC experimental
LinuxCNC has an up/down THC called thcud linuxcnc.org/docs/devel/html/man/man9/thcud.9.html

I've started using M68 to set the voltage requested. Changed Sheetcam post to use that based on the tip I chose. Keeps me from forgetting to set the voltage!

JT
The following user(s) said Thank You: rodw

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

More
9 years 9 months ago #86693 by rodw
Replied by rodw on topic THC experimental
Hi guys, I have a question. Do you guys run the Z axis in velocity mode when using THC?

I think I have got my head around how to implement a PID control into a THC component and velocity mode seems to be part of the solution but wondered what was going on in the current THC components and I can't find anything that talks about the stepgen mode used.

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

More
9 years 9 months ago #86700 by andypugh
Replied by andypugh on topic THC experimental
The "magic" of PID means that either position or velocity mode can work.

In velocity mode you will end up mainly using PGain, in position mode it will mainly be the I-term that controls the gap.

I noticed a _very_ interesting development in a new feature branch last night. Dewey has been quietly working in the background:
github.com/LinuxCNC/linuxcnc/commit/96a9...da87002d92f63f960e06

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

More
9 years 9 months ago - 9 years 9 months ago #86702 by BigJohnT
Replied by BigJohnT on topic THC experimental

rodw wrote: Hi guys, I have a question. Do you guys run the Z axis in velocity mode when using THC?

I think I have got my head around how to implement a PID control into a THC component and velocity mode seems to be part of the solution but wondered what was going on in the current THC components and I can't find anything that talks about the stepgen mode used.


Thanks to Andy I'm working on a thc component with PID and will test it with the experimental branch Dewey just created. I tested the branch this morning and man it is sweet. The sweet thing about this branch is the thc component will work with any type of drive now.

I use the stepgen in normal mode currently.

JT
Last edit: 9 years 9 months ago by BigJohnT.

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

More
9 years 9 months ago #86703 by rodw
Replied by rodw on topic THC experimental
Thanks guys. I need to understand a lot more about the LCNC code base to understand what Andy finds very interesting on that link! What are the key features that help THC?

Its great to hear other people are looking at PID control for THC and I'm keen to see what you come up with. John, I must confess that a code snippet Andy posted a couple of months ago got me thinking hard about PID based THC. So here are some discussion points to think about:
1. My thinking was PID based THC was suited to a velocity controlled axis (and even comments the PID code suggests the same). Position is meaningless for THC, we only care about volts.
2. Is the servo thread the right thread for THC when published research worked on a 40ms cycle time?
3. If the THC operated on its own slower thread, another component in the servo thread could calculate average, min, max and moving average data that could be presented to the THC thread. (there would be say 40 readings per data set)
4. Can distance travelled on the xy plane be measured easily? If so, we could extend the averaging technique so we can sample torch voltage for the first say 1/2" of travel to automatically set torch height voltage?
5. Can the mods add a dedicated plasma section? There seems to be a bit of interest right now and the forum nuggets are fragmented and hard to find.

Sorry for the brain dump but RickG did say experimental :)

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

More
9 years 9 months ago #86705 by andypugh
Replied by andypugh on topic THC experimental

rodw wrote: Thanks guys. I need to understand a lot more about the LCNC code base to understand what Andy finds very interesting on that link! What are the key features that help THC?


It adds a HAL pin to offset an axis. G10 Z10 will move the axis to 10. Set the HAL pin to 1 and the axis goes to 11.

So, you would feed the THC offset straight into that pin, and the axis would move as required while observing speed, acceleration and axis soft-limits

No need to mess about lying about feedback positions or such, either. The offset-position becomes the position that LnuxCNC expects to see.
The following user(s) said Thank You: Rick G, rodw

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

Time to create page: 0.335 seconds
Powered by Kunena Forum