param_remove()

Removes a global or local parameter from the PlanetCNC application's storage.

This function takes the parameter name as input, removes it from the storage, and returns whether the removal was successful.

Syntax

planetcnc.param_remove(name)

Parameters

Parameter Type Description
name str The name of the parameter to remove.

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
# Retrieve the value of a global parameter called "_feedspeed"
speed = planetcnc.param_get("_feedspeed")
if speed is not None:
    print("Feed speed is set to:", speed)
else:
    print("Parameter '_feedspeed' not found.")

See also

param_get
param_set
param_remove
param_persistent