let — Variable bindingProgram & flow

Bind a named, unit-checked value for reuse.

let <name> = <expr>

Equivalents: Fanuc #var · Siemens R-param

ParameterTypeDefault
nameidentthe variable name
exprexprvalue (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.

parametric depth
let depth = 12mm
g1 z=-depth f200

See also: define

← all commands