hw_spindle_idx()

Returns the spindle speed measured by the index signal.

Retrieves the spindle speed based on the index signal as a floating-point value.

Syntax

planetcnc.hw_spindle_idx()

Parameters

Parameter Type Description Comment
None

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
idx_speed = planetcnc.hw_spindle_idx()
print("Spindle speed by index signal:", idx_speed)

See also