← Documentation

Frequency calculator

Translation for information — the German version is authoritative.

Orders, bearing frequencies, prominence - what can cause a line in the spectrum

Copy from the HDTrace repository (docs/). Internal network details have been replaced by placeholders; the version in the repository is authoritative.

Frequency calculator — what can cause a line in the spectrum

Shared core since 2026-09. The calculator lives in src/hdtrace/frequenzrechner/, a byte-identical copy of HDTools/core/frequenzrechner/ (mirrored with HDTools/tools/frequenzrechner_spiegeln.py; tests/test_frequenzrechner.py fails on drift). The HDTools plug-in, this analyzer and hdtools-web calculate the same lines with it and know the same knowledge base fft_wissen.json (spindles with bearing geometry or cage factor, machine types with units, limit curves, documented cases). New compared with the first version: every shaft has a role (role: wheel, workpiece, dresser, pump, hydraulic, belt, conveyor, feed) and units a piston/vane count (teeth with teeth_label) and the flag vfd (frequency converter); every line carries its order at the workpiece (workpiece_order, reference reference, normally the workpiece spindle at its speed in the last gear); the answer of /api/frequencies contains diagnose with conclusion, ambiguity and the test that separates two close candidates (shift test: a pump on the mains moves with 1/n at a different workpiece speed but stays put at spindle speed ±5 %; a bearing follows both). Changes belong in the HDTools source, never in the copy.

A peak at 148 Hz says nothing on its own. It says something as soon as you know that the grinding spindle runs at 1776 min⁻¹, that its bearing has 9 rolling elements and that 148 Hz is that bearing's outer race passing frequency. The calculator in the Frequency calculator tab does this arithmetic — in both directions.

  • Forwards: calculate all suspected frequencies from the process data and look them up in the measured spectrum. This is the direction that helps at a running machine, and it is possible here because the speeds are in the system anyway — the suspected frequencies follow the machine instead of being retyped at every change of speed.
  • Backwards: enter a frequency you have read off (or click a peak in the spectrum) and get the possible causes sorted by deviation. This is the same quick analysis as in the HDTools plug-in FFT (plug-in store).

What is calculated

FamilyFormulaWhat for
Rotational frequency + ordersn/60 · horder 1 unbalance, order 2 misalignment
Tooth/groove passingn/60 · Zgrooves on the workpiece, segments of the wheel, pump vanes
Cage FTFf/2 · (1 − d/D·cos α)loose or broken cage
Outer race BPFOZ·f/2 · (1 − d/D·cos α)raceway damage in the loaded zone
Inner race BPFIZ·f/2 · (1 + d/D·cos α)raceway damage, modulated with the speed
Rolling element BSFD·f/(2d) · (1 − (d/D·cos α)²)rolling element damage, 2×BSF often stronger
SidebandsBPFI ± f, BSF ± fconfirm a modulated defect
Ball screwfeed/(60·pitch)waviness from the feed drive
Mains50 Hz · helectrical; 2× is the magnetic force
Free ordersn/60 · orderUPR values from a roundness measurement

The bearing frequencies are the reason a spectrum can do more than an RMS limit value: all four are non-integer multiples of the speed. Nothing else in the machine produces a line at 3.568 × speed.

Quick plausibility check on an entered geometry: BPFO + BPFI must equal Z·f. If it does not, a diameter has been entered wrongly.

Without bearing geometry

If only the number of rolling elements is known, an estimate is used:

FTF ≈ 0.4·f     BPFO ≈ 0.4·Z·f     BPFI ≈ 0.6·Z·f

Such rows are marked estimated in the table and drawn dashed in the spectrum. The rules of thumb are accurate to 10–20 % — far too coarse to confirm a defect, and just good enough for "look in this region". The marking is there because a rule-of-thumb line that happens to sit next to a real peak is exactly the road to a wrong diagnosis.

Prominence — the column that matters

The amplitude at a calculated frequency alone means nothing; a broadband spectrum has an amplitude everywhere. The table therefore shows

  • the amplitude at the calculated frequency,
  • the strongest value in the search window and where it lies,
  • the prominence: this peak divided by the median of its surroundings (ten windows on each side, the window itself left out so that the peak does not raise its own base).

Below roughly 2 there is nothing there, however high the absolute number looks. The filter only conspicuous ones hides everything below that.

If a code has been taught in, a vs. reference column is added: the same peak in the good state against now.

Where the speeds come from

A shaft with an assigned channel takes the measured speed from the control — the row shows this ("measured: 1778 min⁻¹ (S1.speed)"). Without a channel the entered value applies. If only the peripheral speed is known, as is usual for a grinding wheel, v [m/s] and Ø [mm] give the speed via n = v·60/(π·d) — the same conversion as in HDTools.

Order of precedence: measured beats entered beats v/d. A typed value is what the machine was doing on the day someone wrote the configuration.

Where the values are kept

What is entered in the panel goes via Save values into frequenzen.json (path from frequencies.path, relative to the folder of the configuration). This file wins over the frequencies section of the configuration at start-up — bearing data typed in at the machine is newer than what was entered during commissioning.

Example

A 6206 at the grinding spindle: Z = 9, ball diameter 9.53 mm, pitch circle 46.0 mm, contact angle 0°. At 1800 min⁻¹ (f = 30 Hz):

FTF    11.89 Hz   order 0.396
BPFO  107.03 Hz   order 3.568
BPFI  162.97 Hz   order 5.432
BSF    69.30 Hz   order 2.310
Check: BPFO + BPFI = 270.0 Hz = 9 · 30 Hz   ✓

In the simulator the adjustable bearing defect sits at 3.6 wheel orders — close enough to this 3.568 that the calculator finds it: with bearing defect at 0.8, BPFO and BPFO ×2 are the only lines with a prominence ≥ 1.8, at peaks around 108 Hz and 217 Hz. That is exactly how it is meant to work.

On the segment 922002 rough grinding the prominence drops to ~1.5 because the grinding noise lies broadband on top of it — physically correct, and a good reason to look for a bearing defect in the segment 910000 workpiece change, where the machine turns without load.

The numbers above are a calculated example, not a statement about your spindle. The real bearing designation and geometry should be entered once and saved.

What the calculator cannot do

It only knows frequencies that come from a rotation or from the mains. Chatter is not one of them — it is a structural property and lies where the machine is compliant, independent of any speed. If the backward search finds no cause closer than 2 %, it says so explicitly instead of giving the best hit of a poor field as an answer.

For the balance quality of grinding and dressing wheels (at working and maximum speed) the calculator exists in the HDTools plug-in FFT; it is not reproduced in the interface of this analyzer.