I replaced my spindle with a servo motor and was hoping to use "M3 S0"
to hold the current position of the spindle. The signal
"motion.spindle-on" however only asserts if S>0, when S==0 the signal is
not asserted.

Is there a different signal I could use? Should this work?

Thanks in advance,
Markus

...
# ################
# Spindle [3]
# ################

newsig spindle-enable bit
sets spindle-enable FALSE

# spindle wiring
net spindle-enable              <= motion.spindle-on
net spindle-enable              => bb_gpio.p8.out-37
net spindle-enable              => hpg.stepgen.03.enable
net spindle-velocity            <= motion.spindle-speed-out-rps
net spindle-velocity            => hpg.stepgen.03.velocity-cmd

setp hpg.stepgen.03.control-type     1
setp hpg.stepgen.03.steppin        833
setp hpg.stepgen.03.dirpin         835

# timing parameters
setp hpg.stepgen.03.dirsetup        [SPINDLE]DIRSETUP
setp hpg.stepgen.03.dirhold         [SPINDLE]DIRHOLD

setp hpg.stepgen.03.steplen         [SPINDLE]STEPLEN
setp hpg.stepgen.03.stepspace       [SPINDLE]STEPSPACE

setp hpg.stepgen.03.position-scale  [SPINDLE]SCALE

setp hpg.stepgen.03.maxvel          [SPINDLE]STEPGEN_MAX_VEL
setp hpg.stepgen.03.maxaccel        [SPINDLE]STEPGEN_MAX_ACC

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/20200716210622.1fcc780f%40yolanda.

Reply via email to