Hypersensing with THCAD - better way to do ohmic sensing

More
4 years 5 months ago #243636 by rodw
Also you need to connect the 
ohmicsense.ohmic-on pin to plasmac.ohmic-probe and
plasmac.ohmic-enable to ohmicsense.is-probing
There are some lines in your hal that do this that have been commented out.
I think at the time the component was written (before qtplasmac), plasmac wanted you to connect to a debounce pin but I think that has changed.

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

More
4 years 5 months ago - 4 years 5 months ago #244307 by Marçal
Sorry for not answering before, I was struggling with the PlasmaC program and I was trying to make it work before I answer you back. I read PlasmaC was outdated, so I decided to upgrade it to LinuxCNC 2.9 to use QtPlasmaC. I would like to write down one problem I had before I downloaded the QtPlasmaC in case it can help someone: The first time I created the plasmaC connections hal it was empty. I had to create it again and then I got the proper connections.hal file. I could find the frequency thanks to rodw advice. I did not understand what threshold meant. I think now I understand it.

What works on my machine:
-The XYZ is moving and homing
-We can start the Arc and the measuring of the arc voltage is good.

What doesn't work: :-(
-Ohmic probing with THCADWhen the ohmic probing starts the torch goes down, but doesn't measure anything.
We copied your HAL in our custom HAL but it doesn't work. The debounce did not work so we found out we needed to set it up, plus the same with the encoders. The ohmic enable pin makes 24V when our torch touches the metal, the THCAD starts blinking faster and we measure - 24V on that. I checked the ohmicsense.ohmic-volts pin and it does not measure well, it just shows a value of -40.42874 V that does not change, moreover the encoder counter does not work. I wired the THCAD to encoder 4A because I read the velocity is measured in the encoder A and not B. We also added a relay on the Torch on wire because the Hypertherm manual says it needs a dry contact.

I have attached the new electronical scheme.
We have no idea what we are doing wrong, I hope someone can help us to find why it does not measure the ohmic voltage.

Thank you in advance :D
Last edit: 4 years 5 months ago by Marçal. Reason: I wrote it yesterday night and I wanted to explain more details of what I have done. I also changed the attached files.

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

More
4 years 4 months ago #244460 by Marçal
I am still stuck with the same and I cannot figure out what I am doing wrong. I read on this post  that the code has changed, so I just copied the format of the hal updated in this post to connect the ohmicsense.ohmic-on pin to plasmac.ohmic-probe and plasmac.ohmic-enable to ohmicsense.is-probing as Rodw told me that I have to do. Moreover, I deleted everything related to the debounce.0.2.in because I think it is not needed with QtPlasmaC. Then I realized that I had the voltage divider wrong since I wrote 50 because my hypertherm has a 50:1 voltage divider, but the 4.9 is because of the 390k resistor. It made me realize that I don't know how you calculate the 4.9. Nonetheless, my voltage supply is 230V (europe) and not 120V, so I might need to change this resistor.
Another thing I found out in this thread is that there is a ohmic3 file, should I download it or it is not needed?
Sorry for being so annoying, but I am spending a lot of time with this and I got stuck. I attached a screenshot of how I wired the torch and one from the hal watch to show you that the encoder 4 is not counting and the ohmicsense.ohmic-volt does not measure well.
I would really appreciate it if someone can help me:
-To learn how to choose the proper resistor and how to calculate the 4.9 value.
-To find out why it does not work.
As you can see on the electrical scheme I uploaded, I removed the optional relay, is this what makes it work wrongly?
Thank you in advance and sorry for asking so much but I really don't know what to do.
 

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

More
4 years 4 months ago #244516 by Marçal
UPDATE:
I just wired everything on Encoder 2 and it works. Don't know why. But, at least the hypersensing is working perfectly fine now. Thank you!

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

More
2 years 11 months ago - 2 years 11 months ago #286214 by ashesman
I had a bit of a mission getting ohmic sensing working.  I sort of rushed and just followed the examples I found, but none worked for me, so had to make my own hal connections.  Just thought I would post them here in case it helps someone in the future.  I am using LinuxCNC 2.8, Mesa 7i76e with THCAD-10 for ohmic wired to 7i76e encoder B pins.  Base setup made with Pcncconf, then with the plasmac configurator.  Using plasmac in axis.

Thee original post for this topic shows:
Code:
unlinkp debounce.0.2.in net ohmic-true ohmicsense.ohmic-on => debounce.0.2.in net plasmac:ohmic-enable => ohmicsense.is-probing

The manual pages say ( manpages.ubuntu.com/manpages/kinetic/man9/ohmic.9.html ):
Code:
net ohmic-true ohmicsense.ohmic-on => plasmac.ohmic-probe

The plasma cnc primer says ( linuxcnc.org/docs/html/plasma/plasma-cnc..._with_a_mesa_thcad_5 ):
Code:
unlinkp debounce.0.2.in net ohmic-true ohmicsense.ohmic-on => debounce.0.2.in net plasmac:ohmic-enable => ohmicsense.is-probing

But what I had to use was:
Code:
net ohmic-true ohmicsense.ohmic-on => db_ohmic.in net ohmic-enable plasmac.ohmic-enable => ohmicsense.is-probing

So it looks like some pin names and debounce pins have changed across versions.
Last edit: 2 years 11 months ago by ashesman. Reason: messed up formatting

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

More
2 years 11 months ago #286246 by rodw
yes, plasmac has had a lot of changes.
I have attached my larest component and a stand alone hal file which you can just load from your ini file

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

Moderators: snowgoer540
Time to create page: 0.335 seconds
Powered by Kunena Forum