omdl  v1.0
OpenSCAD Mechanical Design Library
Clamps

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...
 

Usage Details

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>;

Function and/or Module Documentation

◆ clamp_cg()

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.

Parameters
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.

Multi-value and structured parameters

clamp

Data structure fields: clamp

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

clamp[0]: wall side

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].

clamp[2]: screw bore
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.

clamp[4]: pinch bar size

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.

cone

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().

cone[0]: wall side

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].

grip

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

grip[0]: wall side

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

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/fastener/clamps.scad>;
$fn = 36;
d = 7.00;
head = undef;
nut = [3.5, 1.5, 0, 4, 45, 1.25];
slot = [undef, -3];
bore = [3, undef, head, nut, slot];
clamp_cg(size=d, clamp=[0, undef, bore], mode=3);
// end_include
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.
Definition: clamps.scad:747

Clamp example diagram
topbackdiag
expand topexpand backexpand diag

Cone example script

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/fastener/clamps.scad>;
$fn = 36;
w = 2;
d = 7.00;
difference()
{
translate(-[d*2,d*2,w/2]) cube([d*4,d*4,w]);
clamp_cg(size=d, wth=w, mode=0);
}
clamp_cg(size=d, cone=[[0, 1]], mode=1);
// end_include
module cone(size=1, vr, center=false)
A cone.
Definition: common_3d.scad:461

Cone example diagram
topbackdiag
expand topexpand backexpand diag

Grip example script

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/fastener/clamps.scad>;
$fn = 36;
w = 2;
d = [7.00, 3.50];
e = max(d);
difference()
{
translate(-[e*2,e*2,w/2]) cube([e*4,e*4,w]);
clamp_cg(size=d, wth=w, mode=0);
}
clamp_cg(size=d, grip=0, mode=1);
// end_include

Grip example diagram
topbackdiag
expand topexpand backexpand 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:

◆ clamp_zt_1p()

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.

Parameters
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.

Multi-value and structured parameters

clamp

Data structure fields: clamp

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]

clamp[3]: pinch bar
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

tunnel

Data structure fields: tunnel

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]
tunnel[2]: tunnel mode

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

vr

Data structure fields: vr

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

vrm

Data structure fields: vrm

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

include <omdl-base.scad>;
include <parts/3d/fastener/clamps.scad>;
d = [10, 4];
z = 4;
c = [20, 10, 30];
t = [1, [-10, 0, +10], 5 + 16, [4, -2]];
v = [4, 1, 1];
rotate([90,0,0]) {
clamp_zt_1p (size=d, ztie=z, clamp=c, tunnel=t, vr=v);
color("white")
clamp_zt_1p (size=d, ztie=z, clamp=c, tunnel=t, vr=v, mode=0);
}
// end_include
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.
Definition: clamps.scad:1274

Zip tie clamp example diagram
topbottomright
expand topexpand bottomexpand right
backdiag
expand backexpand 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: