![]() |
omdl
v1.0
OpenSCAD Mechanical Design Library
|
Clamps, bushings, and grips for wires and hoses. More...
Collaboration diagram for Clamps:Files | |
| file | clamps.scad |
| Clamps, bushings, and grips for wires and hoses. | |
Functions and/or Modules | |
| module | clamp_cg (size=1, clamp, cone, grip, wth=0, gap=10, mode) |
| A clamp, bushing, and/or grip for wire, hose, and/or pipe wall penetrations. More... | |
| module | clamp_zt_1p (size=1, ztie=1, clamp, tunnel, vr, vrm, align, mode=1) |
| A one piece zip tie clamp to secure wires or provide strain relief. More... | |
Clamps, bushings, and grips for wires and hoses.
| Requires: |
|---|
| include <omdl-base.scad>; |
| include <models/3d/fastener/screws.scad>; |
| include <parts/3d/fastener/clamps.scad>; |
| module clamp_cg | ( | size | = 1, |
| clamp | , | ||
| cone | , | ||
| grip | , | ||
| wth | = 0, |
||
| gap | = 10, |
||
| mode | |||
| ) |
A clamp, bushing, and/or grip for wire, hose, and/or pipe wall penetrations.
| size | <decimal-list-2 | decimal> wire size; a list [w, h] or a single decimal to set the wire diameter. |
| clamp | <datastruct | integer> screw clamp; structured data or a single integer to set the clamp wall side {0|1}. |
| cone | <datastruct | integer> bushing cone; structured data or a single integer to set the cone wall side {0|1}. |
| grip | <datastruct | integer> zip tie grip; structured data or a single integer to set the grip wall side {0|1}. |
| wth | <decimal> wall thickness. |
| gap | <decimal> wire gap percentage. |
| mode | <integer> operation mode {0=hole, 1=part-a, 2=part-b, 3=parts-a and b}. |
Construct a clamp, cone bushing, and/or a grip as a stand alone part or as a wall penetration hole finish that can secure or provide strain relief for passing wires, pipes, hoses, etc. The penetration can be circular or rectangular dependent on the size specification.
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | integer-list-2 | integer | required | wall side |
| 1 | decimal | h | base height |
| 2 | datastruct | decimal | (see below) | screw bore |
| 3 | decimal | d*3 | clamp depth |
| 4 | decimal-list-2 | decimal | 15 | pinch bar size |
The clamp can be placed on either side of the wall by assigning 0 or 1. To place a clamp on both sides of the wall, assign the value list [0, 1].
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal | max(size)/4 | d : bore diameter |
| 1 | decimal | h | l : bore length |
| 2 | (see below) | [d*2, d/3, d/3] | h : screw head |
| 3 | (see below) | undef | n : screw nut |
| 4 | (see below) | undef | s : nut slot cutout |
See screw_bore() for documentation of the data types for the screw bore parameters h, n, and s.
The pinch bar size, [h, w], is specified as a percentage of the penetration size height and the clamp depth. When a single decimal is specified, the height and width percentage are the same.
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | integer-list-2 | integer | required | wall side |
| 1 | decimal | max(size)/2 | cone base width |
| 2 | decimal | max(size)/3 | cone height |
| 3 | decimal | 255 | extrude mode |
The extrusion mode controls which sections of the cone are rendered. For more information see the mode parameter for extrude_rotate_trl().
The cone can be placed on either side of the wall by assigning 0 or 1. To place a cone on both sides of the wall, assign the value list [0, 1].
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | integer-list-2 | integer | required | wall side |
| 1 | decimal | max(size)/2 | zip tie width |
| 2 | decimal | max(size)/6 | zip tie height |
| 3 | decimal | max(size)*3/7 | grip base width |
| 4 | decimal | max(size)*3/2 | grip height |
| 5 | integer | 4 | cut count |
| 6 | decimal | 4/5 | cut height fraction |
| 7 | decimal | min(size)/5 | cut width |
| 8 | decimal | 0 | cut rotational offset |
The grip can be placed on either side of the wall by assigning 0 or 1. To place a grip on both sides of the wall, assign the value list [0, 1].
Clamp example script
| top | back | diag |
|---|---|---|
![]() | ![]() | ![]() |
Cone example script
| top | back | diag |
|---|---|---|
![]() | ![]() | ![]() |
Grip example script
| top | back | diag |
|---|---|---|
![]() | ![]() | ![]() |
Definition at line 746 of file clamps.scad.
Here is the call graph for this function:
Here is the caller graph for this function:| module clamp_zt_1p | ( | size | = 1, |
| ztie | = 1, |
||
| clamp | , | ||
| tunnel | , | ||
| vr | , | ||
| vrm | , | ||
| align | , | ||
| mode | = 1 |
||
| ) |
A one piece zip tie clamp to secure wires or provide strain relief.
| size | <decimal-list-2 | decimal> wire size; a list [w, h] or a single decimal for (w=h). |
| ztie | <decimal-list-2 | decimal> zip tie size; a list [zw, zh] or a single decimal to set zw with (zh=zw/2). |
| clamp | <datastruct> clamp size; a list [cw, ch, cd, [pbs]], the clamp width, height, depth, and pinch bar specification (pbs). |
| tunnel | <datastruct> zip tie tunnel configuration; (see below). |
| vr | <datastruct> rounding radii for clamp, wire seat and zip tie tunnel; (see below). |
| vrm | <datastruct> rounding mode for clamp, wire seat and zip tie tunnel; (see below). |
| align | <integer-list-3> part alignment; [w, h, d]. |
| mode | <integer> construction mode {0=removals, 1=additions}. |
Construct a one piece clamp that uses one or more zip ties to secure a wires hose, pipe, etc. The pinch bars and number of zip tie tunnels can be configured as described below. When the size of the clamp is not specified, default values will be assigned based on the wire size. Via the mode parameter, the tunnels can be constructed alone for object difference when integrating with other design components.
When size is a single decimal, the wire seat is a half-circle, centered at the top edge of the clamp. When size is a decimal-list-2, the seat is a rectangle with the upper top edge aligned with the top edge of the clamp. The wire seat rounding parameters are used only for the latter case.
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal | w *2 | clamp width |
| 1 | decimal | h *2 | clamp height |
| 2 | decimal | zw *2 | clamp depth |
| 3 | decimal-list-3 | decimal | zw /3 | pinch bar [pw, ph, po] |
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal | required | bar width |
| 1 | decimal | pw /3 | bar height |
| 2 | decimal | zw *3/2 | bar center offset |
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal | 1 | corner radius |
| 1 | decimal-list-n | decimal | 0 | list of center offsets |
| 2 | integer | 0 | tunnel mode |
| 3 | decimal-list-2 | [0, 0] | radial adjustment [w, h] |
| 4 | decimal-list-2 | [0, 0] | center offset [w, h] |
Integer value is binary encoded.
| b | description |
|---|---|
| 0-1 | w-size select {0:inner, 1:middle, 2:outer} |
| 2-3 | h-size select {0:inner, 1:middle, 2:outer} |
| 4 | project tunnel to bottom of clamp for zip tie access |
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal-list-4 | decimal | required | clamp rounding radii |
| 1 | decimal-list-4 | decimal | 0 | seat rounding radii |
| 2 | decimal-list-4 | decimal | 0 | tunnel rounding radii |
| e | data type | default value | parameter description |
|---|---|---|---|
| 0 | decimal-list-4 | decimal | [1, 1, 4, 3] | clamp rounding radii |
| 1 | decimal-list-4 | decimal | [4, 3, 1, 1] | seat rounding radii |
| 2 | decimal-list-4 | decimal | 1 | tunnel rounding radii |
Zip tie clamp example script
| top | bottom | right |
|---|---|---|
![]() | ![]() | ![]() |
| back | diag | |
![]() | ![]() |
Definition at line 1273 of file clamps.scad.
Here is the call graph for this function:
Here is the caller graph for this function: