@rulecad/cad 0.7.56 → 0.7.58
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/AGENTS.md +103 -1
- package/CHANGELOG.md +241 -0
- package/EXAMPLES.md +782 -2
- package/README.md +719 -8
- package/TUTORIAL.md +2 -0
- package/bin/cad.mjs +135 -29
- package/lib/assembly.mjs +83 -17
- package/lib/beams.mjs +46 -13
- package/lib/bought.mjs +41 -5
- package/lib/buildpage.mjs +8 -3
- package/lib/edit.mjs +10 -4
- package/lib/fasten.mjs +279 -47
- package/lib/fittings.mjs +313 -0
- package/lib/framebuild.mjs +463 -0
- package/lib/framecheck.mjs +831 -0
- package/lib/framegen.mjs +111 -0
- package/lib/frameheat.mjs +94 -0
- package/lib/frameprint.mjs +277 -0
- package/lib/frames.mjs +5 -3
- package/lib/framesize.mjs +261 -0
- package/lib/guides.mjs +354 -0
- package/lib/jigs.mjs +240 -0
- package/lib/joins.mjs +263 -0
- package/lib/kit.mjs +190 -0
- package/lib/links.mjs +11 -3
- package/lib/list.mjs +28 -8
- package/lib/loads.mjs +12 -4
- package/lib/measured.mjs +86 -17
- package/lib/motors.mjs +7 -3
- package/lib/optimise.mjs +18 -3
- package/lib/order.mjs +28 -14
- package/lib/panels.mjs +220 -0
- package/lib/plates.mjs +37 -16
- package/lib/services.mjs +132 -0
- package/lib/sheet.mjs +15 -1
- package/lib/slotnuts.mjs +159 -0
- package/lib/task.mjs +43 -3
- package/lib/wires.mjs +2 -1
- package/package.json +6 -6
- package/schemas/assembly.schema.json +34 -9
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ npx cad import-kle layout.json keyboard/mine # a layout from keyboard-layout
|
|
|
44
44
|
npx cad clone <github link to a .kicad_pcb> sea_picro # a published board's circuit, into rules/, to redraw by rules
|
|
45
45
|
npx cad measure cover.3mf --rules cover # a model from elsewhere, measured into draft rules
|
|
46
46
|
npx cad measure beam.stl --profile profile-2020-mine # a beam's profile from its maker's model or a DXF of its section
|
|
47
|
+
npx cad rules draft profile 2020-mine # a beam's profile to fill from its maker's spec sheet; then cad rules check and draw
|
|
47
48
|
npx cad match legion-go/rail cover.3mf # how closely a design matches that model, both ways
|
|
48
49
|
```
|
|
49
50
|
|
|
@@ -278,6 +279,20 @@ add what a model cannot say: the maker, the alloy, a material set for its mass,
|
|
|
278
279
|
outline is the model's shape, so it goes into your own workspace and nowhere else: the kit publishes no maker's
|
|
279
280
|
outline, and under a non-commercial, no-derivatives or share-alike licence the command says to keep it there.
|
|
280
281
|
|
|
282
|
+
**A beam's profile from its spec sheet.** `cad rules draft profile <name>` writes `rules/<name>.json` with every field
|
|
283
|
+
a profile can have, each with a starting value, `"kind": "estimate"`, a rule saying what the field is and a source
|
|
284
|
+
that starts `DRAFT`
|
|
285
|
+
(`cad rules draft slot <name>` and `slot_nut <name>` do the same for a slot family and a slot nut). Fill each field the
|
|
286
|
+
sheet gives (its value, `"kind": "spec"`, the sheet and page as `source`, the date as `checked`) and delete the rest.
|
|
287
|
+
`cad rules check <name>` then holds it to the vocabulary, draws the section from its dimensions and its slot
|
|
288
|
+
family's, and warns where the sheet's area, second moments or mass per metre differ from the drawn outline's by more
|
|
289
|
+
than 5% (`profile.section.*`: check the typed figure first; if it is right the drawing lacks a shape, such as corner
|
|
290
|
+
hollows, and the frame checks use the sheet's figures anyway); while any field's source is still the draft's it warns
|
|
291
|
+
`rules.draft`, naming each.
|
|
292
|
+
`cad rules draw <name>` writes `<name>.svg`, the section to scale with each slot and bore dimensioned, to hold against
|
|
293
|
+
the sheet's drawing. [The frames guide](https://jonibach.github.io/rulecad/docs/building-frames/) walks one from a
|
|
294
|
+
sheet to a checked box.
|
|
295
|
+
|
|
281
296
|
## Assemblies
|
|
282
297
|
|
|
283
298
|
`projects/<project>/assemblies/<name>.json` places objects together. Positions are expressions over rules and the
|
|
@@ -391,6 +406,7 @@ starts and stops. From that the check says:
|
|
|
391
406
|
| Finding | What it checks |
|
|
392
407
|
|---|---|
|
|
393
408
|
| `fasten.holes` | One axis runs from under the head through every part: a hole 0.05 mm or more off it fails, with the distance |
|
|
409
|
+
| `fasten.slot` | Into a beam's slot: each screw over a slot's centre line within its hole's play, square to the face and along the beam (see Fastening into a slot, under Beams) |
|
|
394
410
|
| `fasten.clearance` | Each part passed through has a clearance hole for the thread as drawn on this printer, between the close and the loose figure; it says what the hole measures and what it should be |
|
|
395
411
|
| `fasten.end` | The far end is a pilot, a hole to tap, a thread drawn to print, an insert's hole or a nut's seat of this thread (a pocket on the far face, or a slot across the screw partway along it, as `v.fixings.nutTrap` cuts), or a clearance hole with `nut`; into a motor, one of its own threaded mounting holes |
|
|
396
412
|
| `fasten.length` | The length chosen where none is given: the shortest sold length that fits the stack as measured (into a motor, the longest that stops short of the end of its thread). A given length is checked for reaching the far end, bottoming out in a blind hole (1 mm is kept at the tip) and standing more than a diameter proud |
|
|
@@ -490,7 +506,10 @@ then y, then z, as `rotate` does.
|
|
|
490
506
|
- **What holds each part:** in an assembly that moves, every part but the first turns or slides on a joint, or is
|
|
491
507
|
fastened to the first: by a `fasten` where screws do it, or by a fit with `"fastens": true` where pins, a press or a
|
|
492
508
|
clip do (named in the fit's note): `{ "a": "ring", "b": "case", "fastens": true, "note": "Two push pins" }`. A part only placed somewhere is
|
|
493
|
-
said (`assembly.loose`): a ring gear resting on its case would turn with its planets.
|
|
509
|
+
said (`assembly.loose`): a ring gear resting on its case would turn with its planets. A fit that fastens does not
|
|
510
|
+
move a part: one fastened only to a part a joint moves (a table to a carriage), but placed where it stands, stays
|
|
511
|
+
there in every pose and its mass is not carried, so it is said by name (`assembly.fastened`). Place it on the moving
|
|
512
|
+
part by an anchor or an address (`"at": "g1-carriage-1.top"`).
|
|
494
513
|
- **Onto a shaft:** `{ "a": "arm", "b": "crank", "engage": "arm.thick" }` checks that a part slid onto a shaft, a pin or a
|
|
495
514
|
peg goes that far onto it along the joint between them (`fit.engage`), not just against its end: an arm resting on
|
|
496
515
|
a shaft's end touches it face to face, as a seated one does, and nothing overlaps either way, so only this tells
|
|
@@ -520,13 +539,30 @@ An item can be a motor instead of a printed object: `{ "id": "drive", "motor": {
|
|
|
520
539
|
- `motor.torque`: what reaches the joint through the gears, against the load: a fail under 1 times, a warning under the margin. It says what its figures rest on. `motor.speed`: how fast it moves and how long its range takes. Stages pass on `stageEfficiency` of the power (0.95 a mesh, an estimate).
|
|
521
540
|
- `motor.holds`: with the power on (holding torque, or stall torque) and off (detent torque, a built-in gearbox's friction, a worm that locks, gears under 50% efficient, or `"brake": "a ratchet and pawl"` on the joint). Dropping with the power off is a warning: it may be what you want.
|
|
522
541
|
- `motor.mount`: the part a motor is fastened to (a `fasten` into the motor, or a fit that `fastens`), read as drawn: how thick it is at the screw holes against the screws' size, the screws' engagement in the motor's tapped holes (the screws as bought: their length past the plate, held to the motor's `mount_hole_depth`, at least one diameter, `engagement.steel`, or it fails; a motor item's `"screw"` may name a whole screw, `"M3x8 cap"`, to check that one), and the screws' bearing on the plastic under the motor's full torque. Its screws are counted in `cad list` and `cad order` (at the length sold that stays in the motor's thread, with the key that turns them). Then the whole part bent, by FE on the part as drawn (cubes, two across the plate at the screws): the motor's weight at its centre, along `gravity` in the pose it's checked in, and its full torque (the larger of its working and holding torque), both carried into the plate where the screws clamp it. The part is held at the joint that carries it, if one does; else where it meets the printed parts it's fastened to that sit below it; failing both, on its lowest face. It reports how far the shaft's tip moves (against the driven joint's seat, where that is on the same part, since the two move together), against the printer's `fit` clearance (or the motor's `"deflection"` in mm), and the peak stress against the material's `strength`; under 2 times either fails, and says what fixes it: the plate thickness that would do (bending goes with its cube), ribs, or how much stiffer a material would have to be. Cells this coarse read a plate 10 to 20% stiff, and a cell's stress is read at its centre, so the peak is scaled up to the surface; it's an estimate, said as one. Kept in `.cache/mount`.
|
|
523
|
-
- `motor.heat`: the motor's case against the softening point of the material the project prints in. Too hot says the current to set the driver to.
|
|
542
|
+
- `motor.heat`: the motor's case against the softening point of the material the project prints in. Too hot says the current to set the driver to; the motor item's `current` set to it is read (the maker's rise at rated current, scaled by the current squared, as the heat is), so the check then passes.
|
|
524
543
|
- A `"shaft": true` fit (or `"press"`) between a motor and what it drives reads the bore from the part as drawn: that it's on the shaft (`shaft.seat`), that its flat is there (`shaft.flat`; the shaft turns to meet it, so where the flat faces doesn't matter), how much of the flat it grips (`shaft.grip`), and, pressed on, the hoop stress in the hub (`shaft.hoop`).
|
|
525
544
|
- `cad preview --check` of an assembly with a motor writes `<assembly>-check.png`: the same six views, with a label at each joint the motor's torque passes through (what reaches it, and at the loaded joint the margin and whether it holds unpowered). The rest view never carries them.
|
|
526
545
|
- `cad preview` of an assembly with a motor draws each one at work beside the picture, as SVG: `<assembly>-<motor>-curve.svg`, its torque against speed at the output with the load and the working speed marked, and `<assembly>-<motor>-train.svg`, the torque from its shaft through each stage to the joint with the load, against what the load needs there, and whether it holds with the power on and off. The numbers are the check's.
|
|
527
546
|
|
|
528
547
|
### Beams
|
|
529
548
|
|
|
549
|
+
A frame is beams and the joins between them, every beam a profile from a rule set and every join declared, so its
|
|
550
|
+
drilling, screws and stiffness follow. [The frames guide](https://jonibach.github.io/rulecad/docs/building-frames/)
|
|
551
|
+
walks one from a spec sheet to a checked box; this section is the reference. In commands:
|
|
552
|
+
|
|
553
|
+
| Command | What it does |
|
|
554
|
+
|---|---|
|
|
555
|
+
| `cad rules draft profile <name>`, `cad rules check <name>`, `cad rules draw <name>` | A profile from its spec sheet, checked and drawn (Models from elsewhere, above) |
|
|
556
|
+
| `cad measure <beam.stl> --profile <name>` (or a DXF) | A profile from the maker's model or a DXF of its section |
|
|
557
|
+
| `cad add beam <project>/<assembly> --id x1 --profile 2020-misumi-hfs5 --from 0,0,0 --to 300,0,0` | A beam placed by its ends |
|
|
558
|
+
| `cad add join <project>/<assembly> --kind blind --a y1.a --b x1.back@120` | Two beams joined (Joins, below) |
|
|
559
|
+
| `cad frame <project>/<assembly>` | A generated frame's beams and joins (`--expand` writes them out; `--size` chooses the lightest profiles) |
|
|
560
|
+
| `cad check <project>/<assembly>` | The joins, screws and nuts, then the frame solved: `frame.deflection`, `frame.stress`, `frame.buckling`, `frame.rack`, `frame.frequency`, `frame.square`, `frame.heat`, `beam.printable`; `--sweep` slides each guide through its travel |
|
|
561
|
+
| `cad list`, `cad beams` (`--jigs`), `cad order`, `cad plates`, `cad kit` | The cut list and what to buy, a sheet per beam and the jigs, the build from bars to a square frame, the printed parts on plates, and all of it in one folder (Building it, below) |
|
|
562
|
+
| `cad measured <project>/<assembly> frame.square.<bay>=<mm>` | A squared bay's diagonal difference, measured; the joint rig's and the beam coupon's figures the same way |
|
|
563
|
+
|
|
564
|
+
Guides (rails, V-wheels, rods, a printed slider, a lead screw) put motion on a beam: Guides, below.
|
|
565
|
+
|
|
530
566
|
An item can be a beam, a length of an aluminium extrusion, a tube or a bar from `@rulecad/frames`:
|
|
531
567
|
|
|
532
568
|
```json
|
|
@@ -536,15 +572,23 @@ An item can be a beam, a length of an aluminium extrusion, a tube or a bar from
|
|
|
536
572
|
- `"profile"` names the profile (`2020-misumi-hfs5`, `profile-4040-item-8`, or a set in this workspace's `rules/`).
|
|
537
573
|
`"length"` is mm from end `a` to end `b`, a number or an expression (`"x1.length"`). Placed by its ends, the length
|
|
538
574
|
may be left out: it is the distance from `from` to `to`, and a length that disagrees with them is refused with both.
|
|
539
|
-
`"material"` names a material set in place of the profile's alloy. `"printed": true`
|
|
540
|
-
|
|
575
|
+
`"material"` names a material set in place of the profile's alloy. `"printed": true` makes it a printed part
|
|
576
|
+
(`@rulecad/frames` printed beams): drawn solid, weighed on `cad list` by the plastic its walls and infill lay, laid
|
|
577
|
+
on a plate as it prints by `cad plates`, off the cut list. `"printed": { "pose": "standing", "walls": 4, "infill":
|
|
578
|
+
0.6, "end": "nut" }` says how it prints; a tapped end becomes a heat-set insert (or a captive nut). The printable
|
|
579
|
+
profiles (`2020-printed` and its sizes) print lying down; another profile prints standing up, and its findings say
|
|
580
|
+
so where it cannot lie down. Standing up, a metal profile's tapped end takes its screw in its bore's place (an
|
|
581
|
+
insert, or with `"end": "nut"` a captive nut: MISUMI's 2020 takes an M3 nut), and a printed beam in its place is
|
|
582
|
+
drawn with its ends' fixings cut in, so a screw into its end is followed into them. A foot under it names that
|
|
583
|
+
thread (`"fitting": { "kind": "foot", "profile": "2020-misumi-hfs5", "thread": "M3" }`); a screw of another thread
|
|
584
|
+
into a printed end fails `fasten.end` and names the thread to use. EXAMPLES chapter 17 prints a whole case so.
|
|
541
585
|
- Placed by its ends, end `a` is at `from` and end `b` at `to`; at roll 0 its top faces up (+z), or +y when it stands
|
|
542
586
|
upright, and `"roll"` turns it about its own axis, in degrees. Or place it with `at` and `rotate` as any item, in its
|
|
543
587
|
own frame: end `a` at the origin, the beam up +z, its top +y. The face names and a picture are in the
|
|
544
588
|
`@rulecad/frames` README ("Face names in an assembly").
|
|
545
589
|
- A beam is bought: drawn faint, never on a plate, on `cad list` by profile and length (`2 × profile-2020-misumi-hfs5
|
|
546
590
|
x 300 mm a beam 150 g each`, weighed by the maker's mass per metre where the sheet gives one), and in the overlap
|
|
547
|
-
check by its envelope, a plain box. `cad check` says each beam's mass beside the sheet's, and warns of a length
|
|
591
|
+
check by its envelope, a plain box less any V tracks along it. `cad check` says each beam's mass beside the sheet's, and warns of a length
|
|
548
592
|
longer than the profile is sold in. Its numbers are values: `x1.length`, `x1.width`, `x1.height`, `x1.mass`.
|
|
549
593
|
- `"ops"` lists the operations on it, each placed by an address on the beam and dimensioned from end `a`: `cut`,
|
|
550
594
|
`mitre`, `tap`, `access`, `drill`, `counterbore`, `pocket`, `notch` and `deburr`. `{ "op": "tap", "at": "a", "thread":
|
|
@@ -573,19 +617,686 @@ x along the beam, turned by its `rotate` in that frame; it moves with the beam.
|
|
|
573
617
|
with the beam's length: `"top@320" is past the end of profile-2020-misumi-hfs5 x 300: it is 300 mm long`. In a fit, an
|
|
574
618
|
address stands for the faces near it, as `item@anchor` does (`"within"`, 10 mm by default).
|
|
575
619
|
|
|
620
|
+
**Joins.** `"joins"` says how beams are held to each other. Each names an end of one beam (`a`), a place on another
|
|
621
|
+
(`b`: a face with a distance where a's end meets it, or an end for a splice, a mitre or a corner) and its kind:
|
|
622
|
+
|
|
623
|
+
```json
|
|
624
|
+
"joins": [{ "kind": "blind", "a": "y1.a", "b": "x1.back@120" }]
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
- A join puts its operations on both beams before they are built, so they are on the cut list and the sheets: a
|
|
628
|
+
`blind` join taps the end of `a` (`tap M5 x 18.5 at a`) and drills an access hole across `b` from the opposite
|
|
629
|
+
face (`access Ø5.3 at front.1@120`), sized for the key of the join's own head (an M5 button head's 3 mm key), and
|
|
630
|
+
an `end-tap` join drills a clearance hole right across `b` instead. A beam's own operation at the same place, written
|
|
631
|
+
either way (`front@120` or `front.1@120`), is the same hole, not a second one.
|
|
632
|
+
- Its screws join `"fasten"`, so they are followed, checked and counted as any fasten's are (`1 × M5x12 button` on
|
|
633
|
+
`cad list`). A blind join's button head sits inside b's slot under its lips; an end-tap's cap head sits on the lips
|
|
634
|
+
of the slot across b. `fasten.seat` holds the head to the slot (wider than the opening, and inside the slot, no
|
|
635
|
+
wider than the cavity and no taller than the room under the lips), `fasten.end` takes the thread tapped in a's end
|
|
636
|
+
bore, and `fasten.access` follows the key through the access hole. `"screw"` names another screw (`"M5x12 button"`).
|
|
637
|
+
- A `mitre` join (`"b": "y1.a"`, an end) cuts both ends at the angle that halves the corner, about the face the corner
|
|
638
|
+
lies in, each beam's length on the outside of the corner, worked out from where the two beams are (both placed by
|
|
639
|
+
their ends). Its corner key or plate comes later.
|
|
640
|
+
- Printed fittings are sized from the project's plastic (`material` in project.json): `pla` and `petg` by name.
|
|
641
|
+
Another plastic is read from its own rule set (`rules/abs.json`), which must give `strength`, `modulus` and
|
|
642
|
+
`density`; where there is none, the build is refused by name.
|
|
643
|
+
- A `bracket`, `gusset` or `splice` join with `"fitting": "printed"` adds its printed fitting from `@rulecad/frames`
|
|
644
|
+
(its README, Printed fittings) as an item of its own (`y1-x1-bracket`), placed from where the two beams are (both
|
|
645
|
+
placed by their ends), and a `fasten` for each leg or arm into its beam's slot, with the slot nut the fitting was
|
|
646
|
+
drawn for. So the screws are chosen, checked and counted like any fasten's (`2 × M5x12 cap` and their slot nuts),
|
|
647
|
+
the fitting's grams are on `cad list` under Printed, and `join.stiffness` takes the fitting's own bending stiffness
|
|
648
|
+
by finite elements in place of the estimate (its twist stays an estimate). `cad check` says the fitting's own
|
|
649
|
+
findings of it: `fitting.margin` at its named load, `fitting.screw` (the length sold it was thickened for),
|
|
650
|
+
`fitting.stiffness`, `fitting.mass` and the rest (@rulecad/frames' README lists them).
|
|
651
|
+
- A bracket goes on the side of a with more of b, its base leg on b's face and its upright on a's face that looks
|
|
652
|
+
along b; refused by name where its leg would run past b's end there.
|
|
653
|
+
- A gusset lies on a face of each beam that looks the same way, in one plane: an L at a corner, a T where b runs
|
|
654
|
+
on both sides of a; refused where its arm has no room. Which face follows from the beams' directions; `"face"`
|
|
655
|
+
names the other one of b's two faces square to a (the L turned over), so it can miss a third beam at the corner.
|
|
656
|
+
`"shape"` (`"L"` or `"T"`) asks for one: an L where a T would fit (a generated gantry's top side beams, where a
|
|
657
|
+
T's bar would stand in the moving beam's path), and a T is refused by name where b lacks room on one side or the
|
|
658
|
+
plate is turned over.
|
|
659
|
+
- A splice plate lies across two ends on a face they share.
|
|
660
|
+
- `"brace": true` braces a bracket; `"load"` (N) is the design load it is sized to about twice the margin at
|
|
661
|
+
(default 100); `"nut"` chooses the slot nuts' kind.
|
|
662
|
+
- An item may also be a printed fitting by itself: `{ "id": "br", "fitting": { "kind": "bracket", "profile":
|
|
663
|
+
"2020-misumi-hfs5" }, "at": "x1.top@130", "rotate": [90, 0, 0] }`. It is a printed part, joined and cut by Manifold
|
|
664
|
+
where the workspace has it; its anchors `b1`, `a1` (and `b2`, ... on a plate) lie on its screws' axes for a fasten's
|
|
665
|
+
`at`. The overlap check measures its body without its tongues, which stand in the slots.
|
|
666
|
+
- The printed parts for panels, doors, beams' ends and services are fitting items too (@rulecad/frames' README,
|
|
667
|
+
Panels and doors, Ends and feet, Services): `"kind"` is `panel-clip`, `panel-corner`, `slot-cover`, `panel-edge`, `gasket-strip`,
|
|
668
|
+
`hinge`, `handle`, `latch`, `magnet-catch`, `end-cap`, `foot`, `levelling-foot`, `castor-plate`,
|
|
669
|
+
`stacking-foot`, `nut-carrier` (a printed block that slides in a slot holding a hex nut or a heat-set insert: `"face"`,
|
|
670
|
+
`"thread"`, `"holds"`, `"load"`; the nut it holds goes on the list) or `rail-jig` (`"rail": "rail-mgn12"`), with the model's own options (`"sheet": 3`, `"length": 200`). A hinge is two items, `"part":
|
|
671
|
+
"frame"` and `"part": "door"`, and a levelling foot's pad is `"part": "pad"`. An end part goes at the end's address
|
|
672
|
+
(`"at": "x1.a"`); its anchor `b1` is its screw's, and its `ops` say the tap the end needs. In a mechanism, hold it
|
|
673
|
+
as anything else is held: a foot by a `fasten` of its screw into the beam (`{ "screw": "M5 cap", "through": ["foot1"],
|
|
674
|
+
"into": "p1", "at": ["foot1.b1"] }`, the beam's end tapped as its `ops` say), and an end cap by a fit that fastens,
|
|
675
|
+
its pegs a press fit (`"min": -5`). The overlap check measures an end cap without its pegs, which stand in the beam,
|
|
676
|
+
and an in-slot panel edge or a slot cover by what stands above the face alone: the rest lies in the slot by design.
|
|
677
|
+
A panel item (below) holds its sheet with clips; a panel corner or an in-slot edge is placed by hand as an item.
|
|
678
|
+
- A `bracket`, `gusset`, `splice`, `hidden` or `anchor` join with a bought fitting's set by name (`"fitting":
|
|
679
|
+
"fitting-motedis-bracket-20-b6"`, @rulecad/frames' README, Bought fittings) adds that fitting as an item placed
|
|
680
|
+
where the printed one would go: a reference drawn from its set, listed under Bought with its price. Its screws join
|
|
681
|
+
`"fasten"` into the set's nuts (`2 × M4x8 cap`, `2 × slot-nut-6-motedis-m4-hammer`), so the fasten checks hold them
|
|
682
|
+
as any fasten's; an inner connector's grub screws are part of it, and an anchor connector adds the hole its guide
|
|
683
|
+
needs, drilled across a (on the cut list). `join.stiffness` takes the set's own figures and says what they rest on
|
|
684
|
+
(an estimate in the set, until the joint rig measures it). A set made for another profile size or slot family
|
|
685
|
+
fails `fitting.fit` and places nothing; a set of the wrong kind for the join is refused by name. `"fitting":
|
|
686
|
+
"bought"` alone names the sets there are.
|
|
687
|
+
- The other kinds (`cube`, `pivot`, `printed`, and a mitre's key) are checked where they meet and carry their
|
|
688
|
+
stiffness; their fittings come in later releases, and each says so (`join.fitting`).
|
|
689
|
+
- A frame's bought fitting is an item too: `{ "id": "cap", "bought": "fitting-motedis-end-cap-20-b6", "at": "x1.b" }`
|
|
690
|
+
(an end cap, a levelling foot, a hinge). At a beam's address it caps the end for `join.end`, and `fitting.fit`
|
|
691
|
+
checks it against that beam's profile: a foot whose stem is not the end bore's thread fails.
|
|
692
|
+
- `cad list` prints each bought line's price where its set gives one, and a cost line: the bought items' total (and
|
|
693
|
+
the sets with no price), and the printed parts' plastic at the material's price a kilogram (`pla` and `petg` carry
|
|
694
|
+
one). Fixings and bars are not priced. Swap `"fitting": "printed"` for a bought set and list again to compare.
|
|
695
|
+
- `cad check` adds `join.geometry` (the end meets the face square and flush, where `b` says, on the slot's centre line
|
|
696
|
+
where the kind needs a slot: a beam 2 mm off the face fails with `a gap of 2 mm`, and one 5 mm along names the
|
|
697
|
+
address it does meet at), `join.end` (every beam end is joined or capped: an item placed at the end, such as a foot,
|
|
698
|
+
caps it), and `join.stiffness` (the spring each join puts at a's end when the frame is solved, from
|
|
699
|
+
`@rulecad/frames`' `JOIN_STIFFNESS`: every figure an estimate until the joint rig measures it, and the finding says
|
|
700
|
+
which, measured with its date or an estimate).
|
|
701
|
+
- `join.drop` predicts a beam held by one join and nothing else, with a `mass` load on it (on the beam or on an item
|
|
702
|
+
at one of its addresses), as a cantilever from that join: its drop is the beam's own bending, F L³ / 3 E I, and the
|
|
703
|
+
join turning on its spring k, F L² / k. It is a prediction `cad measured` takes as `<beam>.drop=<mm>`: the measured
|
|
704
|
+
drop less the beam's own bending gives the join's spring, k = F L² / (drop less F L³ / 3 E I), written as measured
|
|
705
|
+
to the rule the spring came from. That is the kind's figure in the workspace's `rules/joins.json` (part `joins`,
|
|
706
|
+
made from `@rulecad/frames`' estimates the first time: `blind_bending`, `end_tap_twist` and the rest, for a 20 mm
|
|
707
|
+
profile), a printed fitting's share of its own stiffness by finite elements (`bracket_printed_share`), or a bought
|
|
708
|
+
fitting's `bending_stiffness`. Its sentence becomes what was measured, and the drop goes in its source. A drop no
|
|
709
|
+
more than the beam bends by itself is refused, and a refusal of any value writes nothing, not even the joins set's
|
|
710
|
+
first copy. The joint rig in
|
|
711
|
+
`examples/bench/projects/benchmarks` (MEASURE.md, rows 34 to 37) is built for it, and also measures a slot nut's
|
|
712
|
+
hold along its slot, written to the nut's own set as `hold_along`.
|
|
713
|
+
- `cad add join <project>/<assembly> --kind blind --a y1.a --b x1.back@120 [--screw "M5 button"] [--fitting printed]`
|
|
714
|
+
adds one.
|
|
715
|
+
|
|
716
|
+
**The frame solved.** `cad check` solves an assembly that has joins (or a `"frame"`) as a frame of beam elements
|
|
717
|
+
(`@rulecad/fea/frame`) and reports six findings:
|
|
718
|
+
|
|
719
|
+
- `frame.solve` says what the model holds: the beams, the nodes (each beam is cut where a join, a mounted item, a
|
|
720
|
+
load, a named point or a support meets it), where it is held, the poses solved, and each join's spring with what
|
|
721
|
+
it rests on. A join puts the end of `a` on a node at `b`'s axis through a rigid link (the end stands half `b`'s
|
|
722
|
+
width off that axis) and its spring (`join.stiffness`) at that end. It is held where `"frame": { "supports": {
|
|
723
|
+
"z1.a": "pinned", "z2.a": "fixed" } }` says; else at the beam ends a foot, levelling foot, castor plate or
|
|
724
|
+
stacking foot (printed or bought) is fitted to; else at its lowest beam ends. Feet and lowest ends are pinned: held
|
|
725
|
+
from moving and free to turn, as a foot stands on a floor. Where lowest ends pinned would leave the frame free to
|
|
726
|
+
move (two posts and a rail leaning over out of their plane, a beam on the floor rolling with a post on it), a beam
|
|
727
|
+
lying with both ends lowest rests on its face (held from twisting about its length) and a beam standing on its
|
|
728
|
+
lowest end stands on its end face (fixed). That guess is a support nobody gave, which holds the frame where pinned
|
|
729
|
+
feet would leave it free (the portal tipping over out of its plane, below), so `frame.solve` warns: it names the
|
|
730
|
+
freedoms pinned feet would leave (`refs.free`) and the ends held in their place (`refs.guessed`), says that every
|
|
731
|
+
sag, rack, buckling and frequency figure rests on them, and asks for feet or `"frame": { "supports" }`.
|
|
732
|
+
`frame.rack`, `frame.buckling` and `frame.frequency` each say they rest on the guess (`refs.guessed`). Beams no support holds through joins are left out by
|
|
733
|
+
name, and so is what is mounted only on them, as not weighed (`refs.off`). A beam that rides a moving joint (a
|
|
734
|
+
gantry's cross beam on its carriages) is a load on the frame, named as riding (`refs.riding`), not part of it;
|
|
735
|
+
lying across two parallel beams at one level (a gantry's beam on its two side beams), its weight is shared between
|
|
736
|
+
them by the lever rule, though its joint is on one, and `refs.riding` gives each share. Where part of the frame can
|
|
737
|
+
move with nothing resisting it (a frame in one plane on pinned feet sways out of that plane; a beam pinned at both
|
|
738
|
+
ends spins on its own axis) and its loads do not move it that way, it is held there for the sag and the stresses,
|
|
739
|
+
and `frame.solve` names each such freedom (`refs.held`); `frame.rack` then warns that a push that way finds it
|
|
740
|
+
free. The modes and buckling count it free: `frame.frequency` gives a lowest mode of 0 Hz and warns, and where
|
|
741
|
+
the frame's squeezed beams lean it that way (a portal on pinned feet), `frame.buckling` fails it as tipping over
|
|
742
|
+
before anything buckles, at a factor of 0 (`refs.tipped`).
|
|
743
|
+
Loads that would move it that way leave the frame unsolved, with the freedoms named.
|
|
744
|
+
- The loads: each beam's own weight (its sheet's mass per metre), each item mounted on a beam (its mass at its
|
|
745
|
+
centre, as a force and a moment at the node where its chain of mounts meets the beam; a riding beam's sheet weight
|
|
746
|
+
at its middle the same way) and each `mass` in `"loads"`.
|
|
747
|
+
A mass on a moving joint mounted on a beam, such as a carriage on a guide, is solved at each end of its travel
|
|
748
|
+
(a slide in its middle too), at every named pose and as drawn; the worst is named.
|
|
749
|
+
- `frame.deflection`: the sag at each load's point, at each place in `"frame": { "points": ["x2.top@50%"] }` and
|
|
750
|
+
along every guide's travel, with the joins' springs and with the joins rigid, and the load's own share. The first
|
|
751
|
+
rests on the joins' springs, estimates until the joint rig measures them, and the finding says so (`refs.restsOn`:
|
|
752
|
+
`estimate` while any join's spring is one, even where the springs change no figure; `measured` when every join's
|
|
753
|
+
is; `beams` with no joins); the rigid figure is the least the sag can be. The limit is a rail's own parallelism
|
|
754
|
+
under a guide, else `"frame": { "limit": 0.2 }`, else the task's accuracy, else the beam's span over 360. Over it fails.
|
|
755
|
+
A sag is given in mm to three places, or to three figures under 0.1 mm (0.00123 mm, 0.000352 mm).
|
|
756
|
+
- `frame.stress`: the largest stress in each beam (axial and bending, from the section moduli) against its alloy's
|
|
757
|
+
strength, and the bending moment at each join against what its printed fitting takes (its design load at its
|
|
758
|
+
screw's distance from the corner, times its margin by finite elements). Under 2 times warns, under 1 fails. A join
|
|
759
|
+
with no strength in the kit (blind, end-tap, a bought fitting) has its largest moment said.
|
|
760
|
+
- `frame.buckling`: each beam in compression against Euler's load with both ends pinned, and the whole frame's first
|
|
761
|
+
buckling factor with the joins' springs (each beam cut in four). The first rests on the beam's ends being held from
|
|
762
|
+
moving sideways (a braced bay, fixed feet); a post of a frame free to sway on pinned feet buckles sooner, and the
|
|
763
|
+
second, the whole frame's factor, is the figure that takes that in (`frame.euler`).
|
|
764
|
+
- `frame.rack`: each way across the frame (named by the world axis it is nearest), a side push at its top, shared
|
|
765
|
+
among the top corners of its bays, and the sway it causes, with the joins' springs and rigid, as a stiffness in
|
|
766
|
+
N/mm. The push is `"frame": { "rack": { "load": 100 } }` in N, else 20 N (`frame.push`, an estimate: a hand
|
|
767
|
+
steadying it). The limit is `"rack": { "limit" }` in mm, else the task's accuracy, else the height over 400. Then
|
|
768
|
+
each change is solved, in the best open bay that way alone and in every open bay that way: gussets at the bay's
|
|
769
|
+
corners (the gusset join's bending added to each corner join's spring in the bay's plane), one diagonal brace (a
|
|
770
|
+
bar of the bay's lightest beam's section, pinned at both corners), and a 3 mm acrylic panel. Each gives its
|
|
771
|
+
stiffness and how many times the open frame's it is. Over the limit it warns, naming the cheapest change that
|
|
772
|
+
brings it under, in the order gussets, brace, panel, one bay before every bay (`frame.order`), and names it in
|
|
773
|
+
`refs.advise` (null where the frame stands within its limit). Where bracing every
|
|
774
|
+
bay that way makes it ten times stiffer or more, the text calls the open stiffness low: the open bays hold the
|
|
775
|
+
push by their joins' bending alone. A bay is four beams round a rectangle in one plane, each neighbouring pair
|
|
776
|
+
joined to each other or both joined to one beam at one place (the top of a corner-post box, whose rails join the
|
|
777
|
+
posts); its corners are the nodes where their axes cross.
|
|
778
|
+
- A panel (not a door) on a bay of the frame is a shear web in the model: one diagonal bar across the bay, free to bend
|
|
779
|
+
at both corners (a ball at one, pinned at the other, so it carries no twist and nothing in it spins free when the
|
|
780
|
+
modes split it into pieces), as stiff along it as the sheet in shear in series with its clips' grip. The clips' grip
|
|
781
|
+
(`frame.clip`, 200 N/mm a clip) is an estimate, and `frame.solve` says so; the panel's weight goes to its bay's
|
|
782
|
+
four corners. A panel whose beams make no bay is no web, and its weight is spread along those of its beams in the
|
|
783
|
+
frame, an equal share on each (`refs.laid`).
|
|
784
|
+
- `frame.frequency`: the lowest three modes in each pose, the worst named, with each beam's own mass and every
|
|
785
|
+
carried item's and load's mass at the node it is carried at (its rotary inertia about that node is left out), with
|
|
786
|
+
the joins' springs and rigid. Against what the machine excites: each stepper's full-step rate at its working speed
|
|
787
|
+
(a mode within 20% of it, `frame.band`, rings while the motor runs at that speed: a warning), and the task's moves
|
|
788
|
+
(a move ramping to the task's speed at its accel, else 500 mm/s², shakes the frame at about one over the ramp's
|
|
789
|
+
time; the lowest mode under twice that warns, under it fails). A warning says how many times the stiffness would
|
|
790
|
+
lift the mode clear, or as many times less mass. With no stepper and no task it is information. This is
|
|
791
|
+
`assembly.frequency`'s question asked of the frame: that finding estimates a machine's arm from its tool's
|
|
792
|
+
stiffness, this one solves the frame it stands on.
|
|
793
|
+
- A printed beam in the frame (`"printed"` on its beam item, in the plastic its `"material"` names) is solved with the
|
|
794
|
+
figures printing gives it, and its stress is held to its plastic's strength for its pose: along its layers lying
|
|
795
|
+
down, across them standing up (PETG HF: 34 and 23 MPa). `beam.creep` holds its stress, which a frame carries for
|
|
796
|
+
months, to 0.15 of that strength (`PRINTED_DEFAULTS.creep` of `@rulecad/frames`, an estimate).
|
|
797
|
+
- `beam.printable`, given `"frame": { "printed": "petg" }` (or `{ "material", "walls", "infill", "pose" }`): each beam
|
|
798
|
+
is tried printed in that plastic, as the kit's printable profile of its size (`profile-2020-printed` for a 20 mm
|
|
799
|
+
square beam; another section stays as it is, by name), lying down (spliced where it is longer than the bed, its
|
|
800
|
+
strength then half the whole beam's, `PRINTED_DEFAULTS.splice_share`) and standing up where it fits the printer's
|
|
801
|
+
height. The frame is solved again with that beam printed and every other as it is, and the beam is held to six
|
|
802
|
+
margins, each 1 where it just holds: every sag the frame checks (each load's point, each named point, each guide)
|
|
803
|
+
and the beam along its length, against the same limits as `frame.deflection`; its stress against its strength with
|
|
804
|
+
twice the margin; Euler's load with twice the margin; its stress against the creep limit; every sag again with the
|
|
805
|
+
beam's modulus at half (`PRINTED_DEFAULTS.creep_modulus`, an estimate), its sag as it creeps; and where the task's
|
|
806
|
+
moves shake the frame, its lowest mode at twice their rate. The least is the beam's margin. Where the frame as drawn
|
|
807
|
+
already misses a sag (`frame.deflection` fails there in the beams' own material), that is no fault of printing: there
|
|
808
|
+
the printed beam is held to the drawn frame's own sag and 2% more, so it misses only where printing it makes that
|
|
809
|
+
sag worse, and the frame's finding names each such point (`refs.missed`). A beam that holds says
|
|
810
|
+
so (pass), with its pose and grams; one that does not says it needs its own material and the margin it misses by,
|
|
811
|
+
`1 / margin`, and on what (info: a design choice, not a fault). It also names the joins that would need changing: a
|
|
812
|
+
blind, end-tap or anchor join screws into the beam's end, where a printed beam has an insert, and a join on a face
|
|
813
|
+
other than the top lands where a printed beam is closed; a bracket or a gusset on its top slot takes either. Then
|
|
814
|
+
the beams that hold alone are printed together and solved once more, any that miss together put back the worst
|
|
815
|
+
first, and one finding lists those that can be printed (`refs.printable`) and those that stay (`refs.metal`). Every
|
|
816
|
+
figure rests on the printed section's walls and infill, its plastic's figures and the creep shares (estimates until
|
|
817
|
+
the beam coupon is measured) and on the joins' springs as they are, which were made for metal beams; the findings
|
|
818
|
+
say so (`refs.restsOn: 'estimate'`). A 250 mm 2020 case of twelve beams with 2 kg on a top beam can be printed in
|
|
819
|
+
PETG whole (its least margin 1.35, its top beam's sag as it creeps); a 400 mm 2020 gantry beam fixed at both ends
|
|
820
|
+
with 2 kg at its middle and 0.1 mm allowed misses by 9.8 times ("beam.printable: every beam of a case-sized frame").
|
|
821
|
+
- `beam.coupon`: a printed beam held only by two of `"frame": { "supports" }` (no join on it) with a mass on it is the
|
|
822
|
+
beam coupon. Its sag under each mass, F L³ / 48 E I between two bars, and the mass it breaks at (where its stress
|
|
823
|
+
reaches its strength) are predictions `cad measured` takes as `<beam>.sag=<mm>` and `<beam>.break=<kg>`. The sag
|
|
824
|
+
gives the modulus a printed beam bends at (the solve is linear in it: the modulus taken times the sag predicted
|
|
825
|
+
over the sag measured), the break its strength (its own weight's stress plus the stress a kilogram causes times the
|
|
826
|
+
mass), each written as measured to the workspace's copy of the plastic's set: `beam_modulus` and `beam_strength`
|
|
827
|
+
for one printed lying down, `beam_modulus_z` and `beam_strength_z` standing up. A printed beam then takes them
|
|
828
|
+
before the plastic's own figures, and its creep limit follows the strength. `"resting"` in `frame.supports` holds a
|
|
829
|
+
beam from moving and from twisting about its own length, free to bend, as a beam lying across a round bar is. The
|
|
830
|
+
bench's `beam-test` assembly (MEASURE.md, rows 38 and 39) is the coupon.
|
|
831
|
+
- `cad beams` also writes `exports/<project>/<assembly>.frame-sag.svg`, the check view: the frame as drawn in grey
|
|
832
|
+
and the shape it takes in red, from the front and from the side, scaled and saying by how much; and
|
|
833
|
+
`<assembly>.frame-mode.svg`, the lowest mode animated, the frame swinging through the mode's shape and back, its
|
|
834
|
+
largest movement drawn as a tenth of the frame's size, in the two views that hold that movement (it starts at one
|
|
835
|
+
extreme, so a viewer that shows no animation shows the mode at its largest). Both are pictures of the solve, never part of the model.
|
|
836
|
+
|
|
837
|
+
| Figure | Formula | Source |
|
|
838
|
+
|---|---|---|
|
|
839
|
+
| Sag limit with nothing tighter | span / 360 | International Building Code, Table 1604.3, floor members under live load (as reproduced in 780 CMR 1604.3) |
|
|
840
|
+
| Beam stress | \|N\| / A + \|My\| / Wy + \|Mz\| / Wz | Beam theory; the section moduli from the profile's rule set |
|
|
841
|
+
| A beam in compression | P = π² E I / L² (both ends pinned) | Euler's column; Roark's Formulas for Stress and Strain, 7th ed., table 15.1, case 1a |
|
|
842
|
+
| A printed fitting's moment | design load × its distance from the corner × its margin | The fitting's own finite-element margin at its design load, scaled linearly |
|
|
843
|
+
| The solve | Timoshenko beam elements, end springs condensed out | `@rulecad/fea/frame` (its README lists its sources) |
|
|
844
|
+
| Sway limit with nothing tighter | height / 400 | ASCE/SEI 7-22, Commentary to Appendix C, CC.2.2: drift limits in common use are 1/600 to 1/400 of the height |
|
|
845
|
+
| Racking stiffness | push / mean sway of the top corners | Definition; each change solved in the model, not estimated |
|
|
846
|
+
| A panel's bar along its diagonal d (bay a by h, sheet t) | G t d² / (a h), in series with d² n k_c / (4 (a + h)²) for n clips of k_c each | Shear of a plate, γ = τ / G; the clips by their strain energy under a shear flow F / a round the edges |
|
|
847
|
+
| A sheet's G | E / 2(1 + ν): acrylic 3300 MPa, ν 0.37 | Evonik PLEXIGLAS GS technical information (polycarbonate and aluminium: typical figures, marked community) |
|
|
848
|
+
| A move's frequency | 1 / t, t = speed / accel | A working figure (`frame.ramp`); the lowest mode wanted at twice it |
|
|
849
|
+
| A stepper's full-step rate | rpm / 60 × 360 / step angle | The motor's step angle and its working speed (`workingSpeed`) |
|
|
850
|
+
| A beam fixed at both ends, mass M at its middle (the check of the modal solve) | f = (1/2π) √(192 E I / (L³ (M + 0.375 m))) | Blevins, Formulas for Natural Frequency and Mode Shape (1979), table 8-8 |
|
|
851
|
+
| A beam fixed at both ends, load P at its middle (the check of a guide's sag in the error budget) | P L³ / (192 E I) | Roark's Formulas for Stress and Strain, table 8.1, case 1d |
|
|
852
|
+
| A bay's diagonal difference to accept (frame.square) | Σ t × span / d over the beams that set the opening, plus Σ s × span / d over its joins; root-sum-square beside it | The derivative of d = √(w² + h²) with a side, ∂d/∂w = w / d; stacked as an arm's error budget stacks its joints |
|
|
853
|
+
| A join's play s (frame.square) | 0.1 to 0.3 mm by kind; end-tap 0.25 mm | `JOIN_PLAY` in `@rulecad/frames`, estimates; end-tap is half ISO 273's medium clearance for M5 (5.5 mm) |
|
|
854
|
+
| A beam's twist at the tool | twist per metre × length × π / 180 × the tool's distance from the beam's axis | The profile's `twist_per_metre` (MISUMI's JIS special grade figure for its 2020 HFS5) |
|
|
855
|
+
| A frame's growth (frame.heat) | α L ΔT, α = 23.4e-6 /K | 6063 aluminium (Wikipedia's table; suppliers' 6063-T5 sheets 23.4 to 23.5 µm/m °C), a community figure where the alloy's set gives none |
|
|
856
|
+
| A printed beam's creep limit | 0.15 × its strength for its pose | Waseem et al. (2020), Polymers 12, 2962: printed PLA held at 0.3 of its strength broke in 1.2 to 2.3 hours; half that share an estimate |
|
|
857
|
+
| A printed beam's sag as it creeps | the frame solved with its modulus × 0.5 | An estimate (`PRINTED_DEFAULTS.creep_modulus`), until a sustained load on the beam coupon measures it |
|
|
858
|
+
| The beam coupon's sag, between two bars L apart | F L³ / (48 E I) | Roark's Formulas for Stress and Strain, table 8.1, case 1e (simply supported, load at the middle) |
|
|
859
|
+
| The beam coupon's modulus and strength | E × sag predicted / sag measured; stress of its own weight + stress per kg × kg at break | The solve is linear in E and in the load |
|
|
860
|
+
| A printed fitting's softening | the plastic's heat deflection temperature, ISO 75 at 0.45 MPa, warned within 10 °C | The plastic's set (`pla.softening` 57 °C, `petg.softening` 69 °C, Bambu's data sheets); the 10 °C an estimate |
|
|
861
|
+
|
|
862
|
+
A worked check: a 2020 shelf frame, legs 400 mm, a 600 mm front beam joined blind to the legs 390 mm up, 5 kg at its
|
|
863
|
+
middle, sags 0.215 mm by hand with the joins rigid (a beam whose ends turn with the corners the legs and the side
|
|
864
|
+
beams' twist hold) and 0.310 mm with the blind joins' estimated 1.5 N·m/mrad springs; the solve gives the same to three
|
|
865
|
+
figures (`packages/cad/test.mjs`, "frame checks: a shelf frame").
|
|
866
|
+
|
|
867
|
+
Two more: a 2020 gantry beam, 600 mm, fixed at both ends, with 2.01 kg carried at its middle, rings first at 74.2 Hz;
|
|
868
|
+
the formula above gives 74.2 Hz (192 E I / L³ = 461.5 N/mm, M + 0.375 m = 2.1225 kg). An open 2020 cube, 420 mm
|
|
869
|
+
square and 400 mm tall, two rings of four beams joined blind to its legs, racks at about 63 N/mm under a push at its
|
|
870
|
+
top; one diagonal brace makes it about 2.6 times stiffer (the bay across from it still racks, and the rings twist),
|
|
871
|
+
a brace in both bays that way about 240 times ("frame checks: an open cube racks").
|
|
872
|
+
|
|
873
|
+
**Fastening into a slot.** A `fasten` whose `into` is a slot on a beam ends in a slot nut under the slot's lips:
|
|
874
|
+
|
|
875
|
+
```json
|
|
876
|
+
"fasten": [{ "screw": "M4 button", "through": ["plate"], "into": "x1.top", "holes": "plate.body", "nut": "drop-in" }]
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
- `into` is a face with a slot (`x1.top`), one slot of a face with several (`x1.top.2`), or a place on it
|
|
880
|
+
(`x1.top@120`, which places the fasten's screws as a group: the middle of their spread along the slot is held to it,
|
|
881
|
+
within the play their holes give, so two screws at 110 and 130 mm pass `x1.top@120`). The nut is the one made for that slot's nut family and the thread
|
|
882
|
+
(`nutFor` of `@rulecad/frames`): `"nut"` chooses its kind (`slide-in`, `drop-in`, `roll-in`, `hammer`, `square`,
|
|
883
|
+
`t-bolt`), and left out, the strongest made for the slot. It is placed under the lips as a reference part and
|
|
884
|
+
counted by its rule set's name on `cad list` (`2 × slot-nut-6-misumi-m4-drop-in`).
|
|
885
|
+
- `fasten.slot`: each screw lies over a slot's centre line, within the play its hole in the part gives it (half the
|
|
886
|
+
hole less the thread), square to the face, along the beam. A plate drawn for slots 30 mm apart on a face whose slots
|
|
887
|
+
are 20 mm apart fails with the distance, `5 mm off the centre line of x1's top.1 slot`.
|
|
888
|
+
- `fasten.length` chooses the shortest sold screw that puts a hexagon nut's height of thread in the slot nut
|
|
889
|
+
(`<thread>.nut_height`, ISO 4032) and stops `FASTEN.floor` (0.3 mm, a working figure) short of the slot's floor.
|
|
890
|
+
The stack is the part, a washer, and the slot's lip. With 3 mm of plate on a 2020 slot an M4 screw has 1.3 mm to
|
|
891
|
+
land in, so `M4x8` fits it and nothing sold fits a 4 mm plate; the finding names the lengths either side.
|
|
892
|
+
- `frame.nut`: a slide-in or square nut goes in only from an open end of its slot (every fasten's, a guide's too, in
|
|
893
|
+
every pose). A slot is closed by a join that
|
|
894
|
+
butts on its end, and the stretch a nut is in by a blind join's head in that slot too. Every closure on a way counts,
|
|
895
|
+
not only the nearest: a head between the nuts and an end closed further along closes that way as much as the end,
|
|
896
|
+
and the finding names each, with an item placed at that end (`foot1 off until then`). Where joins close both ways,
|
|
897
|
+
the check fails and names the nut of that thread that goes in through the opening (`give "nut": "drop-in"`).
|
|
898
|
+
- `frame.preload`: nuts with a way in that a join closes and no way that stays open (the other end capped by an item
|
|
899
|
+
placed there, such as a foot) go in before that join is made. The finding names the beam, the slot, the end, the
|
|
900
|
+
nuts and the join, and `cad order` and the build page list them as the step before the one that makes it
|
|
901
|
+
(`5. Load 2 × slot-nut-6-misumi-m4-slide-in into y1's top slot through its end a, for plate2, before the blind join
|
|
902
|
+
of y1.a to p1.top@170 closes it`).
|
|
903
|
+
- `frame.square`: each bay of the frame (four beams joined in a rectangle in one plane), with its two diagonals,
|
|
904
|
+
inside corner to inside corner, and the difference between them to accept, stacked from its parts as an arm's
|
|
905
|
+
error budget stacks its joints (`squareness` in `@rulecad/frames`). Each beam of the bay whose end butts another
|
|
906
|
+
beam of the bay sets the opening along it by its cut length: cut t long or short, it moves one diagonal against the
|
|
907
|
+
other by t × span / d (span the opening along that beam, d the diagonal). Each join of the bay's beams lets the end
|
|
908
|
+
of `a` sit off by its play s along `b` (`JOIN_PLAY`, an estimate for every kind): s × span / d, span the opening
|
|
909
|
+
along `b`. The difference to accept is their sum, the worst case, with their root-sum-square beside it, and the
|
|
910
|
+
finding lists each term. The cut tolerance is the assembly's `"frame": { "cut": { "tolerance": 1 } }` where given
|
|
911
|
+
(this workshop's saw, also taken by the cut list), else the profile's `cut_tolerance`, else 0.5 mm. A 260 × 200 mm
|
|
912
|
+
opening of MISUMI 2020 (d = 328.02 mm) with its two rails butting the posts and four blind joins: 2 × 0.5 × 260 / d
|
|
913
|
+
+ 4 × 0.1 × 200 / d = 1.04 mm, 0.57 mm root-sum-square; at ±1 mm it widens by 2 × 0.5 × 260 / d = 0.79 mm, to 1.83.
|
|
914
|
+
Each bay is a prediction: once squared and tightened, measure both diagonals and give their difference to
|
|
915
|
+
`cad measured <project>/<assembly> frame.square.<beams>=<mm>` (the name is in the finding, `frame.square.p1-p2-x1-x3`).
|
|
916
|
+
The ledger keeps it against the prediction, and the finding then says the difference measured: within what the
|
|
917
|
+
cuts and joins allow passes, more warns that the bay leans. The build page's bays carry the same figures.
|
|
918
|
+
- `frame.heat`, where the assembly gives `"frame": { "heat": { "air": 45, "built": 20, "heaters": [{ "name": "bed",
|
|
919
|
+
"at": [150, 150, 60], "temperature": 60, "reach": 40 }] } }`: the frame grows from the air it was built in (`built`,
|
|
920
|
+
20 °C where left out) to the air it runs in by its alloy's expansion, ΔL = α L ΔT, for the longest beam and for the
|
|
921
|
+
span of its beams each way (α from the alloy's set where it gives `expansion`, else 23.4e-6 /K for 6063, a community
|
|
922
|
+
figure). A frame of one alloy grows alike every way, so it stays square. Each printed fitting is held to its plastic's
|
|
923
|
+
`softening` (the heat deflection temperature its set gives, ISO 75 at 0.45 MPa) at the air's temperature, or a
|
|
924
|
+
heater's where its drawn parts come within the heater's `reach` of its middle: over it fails, within 10 °C of it
|
|
925
|
+
warns (`FRAME_HEAT.margin`, an estimate), and the rest pass in one finding naming the nearest. Bad input is refused by
|
|
926
|
+
name (`frame.heat.heaters 1: reach is how far ...`).
|
|
927
|
+
- A blind or end-tap join's head on a slot's lips: `fasten.seat` gives what the lips take, the head's circle less the
|
|
928
|
+
strip of the opening across it (A = π D² / 4 - 2 (c √(R² - c²) + R² asin(c / R)), R half the head, c half the opening), at the beam alloy's strength, and the torque for that force (T = K d F, the nut
|
|
929
|
+
factor an estimate), or the screw tightened fully where that is less. An M5 button head on a MISUMI 6 mm slot:
|
|
930
|
+
17.9 mm² of al6n01-t5 at 205 MPa takes 3677 N, 3.68 N m. The lips' bending is not counted: an estimate, until the
|
|
931
|
+
joint rig (issue 264) measures one.
|
|
932
|
+
|
|
933
|
+
### A frame from a size
|
|
934
|
+
|
|
935
|
+
A frame can be asked for by what it must hold, at the top of an assembly, in place of its beams:
|
|
936
|
+
|
|
937
|
+
```json
|
|
938
|
+
"frame": { "kind": "box", "inside": [300, 300, 350], "profile": "2020-misumi-hfs5", "join": "blind", "feet": "levelling" }
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
Before anything else is worked out, it expands into beam items placed by their ends, joins between them, a fitting
|
|
942
|
+
on every end no join covers, and any panels and braces asked for: everything after (the joins' operations and
|
|
943
|
+
screws, the cut list, the frame checks, the build page) sees a hand-drawn frame. `cad check` says what it made
|
|
944
|
+
(`frame.generated`: the kind, the inside and outside, the beams by length, the joins and the ends).
|
|
945
|
+
|
|
946
|
+
- `"kind"`: `box` (four upright beams `z1` to `z4` and a ring of four at the bottom and at the top), `portal` (two
|
|
947
|
+
legs and a beam across their tops, in the x-z plane; it lies in one plane, so on its feet alone it tips over out of
|
|
948
|
+
it, and it is refused by name until `"supports"` says its feet are held down, as
|
|
949
|
+
`"supports": { "z1.a": "fixed", "z2.a": "fixed" }` for a portal bolted to a bench or a wall), `table` (four legs and a ring at the top), `gantry` (a box
|
|
950
|
+
without its two top beams across, and a beam `g` lying across the two top side beams, sliding along them on the
|
|
951
|
+
joint `gantry`, with the poses `gantry-front` and `gantry-back`) or `shelf` (a box with `"shelves"` rings between,
|
|
952
|
+
default 1, spacing its height into equal clear bays). Beams across x are `x1`, `x2` .., along y `y1` .., by ring
|
|
953
|
+
from the bottom. The frame's outside starts at the origin.
|
|
954
|
+
- `"inside"` is the clear volume it encloses, `[width, depth, height]` in mm; `"outside"` is the volume it must fit
|
|
955
|
+
in. Give one. A portal takes `[width, height]`. A table's height is the clear height under its ring, a gantry's
|
|
956
|
+
under its side beams.
|
|
957
|
+
- `"profile"`: one square profile for every beam (2020, 3030, 4040 ..). A profile of two cells (2040) is refused:
|
|
958
|
+
its beams would face differently by how they lie.
|
|
959
|
+
- `"join"` sets the corners, as a kind or `{ "kind", "fitting", "screw", "nut" }`. With a join against a face (`blind`,
|
|
960
|
+
`end-tap`, `bracket`, `gusset`, `hidden`, `anchor`) the upright beams run through, top to bottom, and every other
|
|
961
|
+
beam butts against their faces, so it is shorter than the outside span it closes by the profile's width at each
|
|
962
|
+
end. With `cube` every beam butts into a corner node and is as long as the inside it bounds. A box round 300 x 300
|
|
963
|
+
x 350 in 2020 has uprights of 390 mm and eight beams of 300 mm (with no feet: printed feet raise the bottom ring,
|
|
964
|
+
below); in 3030, uprights of 410 mm and the same 300 mm.
|
|
965
|
+
Where an end has several bores, a blind or end-tap join screws into the threaded one in the middle. A printed
|
|
966
|
+
fitting (`"fitting": "printed"` on `bracket` or `gusset`) sits on nuts that go in through the slot's opening: every
|
|
967
|
+
butting beam is shut at both ends by its joins, so a nut that slides in from an end could not reach its place. It
|
|
968
|
+
takes the first of `drop-in`, `roll-in`, `hammer` and `t-bolt` the kit has for the profile's slot (drop-in on
|
|
969
|
+
MISUMI's 2020, roll-in on item's 4040); `"nut"` names one of them, and `slide-in` is refused. A printed gusset lies
|
|
970
|
+
on the face of its upright that looks out of the frame (its join's `"face"`), so it never lands where the corner's
|
|
971
|
+
third beam butts. With no fitting named, each join warns `join.fitting` until one is chosen, as a hand-drawn join
|
|
972
|
+
does.
|
|
973
|
+
- A gantry's outside height is its inside plus three widths: the two rings and `g`, which lies on the top side beams
|
|
974
|
+
between the uprights' tops, its top level with theirs.
|
|
975
|
+
- `"feet"`: `foot`, `levelling`, `castor` or `stacking` (printed) or a bought foot's set by name, under the upright
|
|
976
|
+
beams' lower ends. A printed foot, levelling foot or stacking foot is screwed into its upright's end: the end is
|
|
977
|
+
tapped as the foot's model says (an M5 tap 18.5 mm deep in 2020) and a `fasten` holds it (an M5x16 cap screw), so
|
|
978
|
+
the tap is on the sheet, the screw on the list and its step in the build. Where the join drills the uprights
|
|
979
|
+
(`blind`, `end-tap`, `hidden`, `anchor`: an access or clearance hole at the bottom ring's centre line), the bottom
|
|
980
|
+
ring rises up the uprights by the tap's depth, so those holes stand clear of the tapped end: the box above has
|
|
981
|
+
uprights of 350 + 2 x 20 + 18.5 = 408.5 mm, its inside still 300 x 300 x 350. A levelling foot's pad is printed
|
|
982
|
+
beside its body (`cad plates`, `cad list`) and screwed in by hand. `"caps"`: the other open ends take printed end caps (`true`, the default), a bought end cap's
|
|
983
|
+
set by name, or nothing (`false`, and `join.end` names them).
|
|
984
|
+
- `"braces"`: the upright sides (`front`, `back`, `left`, `right`) whose corners are stiffened against racking: each
|
|
985
|
+
join in that side takes a printed corner bracket on drop-in nuts. `"panels"`: `{ "sheet", "thickness", "sides" }`,
|
|
986
|
+
one sheet over each side named (every side with a bay by default), on drop-in nuts.
|
|
987
|
+
- Refused by name, before anything is built: no size or both, a size that leaves no room for the beams, a profile
|
|
988
|
+
that is not square, a join no generator arranges (mitre, splice, pivot, a printed node), a blind join on a profile
|
|
989
|
+
with no bore in its ends, a blind or end-tap screw that does not pass between the slot's lips (M12 in the 10 mm
|
|
990
|
+
slots of MISUMI's and Bosch's 4040), an end-tap join whose clearance hole across the post is wider than the slot's
|
|
991
|
+
opening (below), or a blind join's head that does not fit under them (Bosch's 2020: an M6 button
|
|
992
|
+
head 3.3 mm high under 3 mm lips), a printed fitting or a brace on a slot the kit has no nut for that goes in
|
|
993
|
+
through its opening (item's 3030, MISUMI's and Bosch's 4040), feet with cube corners on a box, a side with no bay,
|
|
994
|
+
and an item of the assembly's own with a name the frame gives.
|
|
995
|
+
- `"frame"`'s other keys (`supports`, `limit`, `rack` ..) still say how it is solved.
|
|
996
|
+
|
|
997
|
+
`cad frame <project>/<assembly>` prints what it expands into; `--expand` writes the expansion into the assembly (its
|
|
998
|
+
`"frame"` keeps only how it is solved), to edit by hand from there; `--json` gives either as data. `@rulecad/frames`
|
|
999
|
+
has the generators on their own: `box`, `portal`, `table`, `gantry`, `shelf` and `frameModel(kind, o)`.
|
|
1000
|
+
|
|
1001
|
+
What a generated box checks to, joined three ways in MISUMI's, Bosch's and item's 2020, 3030 and 4040 (each taken
|
|
1002
|
+
or refused as above): `blind` checks clean wherever it is taken. `end-tap` takes each ring's beams along y one width
|
|
1003
|
+
above its beams across x, so no two screws cross inside an upright. Its screw passes a clearance hole drilled across
|
|
1004
|
+
the upright (ISO 273's medium series for the end thread), through the slot on both sides, and where that hole is wider
|
|
1005
|
+
than the slot's opening it would break the lips (`beam.op` warns twice a join). So the generator takes end-tap only
|
|
1006
|
+
where the hole fits: MISUMI's 2020 (M5, 5.5 mm in a 6 mm opening) and OpenBuilds' 2020 (5.5 mm in 6.25 mm), both
|
|
1007
|
+
clean. It refuses it by name, with both figures and what to use instead, in item's 2020 (5.5 in 5), Bosch's 2020 (M6,
|
|
1008
|
+
6.6 in 6), item's 3030 (6.6 in 6.2), MISUMI's and Bosch's 3030 and item's 4040 (M8, 9 in 8), and MISUMI's and
|
|
1009
|
+
Bosch's 4040 (M12, 13.5 in 10); no smaller thread cuts in those end bores. `bracket` with a printed fitting checks clean or warns only `frame.rack`, the frame's sway.
|
|
1010
|
+
Bosch's 2020 and 4040 L sections also warn `beam.mass`: their drawn outlines leave out hollows the sheet's mass counts, and the frame
|
|
1011
|
+
is weighed by the sheet's figure.
|
|
1012
|
+
|
|
1013
|
+
### The lightest profiles
|
|
1014
|
+
|
|
1015
|
+
`"frame": { "size": { ... } }` chooses, for each group of beams that must match, the lightest profile from a list
|
|
1016
|
+
that meets the frame's own limits, by `@rulecad/fea/frame`'s `sizing` on the frame the checks solve (every pose, the
|
|
1017
|
+
joins' springs, the loads and mounted items):
|
|
1018
|
+
|
|
1019
|
+
```json
|
|
1020
|
+
"frame": { "kind": "table", "inside": [800, 500, 700], "profile": "2020-misumi-hfs5", "join": "blind",
|
|
1021
|
+
"size": { "profiles": ["1010-makerbeam", "1515-openbeam", "2020-misumi-hfs5", "2040-misumi-hfs5", "3030-misumi-hfs6", "4040-misumi-hfs8"] } },
|
|
1022
|
+
"loads": [{ "mass": 30, "at": "x1.top@50%" }, { "mass": 30, "at": "x2.top@50%" }, { "mass": 10, "at": "y1.top@50%" }, { "mass": 10, "at": "y2.top@50%" }]
|
|
1023
|
+
```
|
|
1024
|
+
|
|
1025
|
+
- `"profiles"`: the sets to choose from (default `FRAME_SIZING.profiles`: MISUMI's HFS5, HFS6 and HFS8 series from
|
|
1026
|
+
2020 to 4080). A profile that is not square is tried lying as drawn and turned a quarter about its length ("2040
|
|
1027
|
+
turned": standing on edge). The workspace's own sets are read before the kit's.
|
|
1028
|
+
- `"groups"`: `{ "rails": ["x1", "x2", "y1", "y2"] }`, beams that take one profile together. The rest group by
|
|
1029
|
+
themselves: beams of one profile lying the same way whose lengths agree within 0.5 mm (`FRAME_SIZING.match`), so a
|
|
1030
|
+
table's four legs are one group and each pair of rails another.
|
|
1031
|
+
- `"limits"`: in place of the checks' own. Left out, each is the check's: the sag at each load, named point and guide
|
|
1032
|
+
as `frame.deflection` holds it (a guide's rail parallelism, `frame.limit`, the task's accuracy, else the span over
|
|
1033
|
+
360; a load that moves with a joint anywhere along its beam), each beam's stress with the joins' springs and with
|
|
1034
|
+
them rigid against its alloy's strength `frame.margin` (2) times over, the frame's first buckling factor and each
|
|
1035
|
+
grouped beam's Euler load (K 1) the same, and the lowest mode at twice the task's moves where it has a task.
|
|
1036
|
+
`"deflection"` (mm, at every load, point and guide), `"stress"` and `"buckling"` (margins) and `"frequency"` (Hz)
|
|
1037
|
+
replace them.
|
|
1038
|
+
- `"by"`: `mass`. No profile set in the kit gives a price per metre yet, so `cost` is refused by name.
|
|
1039
|
+
|
|
1040
|
+
`cad check` gives `frame.size`: each group's profile, its mass, the limit that set it and how many times inside that
|
|
1041
|
+
limit it stands. `cad frame <project>/<assembly> --size` prints the table:
|
|
1042
|
+
|
|
1043
|
+
```
|
|
1044
|
+
sized: 2.56 kg of grouped beams (drawn 2.74 kg), 66 designs solved (every design ranked by mass)
|
|
1045
|
+
group | profile | kg | set by | margin
|
|
1046
|
+
z1, z2, z3, z4 | 1515-openbeam (drawn 2020-misumi-hfs5) | 0.855 | buckling: with 1010-makerbeam, the frame's buckling factor breaks its limit 2.68 times over | 1.28x
|
|
1047
|
+
x1, x2 | 2040-misumi-hfs5 turned (drawn 2020-misumi-hfs5) | 1.408 | deflection: with 2020-misumi-hfs5, the sag at x2@400 breaks its limit 2.31 times over | 2.41x
|
|
1048
|
+
y1, y2 | 1515-openbeam (drawn 2020-misumi-hfs5) | 0.297 | deflection: with 1010-makerbeam, the sag at y2@250 breaks its limit 2.39 times over | 1.17x
|
|
1049
|
+
```
|
|
1050
|
+
|
|
1051
|
+
"Set by" is the limit the group's next lighter profile breaks, the other groups as chosen: what stops it being any
|
|
1052
|
+
lighter. A group already at the lightest in the list says so. With `"limits": { "deflection": 6 }` the long rails
|
|
1053
|
+
drop to 2020 and the grouped beams to 1.95 kg.
|
|
1054
|
+
|
|
1055
|
+
`--write` writes the profiles into the assembly: each grouped beam's profile, a quarter `roll` where it was turned,
|
|
1056
|
+
and its printed end fittings drawn for it. A generated frame is written out expanded, as `--expand` does, since a
|
|
1057
|
+
generator takes one profile; its rings keep their outer faces (a table's top stays level with its legs' tops). A
|
|
1058
|
+
beam's end that butts against a face moves with that face as the other beam changes size, and a blind or end-tap
|
|
1059
|
+
join at an end that now has two bores (a 2040) becomes a join a bore. A drawn beam whose new depth would stand past
|
|
1060
|
+
the end of the beam it meets (a rail flush with its legs' tops, now a 2060) moves along that beam by as much, so its
|
|
1061
|
+
face there stays where it was, if the move fits at its other end too; where it does not, nothing is written and the
|
|
1062
|
+
refusal names the join and the beam. Otherwise beams keep their lines. Check the
|
|
1063
|
+
written frame: its join checks say where a profile's screws do not fit another's slots, so choose the list from one
|
|
1064
|
+
family whose joins fit each other (MISUMI HFS5's 2020 to 2080 share one slot and one end thread).
|
|
1065
|
+
|
|
1066
|
+
What it rests on: the joins' springs are as drawn (an estimate until the joint rig measures them) and do not change
|
|
1067
|
+
with the profile; the sizing solves the drawn layout, with each beam's line where it is drawn, so a figure on the
|
|
1068
|
+
written frame differs a little (the table in HFS5, its 2040 rails lowered 10 mm to keep its top level, sags 0.87 mm
|
|
1069
|
+
at a long rail's middle as sized and 0.83 mm as written). With 512 designs or fewer every one is ranked by mass and the first that meets the limits is the
|
|
1070
|
+
lightest; with more, the search goes by steps and lands near the lightest. Racking (`frame.rack`) is not a sizing
|
|
1071
|
+
limit: it is a bay's to brace, not a beam's to thicken.
|
|
1072
|
+
|
|
1073
|
+
| What | Formula | Source |
|
|
1074
|
+
|---|---|---|
|
|
1075
|
+
| A design's mass | the sum over grouped beams of length × the profile's mass per metre | The profile's set (the maker's sheet) |
|
|
1076
|
+
| Sag limit (default) | span / 360 | `FRAME_CHECK.sag`: IBC Table 1604.3 |
|
|
1077
|
+
| Stress | `margin × (abs(N)/A + abs(My)/Wy + abs(Mz)/Wz) ≤ strength`, worst of springs and rigid | `@rulecad/fea/frame`; Roark's, chapter 8 |
|
|
1078
|
+
| Euler load of a grouped beam | `π² E I / (K L)² ≥ margin × N`, I the lesser second moment, K 1 | Roark's, table 15.1, case 1a |
|
|
1079
|
+
| Frequency floor (with a task) | `2 × speed / accel` Hz | `frame.frequency`: a move ramping in t seconds shakes the frame at about 1/t |
|
|
1080
|
+
| What set a group | the limit with the largest use, over 1, when the group takes its next lighter profile | This package |
|
|
1081
|
+
|
|
576
1082
|
### Building it
|
|
577
1083
|
|
|
578
1084
|
Once an assembly is checked, these say how to make it. They all read the assembly itself, so they can't disagree with it.
|
|
579
1085
|
|
|
580
1086
|
- `cad order <project>/<assembly>`: the order it goes together in, each step with the part and what fastens it. A `fasten` names its screws on the step where its parts are both there, with the key that turns them and how tight: its `torque`, or the most the seat under the head takes (`2. bracket goes on: bracket fastened to base (2 × M3x10 cap) with a 2.5 mm hex key, to 0.33 N m at most (what the seat takes)`); `--json` gives each as `{ fit, fastener, count, key, tighten: { torque, given } }`, and the build page shows the same. What is not a screw (pins, a clip) is named on a fit that fastens: `"fastener": "push pin", "count": 2` puts it on the shopping list and the step. `--preview` writes a picture of each step to `.preview/`: what's there, and the new part held off along the way it goes on. The order is found by taking the assembly apart, so a part goes in after what it's fastened into, a bearing before its shaft, and a nut trapped by a wall before the neighbour that traps it. A part goes on along a straight line that clears everything already there; which line comes from the part as drawn.
|
|
581
|
-
- `
|
|
582
|
-
|
|
583
|
-
|
|
1087
|
+
- `cad order` on a **frame** (an assembly with `joins`) gives its build from bars to a square frame, in numbered steps:
|
|
1088
|
+
1. **Cut** the beams: each mark's count and length, the bars to buy and the cuts on each (the cut list).
|
|
1089
|
+
2. **Drill and tap** each mark as its cut-and-drill sheet shows (each mark's work and its sheet's file).
|
|
1090
|
+
3. **Sides built flat**: each bay that shares no beam with a side already chosen is built on the bench, beam by beam,
|
|
1091
|
+
each beam's joins with their screws, key and torque, left snug (`Snug for now: tightened to its torque at step 8,
|
|
1092
|
+
once square`), then squared by its diagonals and its joins tightened. Of
|
|
1093
|
+
two bays that share a post, the first found is a side and the other is squared once the frame is joined.
|
|
1094
|
+
4. **Nuts to load, heads slid in**: every blind join's head and every slot nut needs a way into its slot at the
|
|
1095
|
+
step that puts it there: an end of the slot that nothing has closed yet (a join on that end, or an item placed
|
|
1096
|
+
there) and nothing already in the slot between it and that end (a head, a nut). A beam going on slides along the
|
|
1097
|
+
slots its heads go into, all one way, from whichever end leaves each head its way. A slide-in nut that a join
|
|
1098
|
+
would close in is loaded on a step of its own just before the first join made of those on its way
|
|
1099
|
+
(`frame.preload`), where that leaves every head its way; else at the first later step where it has a way
|
|
1100
|
+
(`7. Load 2 × slot-nut-6-misumi-m4-slide-in into p1's back slot through its end b, for bracket, before cap1 goes
|
|
1101
|
+
on`), else earlier. A head with no way as its beam goes on (its slot closed at both ends by then, or running
|
|
1102
|
+
across the way the beam goes on) is slid into its slot on its own beforehand, and its join made with it in place
|
|
1103
|
+
(`Slide an M5x12 button screw into x3's back slot head first, through its end a, to 130 mm, for the blind join of
|
|
1104
|
+
m.a to x3.back@130, ...`). Where no step gives one a way, the build is refused with the slot and what is in the
|
|
1105
|
+
way.
|
|
1106
|
+
5. **Joins**: the beams in no side go on one at a time in the assembly's order, each joined to what is there. A
|
|
1107
|
+
side goes on as one only where it can: the heads of its blind joins to the frame slide along slots that all run
|
|
1108
|
+
one way, each with a way in from the end that leads. Where it can't, its beams go on one at a time on the frame
|
|
1109
|
+
instead, and the build says why (`The bay of p3, p4, x2 and x4 is built on the frame, not flat: the heads of its
|
|
1110
|
+
joins to the frame go into slots that run different ways (...)`).
|
|
1111
|
+
6. **Square the frame**: the diagonals of each bay no side squared, then the joins tightened.
|
|
1112
|
+
7. **Mount** the rest in the assembly's order, with their fastenings; copies of one thing in a row are one step. A
|
|
1113
|
+
part that a beam would stand over the screws of goes on before that beam, once the beams it fastens to are
|
|
1114
|
+
there, even in the middle of a side's build.
|
|
1115
|
+
|
|
1116
|
+
Every screw is reached in this order: what stands over a screw (`fasten.access`, or a fit's `access`) goes on
|
|
1117
|
+
after the step that drives it. Where a side built flat would break that, the side is built on the frame instead;
|
|
1118
|
+
where no build does, it is refused with the screw and what stands over it. It ends with the tightening of each
|
|
1119
|
+
kind of join (`blind (16 joins, M5x12 button with a 3 mm hex key): 3.68 N m`). A slide-in nut in a stretch of slot
|
|
1120
|
+
that joins close at both ends (`frame.nut`) is shut in by whichever of the two joins is made second, in any order:
|
|
1121
|
+
the build is refused, naming the slot, the nuts, the two joins, and the nut that goes in through the opening
|
|
1122
|
+
(`frame/box: x1's top slot: 2 slide-in nuts (...) for plate would be shut in between the blind join of x1.a to
|
|
1123
|
+
p1.back@30 and the blind join of x1.b to p2.front@30: ...: give "nut": "drop-in"`), and `cad order` exits 1.
|
|
1124
|
+
`--json` adds `frame`: `{ steps: [{ n, kind, text, lines, items, joins, shown, now, dir }], sides, notFlat, bays,
|
|
1125
|
+
torques, stuck }`, kind one of `cut`, `drill`, `side`, `join`, `load`, `square`, `mount`; `shown` is what is in
|
|
1126
|
+
view at that step (the side on the bench, or the frame so far) and `now` what goes on in it. `--preview` draws each
|
|
1127
|
+
step that shows something, numbered as the build is. The build page shows the same as "Building the frame", its
|
|
1128
|
+
one sequence of steps (each a button that shows that step in the viewer), with the torques and the diagonals as
|
|
1129
|
+
tables.
|
|
1130
|
+
- `assembly.order` is `cad check`'s finding on it, with the count of `cad order`'s steps (a frame's build from bars to
|
|
1131
|
+
square where the assembly has joins, failing where that build is refused; `fasten.access` names the same steps, and
|
|
1132
|
+
none of a build that is refused): a part no order can reach fails by name, and a part sealed inside another too. A fit can say where a screw is driven from with `"access": "<item>.<anchor>"`, the anchor's z pointing out along the screw: whatever stands on that line goes on after the screw, and if it has to go on first the screw can't be reached at all. Works on an assembly's own items; a component (an assembly used as an item) goes on as one step.
|
|
1133
|
+
- `cad plates <project>/<assembly>`: every printed part laid out on beds, in its print orientation (as it's drawn), grouped by material and filament so each plate is one plastic and one colour change (a printed beam in its own `"material"`, PETG in a PLA project, goes on a plate named `<assembly>-petg-<filament>-<n>`; `packed.material` in its file), spaced by the first layer's rule (the printer's `print_gap` plus twice its `foot`, up to whole lines; `--gap` for your own). They're written as `kind: "plate"` assemblies called `<assembly>-<filament>-<n>` and checked as prints; `cad export` makes each one's 3MF. Each plate remembers what's on it by its build's hash (`"packed"` in its file): a changed part re-packs only its plate, so the other plates keep their files untouched, and a part too big for the bed is said by name (`plate.bed`). A frame's printed fittings (a join's bracket, a guide's holders and plate, a foot or an end cap) go on as their item's `fitting` with `"pose": "print"`, laid as each prints, and a levelling foot's pad beside its body. A frame's jigs (`cad beams --jigs`, below) are written beside them on plates of their own, in the project's plastic (`--no-jigs` leaves them).
|
|
1134
|
+
- `cad kit <project>/<assembly>`: one folder to build it from without opening the model, `exports/<project>/<assembly>-kit/`, to hand to someone else: `README.md` (what the checks say, what to buy, what to print with each plate's material, grams and minutes, the jigs and what each is for, the cut list with the cuts on each bar, each mark's drilling and tapping, and the build step by step with its screws, keys, torques and the diagonals to measure), `buy.csv` (the bars, bought parts and fixings in packs), `print/` (each plate's 3MF and the jigs'), `sheets/beam-<mark>.svg` (each mark's sheet, to scale) and, with `--pictures`, `pictures/` (the whole and each step, which needs Chrome). It is written whole each time, and only for an assembly that `cad check` passes with nothing failing: one that fails is refused by name (`kit.check`, with the failures), and so is one with nothing to build from. `--json` lists the files. A frame's step that names a sheet names it by its file in the folder. Laying out the plates reads the printer's rule set (`x1c`), and on a fresh workspace that copies it into `rules/`, as any command that uses a tool's rule set does: the workspace keeps every rule its designs depend on. `cad kit` says which sets it copied (`copied` in `--json`).
|
|
1135
|
+
- `cad list <project>/<assembly>` lists the beams' **cut list** after the bought parts: each mark (beams that are the same, one profile, length and set of operations, share a mark, A, B, C), its count, grams each and work, then each profile's lengths to cut, the bars to buy in the lengths it is sold in, and the cuts on each bar in order with its offcut. Every cut takes the saw's 3 mm kerf and each bar's first end is trimmed 10 mm (`CUT_DEFAULTS` in `@rulecad/frames`, each with its source); the packing is first-fit decreasing. `cad check` adds the cut list's findings (`frame.cut`): a beam longer than any length sold fails, two lengths nearer than the cut tolerance can hold apart warn, and beams of one mark are reminded to be cut against one stop. Each beam's mark is in its label in the preview (`x1: mark A, profile-2020-misumi-hfs5 x 300 mm`) and in the link, where the parts list groups the beams by it (`mark A: profile-2020-misumi-hfs5 x 300 mm`, x8). The link carries each mark's cut-and-drill sheet as a view of a **Beams** tab, and a beam picked in the model offers its own (`Sheet A ›`).
|
|
1136
|
+
- `cad frame <project>/<assembly>`: a generated frame (`"frame": { "kind" }`, "A frame from a size" above): its inside and outside, its beams by length, its joins and its ends. `--expand` writes them into the assembly to edit by hand; `--json` gives the same as data.
|
|
584
1137
|
- `cad beams <project>/<assembly>`: a cut-and-drill sheet for each mark, written to `exports/<project>/<assembly>.beam-<mark>.svg`, in mm so it prints to scale at 100%: the section at end a with each face named and the taps marked, a view of each face with work on it (that face up, end a on the left), every operation dimensioned from end a to 0.1 mm, and the operations in order, each tap with its thread and depth. The build page lists the sheets with the cut list.
|
|
1138
|
+
- `cad beams <project>/<assembly> --jigs`: the jigs its beams take, made from the assembly and written as a plate, `exports/<project>/<assembly>.jigs.3mf` (`.jigs-2.3mf` and on where one bed is not enough). A **drill guide** for each distinct hole across a beam (an access hole, a drilled hole, a counterbore's hole): it stops on the nearer end, keys into the face's slot and holds a bush for the drill where the sheet dimensions the hole. A **tap guide** for each tapped end, a **cut-length stop** for each length (a block for the saw's fence and a printed gauge as long as the cut), and a **squaring corner** for each pair of profiles and hand a blind or end-tap join takes. A corner is an L whose arm b runs along beam b one way only, so where a beam meets a post near the post's end, only one hand lies on the post: each join gets the corner laid on a pair of faces the two beams share (the outer pair first) and of the hand whose tongues lie whole on both beams, its plate clear of every other beam. A box with beams near both ends of its posts takes both hands. Where no corner fits, a `jig.square` warning says why (how much of a tongue lies past a beam's end, which beam the plate meets): square that join with an engineer's square. Distinct means drawn the same: one guide serves every hole of its size at its distance from an end. Each is marked with the marks it is for (`ABCD`, `E 260`), cut into a face that faces up as it prints, printchecked, and listed with its grams, its margin and what it is for: each hole by mark and sheet number (`A3`), with its bush's distance from end a beside the sheet's figure. A hole too far from both ends for one print gives a `jig.drill` warning in place of a guide; mark it from the sheet. A tapped end no guide can be drawn for gives a `jig.tap` warning in place of its guide. `--json` gives the same, `--preview` a picture of the plate. The jigs are `@rulecad/frames`' (`drillGuideModel`, `tapGuideModel`, `lengthStopModel`, `squareCornerModel`).
|
|
585
1139
|
- `cad wires <project>/<assembly>`: the wiring sheet, printed and written to `exports/<project>/<assembly>.wiring.md` (`cad machine` writes it too): each wire's length through every pose with its service loop, gauge, colour, connectors and board pins. Wires also show faint along their routes in `cad preview` and in the link, moving with the joints, and are never parts: no overlap check sees them.
|
|
586
1140
|
- `cad link` for such an assembly (or one with a `fasten`) carries the rest of the project with the model. A **Build** button on the page opens, beside it, the shopping list, the beams' cut list and their sheets, the plates drawn on their beds, the wiring sheet, the assembly steps (each shows the model at that step) and the machine's settings. The Rules panel lists **predicted against measured**: the ledger `cad measured` writes, each with its ratio, and what the checks predict that nobody has measured yet.
|
|
587
1141
|
- A link for an assembly with a `task` lets the page move the machine: see "Things that move" in the viewer's README. It carries the newest step file `cad plot` wrote for this assembly (`--steps <file>` for another, `--no-steps` for none). A step file for other joints is refused by name.
|
|
588
1142
|
|
|
1143
|
+
**Panels and doors.** An item with `"panel"` is a sheet cut to the bay of four beams it closes:
|
|
1144
|
+
|
|
1145
|
+
```json
|
|
1146
|
+
{ "id": "front", "panel": { "sheet": "acrylic", "thickness": 3, "bay": ["x1", "z2", "x2", "z1"], "out": [0, -1, 0] } }
|
|
1147
|
+
```
|
|
1148
|
+
|
|
1149
|
+
- The bay is four beams placed by their ends, two each way round a rectangle, in order. Each has a slotted face that
|
|
1150
|
+
looks along `out`; the four faces lie in one plane. Refused by name: a beam that runs across the plane, faces out
|
|
1151
|
+
of one plane, a beam with no such face (turn it with `roll`), a bay that is not two beams each way.
|
|
1152
|
+
- The panel lies on those faces, its edges 6.5 mm in from each slot's line for an M5 clip on a 2020, and is cut to
|
|
1153
|
+
what is left: a 400 x 300 mm bay of 2020 (slot lines 380 x 300 mm apart) takes 367 x 287 mm. `cad list` counts it
|
|
1154
|
+
under Bought by its sheet and size (`acrylic sheet, 3 mm cut 367 x 287 mm`) with its mass from the sheet's density.
|
|
1155
|
+
- Its printed clips go along each edge at no more than `"pitch"` apart (150 mm by default, `PANEL_DEFAULTS.pitch`),
|
|
1156
|
+
clear of the beams across the edge's ends and of their clips: each is an item (`front-clip`, `front-clip-2`, ...)
|
|
1157
|
+
with a fasten into its beam's slot, so its screw is chosen, checked and counted (14 × M5x10 button and 14 slot
|
|
1158
|
+
nuts round a 400 x 300 mm bay). `"nut"` chooses their slot nuts' kind; `"load"` (N) the load each clip is sized for.
|
|
1159
|
+
- `cad check` says `panel.size` (its sheet, size, mass and how many clips hold it) and `panel.thickness` (a warning
|
|
1160
|
+
where the sheet is not commonly stocked in that thickness), with each clip's own findings.
|
|
1161
|
+
- With `"door": { "hinge": "z1" }` the panel is a door. It stands off the faces by the hinge's frame leaf, a head
|
|
1162
|
+
and 1 mm (10.2 mm on a 2020), on two printed hinges along the beam named, each a frame leaf screwed into its slot
|
|
1163
|
+
and a door leaf screwed through the door into nuts, an M4 cap screw and lock nut for each pin (on `cad list`). It
|
|
1164
|
+
turns on a revolute joint `<id>-hinge` from 0 to `"open"` (120° by default), with poses `<id>-shut` and
|
|
1165
|
+
`<id>-open`. A handle (`"handle": false` leaves it off) is screwed from inside into its feet, and a magnet catch
|
|
1166
|
+
(`"catch"`) sits on the opposite beam under the door's edge; `"latch": true` adds a turn-button latch, shown shut.
|
|
1167
|
+
The holes the screws pass are cut in the door. `cad check --sweep` turns the door through its range: on its own,
|
|
1168
|
+
nothing collides. With its latch shut, the door hits the latch within its first degree, so the sweep also tries the
|
|
1169
|
+
door 0.5° off shut (`latch_probe`), finer than its steps, and fails there by name.
|
|
1170
|
+
- In a mechanism, a beam placed by its ends is the frame: what is screwed to it is held (`assembly.loose`).
|
|
1171
|
+
|
|
1172
|
+
**Services on a frame.** A bought board or supply with `"mount"` sits on a printed mount at an address on a beam's
|
|
1173
|
+
slotted face, its holes read from its own rule set (@rulecad/frames' README, Services):
|
|
1174
|
+
|
|
1175
|
+
```json
|
|
1176
|
+
{ "id": "psu", "bought": "supply-24v", "variant": "LRS-50-24", "mount": { "on": "rail.top@-90" } }
|
|
1177
|
+
```
|
|
1178
|
+
|
|
1179
|
+
- The mount is an item `<id>-mount` (a `device-mount` fitting), listed just before the device, and the device goes on
|
|
1180
|
+
its anchor `device`: leave out the device's `at` and `rotate`. `"turn"` (0, 90, 180, 270) and `"offset"` (mm across
|
|
1181
|
+
the slot) move the device on it; `"standoff"`, `"load"`, `"nut"`, `"head"` and `"screw"` are the model's own.
|
|
1182
|
+
- Its screws are fastens, so each is chosen, checked and counted: two into the slot past the device's body, and the
|
|
1183
|
+
device's own. A supply's go up from under the mount into its tapped holes: `fasten.length` chooses the longest sold
|
|
1184
|
+
that goes no further than its maker allows (`mount_hole_reach`, Mean Well's 3 mm), and `fasten.engagement` holds it
|
|
1185
|
+
to that. A board's go down through its drilled holes (held to the drilled clearances) into pilots on the mount.
|
|
1186
|
+
Refused by name: a mount on what is not a bought board or supply, a set with no `mount_holes`, an address that is
|
|
1187
|
+
not on a slotted face, an item with both `at` and `mount`.
|
|
1188
|
+
- `cad check` says `service.mount` for each, with the mount's own findings (`fitting.device`, `fitting.head`, its
|
|
1189
|
+
grams and margin).
|
|
1190
|
+
- A wire's `via` may hold a run along a slot: `{ "along": "rail.front", "from": 300, "to": 60, "pitch": 100,
|
|
1191
|
+
"cable": 6 }`, its ends in mm from the beam's end a. Printed cable clips snap into the slot at each end and no more
|
|
1192
|
+
than `pitch` apart (`<wire>-clip`, `<wire>-clip-2`, ...), each held by a fit that fastens, and the wire is routed
|
|
1193
|
+
through them, so its length follows the beam. `wire.run` says the run's length and its clips, and `wire.length`
|
|
1194
|
+
the part of the wire along the slot and how many clips hold it. A run past the beam's end is refused by name.
|
|
1195
|
+
- A run along the slot a mount sits on keeps its clips off the mount's plate: one goes each side of it, and
|
|
1196
|
+
`wire.run` warns by name that the wire must go round the mount there. A run that lies wholly under a plate is
|
|
1197
|
+
refused by name.
|
|
1198
|
+
- The other service parts are fitting items by kind: `fan-mount` (`"size": 80`), `drag-chain-end` (`"holes"`,
|
|
1199
|
+
`"screw"`), `din-rail`, `cable-clip`, `tie-anchor` and `spool-holder`.
|
|
1200
|
+
|
|
1201
|
+
**Guides.** `"guides"` puts linear motion on a beam: a miniature rail screwed down on a slotted face and its carriages
|
|
1202
|
+
(@rulecad/frames' README, Guides):
|
|
1203
|
+
|
|
1204
|
+
```json
|
|
1205
|
+
"guides": [{ "kind": "rail", "rail": "rail-mgn12", "carriage": "MGN12H", "on": "x1.top", "from": 50, "length": 300 }]
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
- The rail is a bought item named by the guide's `id` (`g1`, `g2`, ... by default), placed at `from` mm along the
|
|
1209
|
+
face from the beam's end a. Its screws are a fasten into the slot, one in each hole at the rail's pitch, so
|
|
1210
|
+
`fasten.length` chooses them, the slot nuts are placed with them (`"nut"` chooses their kind), and `cad list`
|
|
1211
|
+
counts both: an MGN12 cut to 300 mm takes twelve M3 cap screws 25 mm apart and twelve M3 slot nuts.
|
|
1212
|
+
- Each carriage (`"carriages"`, 1 by default) is a bought item `<id>-carriage-1`, ... on its own sliding joint
|
|
1213
|
+
`<id>-1`, ... along the beam, from 0 to its travel: its share of the rail less its length with its seals. The
|
|
1214
|
+
poses `<id>-a` and `<id>-b` put every carriage at the start and the end of its share; `cad check --sweep` slides
|
|
1215
|
+
each through its travel. A carriage's anchors are `top` and `t1` to `t4` (its tapped holes, from its top), for a
|
|
1216
|
+
table fixed on it.
|
|
1217
|
+
- `cad check` says `guide.holes` (the holes, their pitch and the end distance; `guide.end` where an end is past half
|
|
1218
|
+
the pitch), `guide.travel`, `guide.fit` (the rail on the face, a slot nut for its screws, its ends on the beam and
|
|
1219
|
+
clear of a beam joined across its face), `guide.budget` (what it adds to an error budget) and `guide.jig` (a
|
|
1220
|
+
printed jig that centres the rail while it is screwed down, as a `rail-jig` fitting item).
|
|
1221
|
+
- Each carriage's loads are held to its ratings at every pose (`joint.moment`): the weight of all it carries and the
|
|
1222
|
+
masses of `"loads"` hung on it, as a force and a moment about its middle on the rail's top, in its own frame.
|
|
1223
|
+
Each load over its rating (C0, MR, MP, MY), summed, is how much of the carriage it uses: past 1 it fails and names
|
|
1224
|
+
the rating, under 2 times over it warns. How they combine is an estimate, said as one.
|
|
1225
|
+
- A task whose chain runs through a carriage's joint counts the rail's terms in its error budget (`task.accuracy`):
|
|
1226
|
+
its running parallelism and its carriage's play from its rule set (`spec`), the beam's straightness over the rail
|
|
1227
|
+
from the profile's, and the beam's sag. Where the frame is solved (the assembly has joins or a `"frame"`), the sag is
|
|
1228
|
+
the frame's own figure along the guide's travel, worst over the poses (`frame.deflection`), tagged as the frame's
|
|
1229
|
+
figures are (`estimate` while any join's spring is, `measured`, or `derived` with no joins); else it is the rail's
|
|
1230
|
+
own estimate, the beam pinned at its ends under its own and its carriages' weight. The beam's twist is a term too:
|
|
1231
|
+
the profile's `twist_per_metre` over the guide's length turns the carriage about the beam's axis, which moves the
|
|
1232
|
+
tool by that angle times the tool's distance from the axis (3.33° a metre over 500 mm with the tool 23 mm from the
|
|
1233
|
+
axis: 1.665° × π / 180 × 23 = 0.668 mm). Wheels and sliders, which run on the beam itself, take its straightness and
|
|
1234
|
+
twist the same way; rods and screws span between holders at their ends and take neither. A slide is solved at the
|
|
1235
|
+
middle of its travel as well as at its ends, where a carriage between two supports bends its beam most.
|
|
1236
|
+
- Refused by name: a kind not built yet (a belt), a face that is not a beam's slotted face, `on` with a distance (that
|
|
1237
|
+
is `from`), a rail past the beam's end, a carriage its set has not got, and a rail too short for its carriages.
|
|
1238
|
+
|
|
1239
|
+
A carriage on V-wheels runs on a V-slot beam's own tracks, and a printed slider in or over a slot:
|
|
1240
|
+
|
|
1241
|
+
```json
|
|
1242
|
+
"guides": [{ "kind": "wheels", "wheel": "v-wheel-solid", "wheels": 4, "on": "x1.top", "from": 50, "length": 400 },
|
|
1243
|
+
{ "kind": "slider", "mode": "over", "size": 40, "on": "x2.top.1", "from": 100, "length": 200 }]
|
|
1244
|
+
```
|
|
1245
|
+
|
|
1246
|
+
- For wheels, `on` is the face the plate lies over; its wheels run in the V tracks of the two faces either side, and
|
|
1247
|
+
`from` and `length` are the stretch of the beam it rolls along. The plate is a printed fitting (`wheel-plate`)
|
|
1248
|
+
`<id>-carriage-1` on the sliding joint `<id>-1`, from 0 to the stretch less its length over its wheels; the wheels
|
|
1249
|
+
are bought items `<id>-wheel-1`, ... held to the plate at its anchors `w1`, `w2`, ..., the ones on the second side
|
|
1250
|
+
on eccentric spacers. `cad list` counts the wheels, the plate's grams, and its screws, lock nuts, washers and
|
|
1251
|
+
spacers. The plate's anchor `top` takes what it carries.
|
|
1252
|
+
- Where each wheel seats comes from the slot's track and the wheel's rim (`guide.fit`, with the axle's distance from
|
|
1253
|
+
the face). On a face with no V track (a plain T-slot) the guide is refused, saying why and what guides there
|
|
1254
|
+
instead. `guide.seat` compares the seat with the maker's own plate and warns when the eccentrics, on one side only, cannot take up the whole difference, `guide.preload` gives the eccentrics' range,
|
|
1255
|
+
and `guide.rating` each wheel's ratings, which rest on its plastic's contact pressure (an estimate).
|
|
1256
|
+
- Each plate's loads are shared among its wheels at every pose (`joint.moment`), each wheel's radial and axial load
|
|
1257
|
+
over its ratings: past 1 it fails and names the most loaded wheel. The sharing is an estimate, said as one.
|
|
1258
|
+
- A slider is a printed fitting (`slider`) on its sliding joint along the slot `on` names, over it (a shoe and a key,
|
|
1259
|
+
the default) or in it (`"mode": "in"`, a block under the lips, put in from the beam's end); `size` is its own
|
|
1260
|
+
length. Its clearance a side is the printer's fit, and `guide.friction` says its friction and wear rest on working
|
|
1261
|
+
figures until they are measured.
|
|
1262
|
+
- The overlap check measures a beam by its envelope less its V tracks. A wheel is checked whole: its rim in the track
|
|
1263
|
+
is clear, and a rim out of the track, or a part or beam across the track's line (an end cap, a crossing beam), is
|
|
1264
|
+
found. A slider's key, which stands in the slot's opening, is left out of the check. `guide.fit` checks the rim's
|
|
1265
|
+
seat in the track.
|
|
1266
|
+
|
|
1267
|
+
Two smooth rods carry a printed carriage on linear bearings, and a lead screw drives it from a motor; an endstop homes
|
|
1268
|
+
it. Each is placed by an address: the rods' holders at the ends of the stretch on the face, the motor plate before
|
|
1269
|
+
it, the switch's mount where its address says:
|
|
1270
|
+
|
|
1271
|
+
```json
|
|
1272
|
+
"guides": [{ "kind": "rods", "on": "x1.top", "from": 60, "length": 101, "endstop": { "at": "x1.front@82" } },
|
|
1273
|
+
{ "kind": "screw", "guide": "g1", "screw": "t8-screw", "motor": { "model": "28byj48", "microsteps": 1 } }]
|
|
1274
|
+
```
|
|
1275
|
+
|
|
1276
|
+
- A rods guide puts printed holders (`rod-holder`) at `<beam>.<face>@from` and `@from + length` (`<id>-holder-a` and
|
|
1277
|
+
`-b`), saddles screwed into the slots of the faces either side, one fasten a leg. The rods (`rod`, default `rod-8`)
|
|
1278
|
+
are bought items cut to the stretch, at holder a's anchors `r1` and `r2`; the carriage (`rod-carriage`,
|
|
1279
|
+
`<id>-carriage-1`) slides on the joint `<id>-1` with its bearings (`bearing`, default `lm8uu`) at its anchors `lm1`
|
|
1280
|
+
and `lm2`. Its travel is the stretch less the two holders, a millimetre's gap at each and the carriage with the
|
|
1281
|
+
nut's flange. `spacing` and `height` set the rods' place; their defaults leave room for what goes between and under.
|
|
1282
|
+
`"nut"` chooses the kind of slot nut the holders', the motor plate's and the endstop mount's screws go into: on a
|
|
1283
|
+
beam whose ends are both joined, a slide-in nut is shut in (`frame.nut` fails), so give `"nut": "drop-in"`.
|
|
1284
|
+
The carriage's anchor `top` takes what it carries.
|
|
1285
|
+
- A screw guide names the rods guide it drives (`guide`). It adds a printed motor plate (`motor-plate`, `<id>-plate`)
|
|
1286
|
+
before holder a, the motor (`<id>-motor`, a motor item: give its `model` and any of `microsteps`, `duty`, `speed`,
|
|
1287
|
+
`current`, `driver`) at the plate's anchor `motor`, the coupler and the screw at its anchor `coupler`, a ball bearing
|
|
1288
|
+
for the screw in each holder (`support`, default `bearing-608`, or null) and the lead nut on the carriage's anchor
|
|
1289
|
+
`nut`. The motor drives the carriage's joint with `leadscrew` from the screw's set (its lead and diameter) and
|
|
1290
|
+
`friction` (default the set's, an estimate), so `motor.torque`, `motor.speed` and `motor.holds` read the drive's
|
|
1291
|
+
ratio as they do any lead screw. `guide.drive` and `guide.coupler` (how far the shaft reaches into the coupler) say
|
|
1292
|
+
what was placed. A belt is not built yet; a screw on a rail or wheels is refused.
|
|
1293
|
+
- An endstop's printed mount (`endstop-mount`) goes at a side face's address (`endstop.at`), the switch (`switch`,
|
|
1294
|
+
default `endstop-10t85`) on it; a flag on the carriage's far end meets its lever. Where that happens is the joint's
|
|
1295
|
+
lower end and its `home` (`guide.endstop`). A switch the flag cannot reach, or a mount over a holder's leg, is
|
|
1296
|
+
refused, naming the address where it trips at the travel's start.
|
|
1297
|
+
- Each carriage's loads are shared between its bearings at every pose (`joint.moment`) against their static rating;
|
|
1298
|
+
a moment on one bush is taken as a couple along it, an estimate, said as one.
|
|
1299
|
+
|
|
589
1300
|
## Optimised parts
|
|
590
1301
|
|
|
591
1302
|
`cad optimise` finds the stiffest layout of a flat part: where to put a fixed amount of material so the part bends
|