---
name: "sim_spindle"
section: "9"
platform: "linux"
package: "linuxcnc-uspace"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sim_spindle"
---

# sim\_spindle(9)

Simulated spindle with index pulse

## NAME

sim\_spindle - Simulated spindle with index pulse

## SYNOPSIS

**loadrt sim\_spindle \[count=*N*\|names=*name1*\[,*name2...*\]\]**

## FUNCTIONS

- **sim-spindle.***N* (requires a floating-point thread)

  ## PINS

- **sim-spindle.*N*.velocity-cmd float in**

  Commanded speed

- **sim-spindle.*N*.position-fb float out**

  Feedback position, in revolutions

- **sim-spindle.*N*.index-enable bit io**

  Reset **position-fb** to 0 at the next full rotation

## PARAMETERS

- **sim-spindle.*N*.scale float rw (default: *1.0*)**

  factor applied to **velocity-cmd**.

  The result of '**velocity-cmd** \* **scale**' be in revolutions per second. For example, if **velocity-cmd** is in revolutions/minute, **scale** should be set to 1/60 or 0.016666667.

## AUTHOR

Michael Haberler

## LICENSE

GPL
