ohm sensor

More
4 years 9 months ago #233035 by rodw
Replied by rodw on topic ohm sensor
its not enough to have physical wiring correct. You also need to have hall set up correctly.

I never use pncconf
ohmicsense.ohmic-on is your probe input

Currently it is commented out with a # so on my brief look its not connected to anything.
You also have an enable pin that needs to be connected to 
ohmicsense.is-probing

It is also commented out.

Its good you are seeing 24 volts. Everything is working OK then, you just need to sort out the probe connections.

Please Log in to join the conversation.

More
4 years 9 months ago #233082 by chuben
Replied by chuben on topic ohm sensor
-How can I connect ohmicsense.ohmic-on to the PC?
-How can I enable ohmicsense.is-probing.
For more information I'm looking for I can't find anything, call me stupid. Thanks

Please Log in to join the conversation.

More
4 years 9 months ago #233098 by rodw
Replied by rodw on topic ohm sensor
you should try uncommenting the lines I referred to.
If you get load errors, place the comments back to the lines in turn until you find which line generates the error.
run linuxcnc from the command line so you see the error messages.
share the error if you get stuck.

Pncconf will not help as it does not know about this.
 

Please Log in to join the conversation.

More
4 years 9 months ago #233245 by phillc54
Replied by phillc54 on topic ohm sensor
If you want to continue to use PnCconf to edit the main hal file then you could move all the ohmic component related stuff to custom.hal.

Remove all the following from PLASMA_LinuxCNC_machine.hal:
Code:
# --- Load the Component ---loadrt ohmic names=ohmicsense addf ohmicsense servo-thread # --- 7i76e ENCODER 2 SETUP FOR OHMIC SENSING--- setp hm2_7i76e.0.encoder.01.scale -1 setp hm2_7i76e.0.encoder.01.counter-mode 1 setp hm2_7i76e.0.encoder.01.filter 1 # --- Configure the component --- setp ohmicsense.thcad-0-volt-freq 136500 setp ohmicsense.thcad-max-volt-freq 965900 setp ohmicsense.thcad-divide 32 setp ohmicsense.thcad-fullscale 5 setp ohmicsense.volt-divider 4.9 setp ohmicsense.ohmic-threshold 22.0 setp ohmicsense.ohmic-low 1.0 net ohmic-vel ohmicsense.velocity-in <= hm2_7i76e.0.encoder.01.velocity # --- Replace Plasmac’s Ohmic sensing signal --- #unlinkp db_ohmic.in #net ohmic-true ohmicsense.ohmic-on => db_ohmic.in #net plasmac:ohmic-enable => ohmicsense.is-probing


Add the following to custom.hal:
Code:
# --- Load the ohmic sensing component --- loadrt ohmic names=ohmicsense addf ohmicsense servo-thread # --- 7i76e ENCODER 2 SETUP FOR OHMIC SENSING--- setp hm2_7i76e.0.encoder.01.scale -1 setp hm2_7i76e.0.encoder.01.counter-mode 1 setp hm2_7i76e.0.encoder.01.filter 1 # --- Configure the ohmic component --- setp ohmicsense.thcad-0-volt-freq 136500 setp ohmicsense.thcad-max-volt-freq 965900 setp ohmicsense.thcad-divide 32 setp ohmicsense.thcad-fullscale 5 setp ohmicsense.volt-divider 4.9 setp ohmicsense.ohmic-threshold 22.0 setp ohmicsense.ohmic-low 1.0 net ohmic-vel ohmicsense.velocity-in <= hm2_7i76e.0.encoder.01.velocity net plasmac:ohmic-probe <= ohmicsense.ohmic-on net plasmac:ohmic-enable => ohmicsense.is-probing

Edit: Fix typo (ohmicsense.ohmic-on)

Please Log in to join the conversation.

More
4 years 9 months ago #233373 by chuben
Replied by chuben on topic ohm sensor
Hello, I have done what you have told me and I still do not have an Ohminco sensor, what else can I do? I'm going crazy.

Please Log in to join the conversation.

More
4 years 9 months ago #233387 by Aciera
Replied by Aciera on topic ohm sensor
Seeing that you are struggling with your hal setup, you might want to attach your current hal and ini files to your posts. Otherwise it's impossible for anybody to figure out what you have done and where the problem could be.

Please Log in to join the conversation.

More
4 years 9 months ago #233409 by chuben
Replied by chuben on topic ohm sensor
Esta es mi configuración de Hal e Ini a ver si alguien me puede ayudar. Gracias  .

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
4 years 9 months ago #233419 by rodw
Replied by rodw on topic ohm sensor
There seemed to be some language issues.
Some pin names had been changed which made no sense as the code is only in english

rename the attached to custom.hal and see how you go.

Please Log in to join the conversation.

More
4 years 9 months ago #233463 by chuben
Replied by chuben on topic ohm sensor
 

Attachment not found

If I change what you tell me I get this error.

Please Log in to join the conversation.

More
4 years 9 months ago #233471 by rodw
Replied by rodw on topic ohm sensor
Sorry, there was a typo in the example Phil suggested that I did not pick up.
Try this one.

 

Attachment not found



When you are setting up a machine, always run linuxcnc from the command line so errors are printed on the display.
Linuxcnc will usually tell you the line number and error.

./custom.hal:41: Pin 'ohmicsense-on' does not exist

Please Log in to join the conversation.

Time to create page: 0.693 seconds
Powered by Kunena Forum