ohm sensor
25 Jan 2022 04:27 - 25 Jan 2022 04:28 #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.
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.
Last edit: 25 Jan 2022 04:28 by rodw.
Please Log in or Create an account to join the conversation.
25 Jan 2022 15:55 #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
-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 or Create an account to join the conversation.
25 Jan 2022 19:53 #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.
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.
The following user(s) said Thank You: chuben
Please Log in or Create an account to join the conversation.
27 Jan 2022 01:32 - 29 Jan 2022 22:55 #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:
Add the following to custom.hal:
Edit: Fix typo (ohmicsense.ohmic-on)
Remove all the following from PLASMA_LinuxCNC_machine.hal:
# --- 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:
# --- 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)
Last edit: 29 Jan 2022 22:55 by phillc54.
Please Log in or Create an account to join the conversation.
28 Jan 2022 14:08 #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 or Create an account to join the conversation.
28 Jan 2022 17:14 #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.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
28 Jan 2022 21:06 - 28 Jan 2022 21:08 #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 .
Attachments:
Last edit: 28 Jan 2022 21:08 by chuben.
Please Log in or Create an account to join the conversation.
29 Jan 2022 05:12 #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.
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 or Create an account to join the conversation.
29 Jan 2022 18:58 #233463
by chuben
Replied by chuben on topic ohm sensor
If I change what you tell me I get this error.
Attachments:
Please Log in or Create an account to join the conversation.
29 Jan 2022 19:37 - 29 Jan 2022 19:37 #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.
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
Try this one.
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
Attachments:
Last edit: 29 Jan 2022 19:37 by rodw.
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.118 seconds