hw_spindle_enc()

Returns the spindle speed as measured by the encoder.

Retrieves the encoder-measured spindle speed as a floating-point value.

Syntax

planetcnc.hw_spindle_enc()

Parameters

Parameter Type Description Comment
None

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
enc_speed = planetcnc.hw_spindle_enc()
print("Spindle speed by encoder:", enc_speed)

See also