- Posts: 2580
- Thank you received: 0
HAL Question
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
phillc54 wrote: I think that is all part of the ohmic component.
This line:connects the plasmac.ohmic-enable output pin to the ohmic component. This pin should go True when you do an ohmic test. From there the ohmic component handles everything.Code:net plasmac:ohmic-enable plasmac.ohmic-enable => ohmicsense.is-probing
I do know that ohmicsense.is-probing does go true when I am probing, or when i click ohmic test...
Please Log in to join the conversation.
Please Log in to join the conversation.
phillc54 wrote: OK, it looks like you will need Rod to help you.
Sorry but I have my machine in pieces for another few days so I can't help much. Ohmic2 is still a work in progress and it not 100% reliable.
There should be some thresholds set via a setp command and I'm not seeing that is included in your connections.hal
But before that, you need to make sure that you are seeing the encoder velocity change with hal show, then make sure you can see the voltage in halshow when the torch touches the material.
I'm also not sure how it handles Phill's new fast probing.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote:
phillc54 wrote: OK, it looks like you will need Rod to help you.
Sorry but I have my machine in pieces for another few days so I can't help much. Ohmic2 is still a work in progress and it not 100% reliable.
There should be some thresholds set via a setp command and I'm not seeing that is included in your connections.hal
But before that, you need to make sure that you are seeing the encoder velocity change with hal show, then make sure you can see the voltage in halshow when the torch touches the material.
I'm also not sure how it handles Phill's new fast probing.
I think maybe my question got lost in the replies somewhere...
The problem I am having isnt with ohmic probing itself, it's with hooking the HAL pins to turn the relay on to turn the power supply on, so it's not on all the time anymore. It should turn the relay on when the probe cycle starts, currently I can not get it to, and ohmic:power never changes states in the HAL watch.
Really I'm not sure why it has to be done through ohimc:power, it would seem like it could be set up so that ohimicsense.is-probing turns the relay on. But again, I dont really understand the HAL, or why it is tied to ohimc:power in your HAL example. I am not sure if I am missing something or what?
Maybe you used this line as code to do something else, and I just assumed that it was for turning the relay on and off (copied from your spaceship.hal:
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: There should be some thresholds set via a setp command and I'm not seeing that is included in your connections.hal
There is... "setp ohmicsense.ohmic-threshold 23.5"
Below is the snippet involving ohmic from my plasmac_connections file.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
and the line from the .hal is:
does it need to be ohmicsense.power_on (instead of power-on)
it shows up again with ohmicsense.is-probing, in the .comp it's listed as ohmicsense.is_probing ??
Please Log in to join the conversation.
Thats why I decided to use motion.motion-type and power on if it was not zero so I needed to add some code to output a bit pin type. See
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
I did this cos earlier sometimes the circuit was not powered when probing.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: What I was trying to do was to turn the ohmic sensing circuit on when the machine started to run a job and off at the end of it to prevent any corrosion of consumables inside the torch if the machine is left powered on. The trouble is I could not use the spindle on pin (which is normally how its done) because ohmic runs before the spindle turns on. So it got a bit messy.
Thats why I decided to use motion.motion-type and power on if it was not zero so I needed to add some code to output a bit pin type. See
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
I did this cos earlier sometimes the circuit was not powered when probing.
So does that mean it only comes on when you are actually running an NC program?
My current problem is that pressing the Ohmic test button, and/or running a probe test do not turn that pin on... but they probably should.
Please Log in to join the conversation.
The probe enable switch was designed to turn the relay based system off when not probing to avoid any chance of arc voltage doing bad things to the electronics. You could check for a shorted torch (generally from water) by pressing that button before running a job. If the ArcOK light came on, you had a problem.
Hypersensing makes the isolation relay redundant due to the overvoltage protection of the THCAD and also the isolation of the power supply.
Plus the added resistor suggested by PCW and revised sensing algorithm means there is no need to connect an isolation relay to test ArcOK. It will be visible anyway if its stuck on. This is one of the things I wanted to improve on.. I wanted it to be on while cutting becasue it can sense if an arc is on but I am not sure what it could be used for..
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: Supposedly. But Plasmac breaks so many NC rules....
The probe enable switch was designed to turn the relay based system off when not probing to avoid any chance of arc voltage doing bad things to the electronics. You could check for a shorted torch (generally from water) by pressing that button before running a job. If the ArcOK light came on, you had a problem.
Hypersensing makes the isolation relay redundant due to the overvoltage protection of the THCAD and also the isolation of the power supply.
Plus the added resistor suggested by PCW and revised sensing algorithm means there is no need to connect an isolation relay to test ArcOK. It will be visible anyway if its stuck on. This is one of the things I wanted to improve on.. I wanted it to be on while cutting becasue it can sense if an arc is on but I am not sure what it could be used for..
I'm not really following, I think we are talking about two different things here. All I really want is the relay controlling the 24v power supply to be off unless the need for ohmic sensing is called upon. Be it NC program running, Ohmic Test, or Probe test. Currently I cant get that to happen. The power supply can stay on while the program is running. I'm not trying to isolate the circuit with a relay.
In the other thread, we decided that ohmic test and pulsing the torch would solve the water intrusion problem. But currently I cant get ohmic:power to change with neither the test button nor the probe test button.
Please Log in to join the conversation.
