linuxcnc-hal-sys 0.1.5

Generated, unsafe Rust bindings to the LinuxCNC HAL submodule
Documentation
#
# example usage of the VF-S11 VFD driver
#
# $Id: vfs11_vfd.hal,v 1.1 2009-09-19 23:00:27 mah Exp $
#
loadusr -Wn spindle-vfd vfs11_vfd -n spindle-vfd

# connect the spindle direction pins to the VFD
net vfs11-fwd spindle-vfd.spindle-fwd <= spindle.N.forward
net vfs11-rev spindle-vfd.spindle-rev <= spindle.N.reverse

# connect the spindle on pin to the VF-S11
net vfs11-run spindle-vfd.spindle-on <= spindle.N.on

# connect the VF-S11 at speed to the motion at speed
net vfs11-at-speed spindle.N.at-speed <= spindle-vfd.at-speed

# connect the spindle RPM to the VF-S11
net vfs11-RPM spindle-vfd.speed-command <= spindle.N.speed-out

# connect the VF-S11 DC brake
# used by default if spindle is stopped - uncomment to use
#net vfs11-spindle-brake spindle.N.brake => spindle-vfd.dc-brake

# to use the VFS11 jog mode for spindle orient 
# see orient.9 and motion.9
net spindle-orient spindle.N.orient spindle-vfd.max-speed spindle-vfd.jog-mode

# take precedence over control panel
setp spindle-vfd.enable 1