Machinekit

Machinekit

Machinekit Documentation

HAL Component — SIM_SPINDLE

INSTANTIABLE COMPONENTS — General

All instantiable components can be loaded in two manners

Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)

NAME

sim_spindle — Simulated spindle with index pulse

SYNOPSIS

sim_spindle

USAGE SYNOPSIS

loadrt sim_spindle
OR
newinst sim_spindle <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]

( args in [ ] denote possible args and parameters, may not be used in all components )

FUNCTIONS

sim_spindle.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )

PINS

sim_spindle.N.velocity-cmd float in ( OR <newinstname>.velocity-cmd float in ) - Commanded speed

sim_spindle.N.position-fb float out ( OR <newinstname>.position-fb float out ) - Feedback position, in revolutions

sim_spindle.N.index-enable bit io ( OR <newinstname>.index-enable bit io ) - Reset position-fb to 0 at next full rotation

sim_spindle.N.scale float io (default: 1.0) ( OR <newinstname>.scale float io (default: 1.0) ) - Factor applied to velocity-cmd.

LICENCE

GPL