let — Variable bindingProgram & flow
Bind a named, unit-checked value for reuse.
let <name> = <expr>Equivalents: Fanuc #var · Siemens R-param
| Parameter | Type | Default | |
|---|---|---|---|
name | ident | — | the variable name |
expr | expr | — | value (carries its unit) |
Values keep their **dimension** (`mm`, `deg`, `rpm`, …), so the unit checker catches mistakes like adding a length to an angle. Reference the variable anywhere an expression is allowed.
let depth = 12mm
g1 z=-depth f200See also: define