OHMIC(9)
π OHMIC(9) β HAL Component π
okay bestie, welcome to the ohmic glow-up β¨ it's a LinuxCNC HAL component that uses a Mesa THCAD for ohmic sensing. that's the whole vibe. let's get into it π«Ά
πΈ NAME πΈ
ohmic β a LinuxCNC HAL component that uses a Mesa THCAD for ohmic sensing π
β¨ SYNOPSIS β¨
loadrt ohmic [count=N|names=name1[,name2...]]
π¦ DESCRIPTION π¦
so this is the Mesa THCAD Card component, and what it does is scale the input and output from the Mesa THCAD2, THCAD5, THCAD10, and THCAD300 cards. it also lets you (yes, you, main character) configure the voltage thresholds for ohmic sensing. iconic behavior honestly π
the output pins you get are:
ohmic-voltsβ the voltage sensed on ohmic sensingthcad-voltsβ the actual voltage measured by the THCADohmic-onβ true ifohmic-volts >= ohmic-threshold, false ifohmic-volts <= ohmic-low
ngl a THCAD-5 would often be used for ohmic sensing alongside a 24 Volt isolated power supply and a 390 kΞ© series resistor, and that combo gives you a voltage divider of 4.9. the way that math works out, your full scale reading lands at 24.5 Volts β which is above the power supply output voltage, so slay π
and don't worry about frying it: the circuit stays protected because the THCAD can tolerate a 500 Volt over-voltage indefinitely. periodt πͺ
also, it's optional to disconnect power to the ohmic sensing circuit unless probing is in progress. lowkey a nice touch π
π₯ FUNCTIONS π₯
ohmic.N(requires a floating-point thread)
π PINS π
ohmic.N.is-probingbit in β True if probingohmic.N.ohmic-lowfloat in (default:21) β the threshold volts below which ohmic sensing is set to be falseohmic.N.ohmic-thresholdfloat in (default:22) β the threshold volts above which ohmic sensing is set to be trueohmic.N.thcad-0-volt-freqfloat in β 0 volt calibration data for THCAD card in Hzohmic.N.thcad-dividefloat in (default:32) β THCAD divider set by links on THCAD board (1,32,64, or128)ohmic.N.thcad-fullscalefloat in (default:5) β THCAD full scale in Volt (5,10, or300Volt)ohmic.N.thcad-max-volt-freqfloat in β Full scale calibration data for THCAD Card in Hzohmic.N.velocity-infloat in β The velocity returned from the THCAD and read by the Mesa encoder inputohmic.N.volt-dividerfloat in (default:4.9) β The divide ratioohmic.N.ohmic-onbit out β True if ohmic circuit is closed (material is sensed)ohmic.N.ohmic-voltsfloat out β Calculated ohmic voltage
π EXAMPLES π
okay so this HAL example below assumes a THCAD5 card using a 1/32 frequency setting, plus a voltage divider internal to the plasma cutter with range extended to 24.5 volts by a series 390K external resistor β as per the manual, bestie. additional info and a wiring diagram live in the Plasma Primer in the LinuxCNC documentation, iykyk πβ¨
Example Calibration Data: 0V = 122.9 kHz, 10V = 925.7 kHz β those should be entered as 122900 and 925700. no cap.
loadrt ohmic names=ohmicsense
addf ohmicsense servo-thread
setp ohmicsense.thcad-0-volt-freq 122900
setp ohmicsense.thcad-max-volt-freq 925700
setp ohmicsense.thcad-divide 32
setp ohmicsense.thcad-fullscale 5
setp ohmicsense.volt-divider 4.9
setp ohmicsense.threshold 22
setp ohmicsense.ohmic-low 21
net ohmic-vel ohmicsense.velocity-in <=
hm2_7i76e.0.encoder.00.velocity
net ohmic-enable ohmicsense.is_probing <= plasmac.ohmic-enable
net ohmic-true ohmicsense.ohmic-on => plasmac.ohmic-probe
π AUTHOR π
Rod Webster π
π LICENSE π
GPL
and that's the whole page, babe π¦ this one's from the LinuxCNC Documentation, dated 2026-03-17, and the manual section is OHMIC(9) β go forth and sense some ohmic, you've got this bestie π«Άπ
β¨
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms