dechatter 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/README.md +23 -2
- package/package.json +1 -1
- package/web/dechatter.zip +0 -0
- package/web/widget.js +14 -3
- package/web/wizard.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,26 @@ What changed for people who use the dechatter widget and command line. The forma
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.4.0] - 2026-11-23
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Lanes**: a long block is split into lanes along X. When a lane's face runs out of
|
|
14
|
+
width, the next round moves on to the next lane, a fresh face at Y0 at the same height
|
|
15
|
+
above the vise jaws, without remounting or re-zeroing. Each pass cuts one lane and stops
|
|
16
|
+
just short of the next; a lane is never cut back further than the one before it. By
|
|
17
|
+
default the number of lanes is worked out from the stock length: as many as leave every
|
|
18
|
+
cut at least 6 s long at the fastest test speed (`min_cut_s` in `[planner]`, the
|
|
19
|
+
wizard's Shortest cut to listen to), and 1 on a short block, as before. The wizard shows
|
|
20
|
+
the number; `lanes` in `[stock]` (Lanes along X, under Advanced) sets it by hand. The
|
|
21
|
+
session's first round settles it. The widget, the program, `dechatter plan` and the
|
|
22
|
+
report say which lane a round cuts.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Sessions planned by this version cannot be opened by dechatter 0.3.0, whose plans lack the
|
|
27
|
+
lane. Sessions from 0.2.0 and 0.3.0 load as they are and keep cutting the whole length.
|
|
28
|
+
|
|
9
29
|
## [0.3.0] - 2026-11-12
|
|
10
30
|
|
|
11
31
|
### Changed
|
|
@@ -160,7 +180,8 @@ What changed for people who use the dechatter widget and command line. The forma
|
|
|
160
180
|
Sessions export to a zip the command line reads, and import in another browser.
|
|
161
181
|
- Published on npm as `dechatter`, with third-party notices for the bundled Pyodide.
|
|
162
182
|
|
|
163
|
-
[Unreleased]: https://github.com/pedropaulovc/dechatter/compare/v0.
|
|
183
|
+
[Unreleased]: https://github.com/pedropaulovc/dechatter/compare/v0.4.0...HEAD
|
|
184
|
+
[0.4.0]: https://github.com/pedropaulovc/dechatter/compare/v0.3.0...v0.4.0
|
|
164
185
|
[0.3.0]: https://github.com/pedropaulovc/dechatter/compare/v0.2.0...v0.3.0
|
|
165
186
|
[0.2.0]: https://github.com/pedropaulovc/dechatter/compare/v0.1.1...v0.2.0
|
|
166
187
|
[0.1.1]: https://github.com/pedropaulovc/dechatter/compare/v0.1.0...v0.1.1
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ a page the microphone on those. Then, in the widget:
|
|
|
74
74
|
setup. Each round keeps a copy of the setup it was planned from. Once a round has been
|
|
75
75
|
cut, the setup can no longer change in anything that shapes the cut or its sound (the
|
|
76
76
|
machine's weight and spindle control, the tool, the work material, depth, direction and
|
|
77
|
-
chip load, the stock length, the dwell and the coolant), since the stability map belongs
|
|
77
|
+
chip load, the stock length and lanes, the dwell and the coolant), since the stability map belongs
|
|
78
78
|
to the setup it was measured with: start a new session instead. What only bounds the
|
|
79
79
|
search may still change (the machine's speed range and power, the cut's speed and width
|
|
80
80
|
limits and shallower depths), as may the machine's name, the safe height, clearance,
|
|
@@ -274,7 +274,28 @@ Three things differ from the paper, which tests one cut at a time under closed-l
|
|
|
274
274
|
width that was stable where the chatter was heard, so the planner tries them.
|
|
275
275
|
|
|
276
276
|
The stock runs out before the search does on small blocks. `plan` then asks for fresh stock;
|
|
277
|
-
mount it, reset the face to `Y0` and run `dechatter plan --new-stock
|
|
277
|
+
mount it, reset the face to `Y0` and run `dechatter plan --new-stock` (in the widget: plan on
|
|
278
|
+
the "fresh block, face at Y0").
|
|
279
|
+
|
|
280
|
+
### Lanes: fresh faces without remounting
|
|
281
|
+
|
|
282
|
+
A long block is split into lanes along X. By default there are as many as leave every cut
|
|
283
|
+
at least 6 s long at the fastest test speed, where cuts are shortest (`min_cut_s` in
|
|
284
|
+
`[planner]`, the wizard's Shortest cut to listen to), so a short block keeps a single lane;
|
|
285
|
+
the wizard shows the number it works out. `lanes` in `[stock]` (Lanes along X, under
|
|
286
|
+
Advanced in the wizard's Stock step) sets it by hand. The session's first round settles it:
|
|
287
|
+
it stays fixed even if a later change to the speed limits would allow more. The lanes are
|
|
288
|
+
used one after another, starting at the end the cutter meets first (the left end in
|
|
289
|
+
conventional milling, the right in climb). When a lane's face
|
|
290
|
+
has room for fewer of a round's cuts than a fresh lane would, the round moves to the next
|
|
291
|
+
lane: a new face at `Y0`, at the same height above the vise jaws as the first, with the same
|
|
292
|
+
work zero. Each pass then cuts one lane: it starts a cutter diameter clear of the lane
|
|
293
|
+
before, which is already cut back, and stops just short of the next lane, still untouched,
|
|
294
|
+
then backs off the face (the last lane runs out past the end of the stock as usual). A
|
|
295
|
+
lane is never cut further back than the one before it, since the cutter crosses that one
|
|
296
|
+
on its way in, and each lane must be at least twice the cutter diameter long. A deeper
|
|
297
|
+
depth still needs fresh stock, since the cutter would cross the earlier lanes below where
|
|
298
|
+
they were cut. The number of lanes cannot change once a round was cut.
|
|
278
299
|
|
|
279
300
|
## Development
|
|
280
301
|
|
package/package.json
CHANGED
package/web/dechatter.zip
CHANGED
|
Binary file
|
package/web/widget.js
CHANGED
|
@@ -965,9 +965,11 @@ function renderStep() {
|
|
|
965
965
|
};
|
|
966
966
|
const unknownUnits = cnc.link === 'ready' && cnc.units === null;
|
|
967
967
|
step.append(
|
|
968
|
-
el('p', {}, `Round ${round.round}: ${tests} test cuts ${length(round.depth_mm, units(), { mmToo: true })} deep, about ${minutes(round.run_time_s)} plus rapids
|
|
968
|
+
el('p', {}, `Round ${round.round}: ${tests} test cuts ${length(round.depth_mm, units(), { mmToo: true })} deep, about ${minutes(round.run_time_s)} plus rapids.${laneText(round)} The front face ends at Y ${length(round.face_y_end_mm, units(), { mmToo: true })}.`),
|
|
969
969
|
el('ol', {},
|
|
970
|
-
el('li', {},
|
|
970
|
+
el('li', {}, round.lane > 1 && round.face_y_start_mm === 0
|
|
971
|
+
? 'A fresh lane: keep the zero the first lane was cut with (X at the left end of the stock, Y on its front face as first mounted, Z on top).'
|
|
972
|
+
: 'Zero X at the left end of the stock, Y on its front face, Z on top.'),
|
|
971
973
|
el('li', {}, start, ' runs the round from here, one move at a time, and records it. Keep this tab open.', ...(unknownUnits ? [' cncjs has not reported G20 or G21 yet; the machine is in ', declare] : [])),
|
|
972
974
|
...(state.spindle === 'manual' ? [el('li', {}, `Before each of its ${speedChanges(round)} spindle speeds the round stops; set the speed shown here and press Continue.`)] : []),
|
|
973
975
|
),
|
|
@@ -980,6 +982,15 @@ function renderStep() {
|
|
|
980
982
|
}
|
|
981
983
|
}
|
|
982
984
|
|
|
985
|
+
// Where along the stock a round cuts, when the stock is in lanes.
|
|
986
|
+
function laneText(round) {
|
|
987
|
+
if (!round.lanes || round.lanes === 1) {
|
|
988
|
+
return '';
|
|
989
|
+
}
|
|
990
|
+
const [first, last] = round.lane_x_mm;
|
|
991
|
+
return ` It cuts lane ${round.lane} of ${round.lanes}, X ${length(first, units())} to ${length(last, units())}.`;
|
|
992
|
+
}
|
|
993
|
+
|
|
983
994
|
function verdictCell(round, pass) {
|
|
984
995
|
if (pass.kind !== 'test') {
|
|
985
996
|
return el('td', {}, pass.kind);
|
|
@@ -1013,7 +1024,7 @@ function renderRound() {
|
|
|
1013
1024
|
return;
|
|
1014
1025
|
}
|
|
1015
1026
|
const kind = round.planner === 'sweep' ? ' (chip-load sweep)' : '';
|
|
1016
|
-
$('round-title').textContent = `Round ${round.round}${kind}${round.analysed ? ' results' : ''}, ${length(round.depth_mm, units(), { mmToo: true })} deep`;
|
|
1027
|
+
$('round-title').textContent = `Round ${round.round}${kind}${round.analysed ? ' results' : ''}, ${length(round.depth_mm, units(), { mmToo: true })} deep${round.lanes > 1 ? `, lane ${round.lane} of ${round.lanes}` : ''}`;
|
|
1017
1028
|
$('passes').replaceChildren(
|
|
1018
1029
|
...round.passes.map((p) =>
|
|
1019
1030
|
el('tr', { className: p.kind === 'test' ? '' : 'prep' },
|
package/web/wizard.js
CHANGED
|
@@ -37,8 +37,10 @@ const INFO = {
|
|
|
37
37
|
'cut.chip_load_mm': `Feed per tooth, held constant for the whole session: feed = chip load × flutes × rpm. The default comes from the work material, the cutter diameter and the machine weight. Chatter barely depends on it, so the default is fine for mapping; the chip-load sweep offered once the map converges finds how far the best cut can be pushed. Very light chip loads make narrow cuts rub and squeal, which can pass for chatter. ${FIXED}`,
|
|
38
38
|
'cut.speed_min_rpm': `The slowest test speed. Default: a quarter of the fastest, and no lower than the machine allows. ${FREE}`,
|
|
39
39
|
'cut.speed_max_rpm': `The fastest test speed. Default: the machine's top speed or the material's surface-speed limit for this cutter, whichever is lower. ${FREE}`,
|
|
40
|
-
'stock.length_mm': `Along X. Every pass cuts the full length. Work zero X is the left end. ${FIXED}`,
|
|
40
|
+
'stock.length_mm': `Along X. Every pass cuts the full length, or its lane's. Work zero X is the left end. ${FIXED}`,
|
|
41
41
|
'stock.width_mm': `Along Y: how much the test may cut back from the front face. Work zero Y is the front face as first mounted. ${FREE}`,
|
|
42
|
+
'stock.lanes': `Splits the stock length into equal lanes along X, used one after another from the end the cutter meets first. When a lane's face runs out of width, the next round moves to the next lane: a fresh face at Y0 at the same height above the vise jaws, with no remounting or re-zeroing. Each pass then cuts one lane and stops just short of the next. A later lane may only be cut back as far as the one before it, and each lane must be at least twice the cutter diameter long. Default: as many lanes as leave every cut at least the shortest cut to listen to (Planner step) at the fastest test speed; 1 on a short block. The session's first round settles the number. ${FIXED}`,
|
|
43
|
+
'planner.min_cut_s': 'Bounds the automatic number of lanes: each cut at the fastest test speed lasts at least this long. Longer cuts give steadier verdicts; shorter ones let more lanes fit. Default: 6 s.',
|
|
42
44
|
'program.coolant': `Coolant noise makes chatter harder to hear: none is best for detection. ${FIXED}`,
|
|
43
45
|
'program.dwell_s': `Before each cut the spindle runs in the air beside the stock, already at depth. That lets it reach speed and records the quiet sound each cut is compared with. Do not shorten it much. With a manual spindle, the time at each M0 stop comes on top. ${FIXED}`,
|
|
44
46
|
'program.clearance_mm': `The cutter plunges in the air this far beyond the end of the stock, and backs off this far from the face after each cut. The plunge must never touch the stock. ${FREE}`,
|
|
@@ -110,6 +112,7 @@ export const STEPS = [
|
|
|
110
112
|
fields: [
|
|
111
113
|
{ at: 'stock.length_mm', label: 'Stock length (X)', type: 'length', note: 'Every pass cuts the full length.' },
|
|
112
114
|
{ at: 'stock.width_mm', label: 'Stock width to use (Y)', type: 'length', note: 'Material the test may consume from the front face.' },
|
|
115
|
+
{ at: 'stock.lanes', section: 'advanced', label: 'Lanes along X', type: 'int', optional: true, placeholder: 'automatic', note: 'A fresh face without remounting, at the same height above the jaws.' },
|
|
113
116
|
{ at: 'program.coolant', section: 'advanced', label: 'Coolant', type: 'choice', options: [['none', 'none'], ['flood', 'flood'], ['mist', 'mist']], note: 'Coolant noise makes chatter harder to hear.' },
|
|
114
117
|
{ at: 'program.dwell_s', section: 'advanced', label: 'Pause at speed before each pass', type: 'number', unit: 's' },
|
|
115
118
|
{ at: 'program.clearance_mm', section: 'advanced', label: 'Clearance around the stock', type: 'length' },
|
|
@@ -130,6 +133,7 @@ export const STEPS = [
|
|
|
130
133
|
{ at: 'planner.stop_improvement', section: 'advanced', label: 'Stop when a cut would add less than', type: 'number', note: 'As a fraction of the best removal rate so far.' },
|
|
131
134
|
{ at: 'planner.chip_load_sweep_low', section: 'advanced', label: 'Chip-load sweep from', type: 'number', unit: '×', note: 'Times the session\'s chip load.' },
|
|
132
135
|
{ at: 'planner.chip_load_sweep_high', section: 'advanced', label: 'Chip-load sweep up to', type: 'number', unit: '×' },
|
|
136
|
+
{ at: 'planner.min_cut_s', section: 'advanced', label: 'Shortest cut to listen to', type: 'number', unit: 's', note: 'Sets how many lanes the stock is split into, when that is left empty.' },
|
|
133
137
|
],
|
|
134
138
|
},
|
|
135
139
|
];
|