THC control
- brianm
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
05 Dec 2010 17:17 #5869
by brianm
Replied by brianm on topic Re:THC control
Hi Roberto,
You do not need the mesa board, I use a parallel port. However, I do not read the voltage. I think the easiest thing for you to do is probably develop some hardware that will read the voltage and then decide whether to move up or down and send a signal to the computer on what to do, (since that is your strong point). That is basically what I do. I bought a THC controller from Campbell Designs and then connected that to the parallel port. I then modified the THC component per the suggestion by andypugh. I am by no means a great programmer, but it was fairly simple and it works fine for me. I can post it later if you like - I do not have it at this computer. One thing I am learning about EMC is you can basically do anything you want.
You do not need the mesa board, I use a parallel port. However, I do not read the voltage. I think the easiest thing for you to do is probably develop some hardware that will read the voltage and then decide whether to move up or down and send a signal to the computer on what to do, (since that is your strong point). That is basically what I do. I bought a THC controller from Campbell Designs and then connected that to the parallel port. I then modified the THC component per the suggestion by andypugh. I am by no means a great programmer, but it was fairly simple and it works fine for me. I can post it later if you like - I do not have it at this computer. One thing I am learning about EMC is you can basically do anything you want.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18829
- Thank you received: 5200
05 Dec 2010 17:28 #5870
by PCW
Replied by PCW on topic Re:THC control
Any V-F converter would work, though the parallel port would limit your control loop bandwidth vs voltage resolution tradeoff somewhat. For example say that you can read the parallel port at 20 KHz so you can reliably sample an input square wave up 10 KHz. A t a 1 KHz servo thread you would only get ~10 counts full scale ( about 3 bits resolution) so you would have to low pass filter the velocity signal get a usable feedback signal (more voltage resolution), and this low pass filter will limit your Z Torch height axis control loop bandwidth.
Please Log in or Create an account to join the conversation.
- hominux
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 1
09 Dec 2010 23:54 #5951
by hominux
Replied by hominux on topic Re:THC control
Hello brianm,
Thanks for your answer . I was looking ( a lot ! ) in the web how to modify the thc component .
Basically I understand that may be changed and recompiled for suit the needs , but when I was trying to find more info i did not find nothing for a beginner .
Reading your reply and the reply from PCW ( many thanks too ) I come with a different appproach .
Would be relatively easy use the component input and "read analog values" like usb joisticks but I do not know the resolution and speed of this converters.
Also using Arduino to make the A/D conversion and why not something else like torch on, comparations etc...
There are also inxpensives USB SOUND CARDS that usually dont have ac coupling letting use them for dc A/D conversion ( but I dont know if HAL can use them.
At the end I think I will follow your idea !
Just will make a small external comparator and drive the voltage comparation from a parallel port pin (PWM) to set the voltage from Axis UI.
I will try also an experimental way to have the ARK_OK signal from the torch volt ( when working with a good ark I never saw voltages less than 80 v and more than 150 v )
Another experimental idea is to read the ARC_OK - UP - DOWN signals with just two pins ( when UP and Down signals are active will mean ARC_NO_OK ).
Now the big problem for me !
I NEED/WANT to learn how modify the thc component to do that.
Any help wil be greatly apreciated .
If everithing goes well I will be proud to post the hardware schematics and send some prototypes
Best regards
Roberto
Thanks for your answer . I was looking ( a lot ! ) in the web how to modify the thc component .
Basically I understand that may be changed and recompiled for suit the needs , but when I was trying to find more info i did not find nothing for a beginner .
Reading your reply and the reply from PCW ( many thanks too ) I come with a different appproach .
Would be relatively easy use the component input and "read analog values" like usb joisticks but I do not know the resolution and speed of this converters.
Also using Arduino to make the A/D conversion and why not something else like torch on, comparations etc...
There are also inxpensives USB SOUND CARDS that usually dont have ac coupling letting use them for dc A/D conversion ( but I dont know if HAL can use them.
At the end I think I will follow your idea !
Just will make a small external comparator and drive the voltage comparation from a parallel port pin (PWM) to set the voltage from Axis UI.
I will try also an experimental way to have the ARK_OK signal from the torch volt ( when working with a good ark I never saw voltages less than 80 v and more than 150 v )
Another experimental idea is to read the ARC_OK - UP - DOWN signals with just two pins ( when UP and Down signals are active will mean ARC_NO_OK ).
Now the big problem for me !
I NEED/WANT to learn how modify the thc component to do that.
Any help wil be greatly apreciated .
If everithing goes well I will be proud to post the hardware schematics and send some prototypes

Best regards
Roberto
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23377
- Thank you received: 4966
14 Dec 2010 12:57 #6024
by andypugh
Replied by andypugh on topic Re:THC control
hominux wrote:
This page explains how comp works, and how to recompile and install:
linuxcnc.org/docs/html/hal_comp.html
Basically make the changes you want to thc.comp then type comp --install thc.comp
Now the big problem for me !
I NEED/WANT to learn how modify the thc component to do that.
Any help wil be greatly apreciated .
This page explains how comp works, and how to recompile and install:
linuxcnc.org/docs/html/hal_comp.html
Basically make the changes you want to thc.comp then type comp --install thc.comp
Please Log in or Create an account to join the conversation.
- hominux
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 1
15 Dec 2010 03:47 #6052
by hominux
Replied by hominux on topic Re:THC control
Thanks a lot ! Looking for a lot but never find it !
My first impression is that, really, there are not limits on what can be done with EMC2.
I will begin to study just now .
Best regards
My first impression is that, really, there are not limits on what can be done with EMC2.
I will begin to study just now .
Best regards
Please Log in or Create an account to join the conversation.
- hominux
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 1
19 Dec 2010 18:26 - 19 Dec 2010 18:37 #6168
by hominux
Replied by hominux on topic Re:THC control
Hello all ,
Studying C language I was writing a .comp for interface a virtual jog wheel .
It has accelerated response , if the mouse wheel is turned slowly the out will be step by step.
but if you spin fast the mouse wheel it will be cubic steps .
I found useful for my plasma table ( just X Y ) but i think it may be useful for more axis too
If someone is interested ...
Best regards
Studying C language I was writing a .comp for interface a virtual jog wheel .
It has accelerated response , if the mouse wheel is turned slowly the out will be step by step.
but if you spin fast the mouse wheel it will be cubic steps .
I found useful for my plasma table ( just X Y ) but i think it may be useful for more axis too
If someone is interested ...
Best regards
Last edit: 19 Dec 2010 18:37 by hominux.
Please Log in or Create an account to join the conversation.
- hominux
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 1
29 Nov 2011 21:09 - 29 Nov 2011 21:15 #15198
by hominux
Replied by hominux on topic Re:THC control
Hi all
I was writing a new comp for thc boxes.
FIRST OF ALL I AM NOT A PROGRAMMER
So ,please, apologize if the program has a bad style
I believe is now ready for testings ( I am using it since two mounts and look fine ...)
BUT STILL EXPERIMENTAL (off course:-)
Hoping someone will find it useful
I was writing a new comp for thc boxes.
FIRST OF ALL I AM NOT A PROGRAMMER
So ,please, apologize if the program has a bad style
I believe is now ready for testings ( I am using it since two mounts and look fine ...)
BUT STILL EXPERIMENTAL (off course:-)
Hoping someone will find it useful
Last edit: 29 Nov 2011 21:15 by hominux.
The following user(s) said Thank You: Paul
Please Log in or Create an account to join the conversation.
- mariusl
-
- Offline
- Platinum Member
-
20 Dec 2012 13:51 #27885
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic THC control
Hi
I am looking at a number of possible THC configs and yours looks about the easiest one to implement. I see it has been some time since you posted this, is it working ok?
I will make some changes to use my own THC.
I have to ask, why are all the THC configs so complex and your look simple? Is it because you use a component?
I am looking at a number of possible THC configs and yours looks about the easiest one to implement. I see it has been some time since you posted this, is it working ok?
I will make some changes to use my own THC.
I have to ask, why are all the THC configs so complex and your look simple? Is it because you use a component?
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- hominux
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 1
20 Dec 2012 20:41 #27896
by hominux
Replied by hominux on topic THC control
Hello
Yes , look so simple because all the heavy stuff has been integrated in the COMP.
I was having problems to find a Gcode to set offsets , so I try to modify a thc comp for i520.
Finally I realize that was better rewrite the entire comp .
Was my firs attempt to write a realtime program and I think this can be done much better from someone with more experience in software
( I am just an harware technician learning C language).
I was implementing more and more inside the comp and at the end the comp make all the complicated job .
We are working more than year without problems , but just on one machine .
The comp is made to work with my own digital height controller but may work with others Thc boxes ,
off course you will loose the possibility to change from user interface Axis the cut voltage, but it will vork fine .
I will be more then happy to help you to test this comp on your machine.
Best regards
Yes , look so simple because all the heavy stuff has been integrated in the COMP.
I was having problems to find a Gcode to set offsets , so I try to modify a thc comp for i520.
Finally I realize that was better rewrite the entire comp .
Was my firs attempt to write a realtime program and I think this can be done much better from someone with more experience in software
( I am just an harware technician learning C language).
I was implementing more and more inside the comp and at the end the comp make all the complicated job .
We are working more than year without problems , but just on one machine .
The comp is made to work with my own digital height controller but may work with others Thc boxes ,
off course you will loose the possibility to change from user interface Axis the cut voltage, but it will vork fine .
I will be more then happy to help you to test this comp on your machine.
Best regards
Please Log in or Create an account to join the conversation.
- mariusl
-
- Offline
- Platinum Member
-
20 Dec 2012 21:17 #27898
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic THC control
I am glad to hear that it works well. I will make use of the comp and change it to suit my own THC setup. I will let you know how it goes and probably ask many questions along the way.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds