Hypersensing with THCAD - better way to do ohmic sensing

More
6 years 6 months ago #163106 by rodw
As its coded, the probe signal only works when is-probing is true.
I did this becasue I was getting spurious probe errors with pre-plasmac configs.

I think the source needs to be modified
github.com/LinuxCNC/linuxcnc/blob/master...omponents/ohmic.comp

I did think you might be able to setp the is-probing pin to 1 but I don't think the signal will turn off when the low threshold is reached as its presently coded.

I'll have a think about it.

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

More
6 years 6 months ago #163107 by rodw
The change will make a bit of a difference in the algorithm becasue if the voltage is full scale, the probe signal cannot be on. It will be if the pin is setp'd

Maybe there should be a pin that enables always-probe

I am gearing up to cut this so I think it will find any issues.

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

More
6 years 6 months ago #163117 by Uthayne
I cloned ohmic.comp and made an ohmic_dev.comp with a few changes.
Code:
FUNCTION(_) { double thcad_vel_scale = 1/((thcad_max_volt_freq - thcad_0_volt_freq)/thcad_fullscale/thcad_divide); double thcad_scale_offset = thcad_0_volt_freq/thcad_divide; thcad_volts = (velocity_in - thcad_scale_offset) * thcad_vel_scale; ohmic_volts = thcad_volts * volt_divider; // Calculated torch volts from THCAD arc_on = (thcad_volts >= thcad_fullscale ? 1 : 0); if(!arc_on) ohmic_on = (ohmic_volts > ohmic_threshold ? 1 : 0); else if( ohmic_volts < ohmic_low) ohmic_on = 0; }

Mainly, moving the arc_on calculation before the ohmic_on logic, and then using the arc_on signal to tell us whether we should turn the ohmic signal on; still looking at the voltage to determine on/off.

While cutting, the arc_on signal ensures that ohmic_on is never set, so no interruptions due to nozzle shorting material while cutting. However, THC should prevent that anyway!

With my dry run (plasma cutter off) testing, it allows the ohmic_on signal to interrupt (pause) during typical cut motion. However, when the arc_on pin is true due to cutting voltages this will not matter.

The problem is that even though ohmic_on is true while jogging && arc_on is false, plasmac does not check for ohmic state outside of probing and cutting states. The torch jogs (with ohmicsense.ohmic-on TRUE), and then when it's finished its jog THEN it throws the ohmic triggered error because it has changed state to PROBE and we haven't reached the probe Z height yet. This would require plasmac to add ohmic sensing during typical jogging, preferably toggleable with a checkbox if the user wants this feature or not.

Hope this is clear. Can make a video if you need...

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

More
6 years 6 months ago #163127 by rodw
Thanks for saving me some work. I wonder if you could unlinkp motion.probe−input and connect the ohmicsense pin to it instead?
That would take plasmac out of the picture.

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

More
6 years 6 months ago - 6 years 6 months ago #163132 by Uthayne
It still needs some more testing. I tried it with the plasma on and it would trigger during the pierce, causing an interruption. I think it's because ohmic_on goes low when moving to pierce height bc contact is no longer made and arc is off, and then when the arc initiates it ramps ohmic_volts back up to arc voltage, but goes above threshold and below full scale thcad volts before it gets there. It needs to be state aware, or just monitor torch-on signal
Last edit: 6 years 6 months ago by Uthayne.

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

More
6 years 6 months ago #163135 by rodw
I had similar issues in the past and I anded the probe signal with a digital input (M67/M68) so I had control from Gcode

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

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