All pastes #282684 Raw Edit

Untitled

public text v1 · immutable
#282684 ·published 2006-12-17 20:14 UTC
rendered paste body

#connect spindle speed to DAC
newsig spindle-speed-cmd float
linkps iocontrol.0.spindle-speed-out => spindle-speed-cmd
linksp spindle-speed-cmd => motenc.0.dac-03-value

# scale & offset
setp motenc.0.dac-03-gain [EMCIO]SPINDLE_VOLTS_PER_RPM

# Set output offset from ini file.
setp motenc.0.dac-03-offset [EMCIO]SPINDLE_DAC_OFFSET