All pastes #3145518 Raw Edit

Stuff

public unlisted text v1 · immutable
#3145518 ·published 2015-08-31 15:10 UTC
rendered paste body
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again

# Classic Ladder
loadrt classicladder_rt
addf classicladder.0.refresh  servo-thread
loadusr classicladder --nogui emcolathe.clp

# load the user space component for the Automation Direct GS2 VFD's
loadusr -Wn spindle-vfd gs2_vfd -r 9600 -p none -s 2 -n spindle-vfd -A 1 -D 2.0 -X

# connect the spindle direction pin to the GS2
net gs2-fwd spindle-vfd.spindle-fwd <= motion.spindle-forward

# connect the spindle on pin to the GS2
net gs2-run spindle-vfd.spindle-on <= motion.spindle-on

# connect the GS2 at speed to the motion at speed
net gs2-at-speed motion.spindle-at-speed <= spindle-vfd.at-speed

# connect the spindle RPM to the GS2
net gs2-RPM spindle-vfd.speed-command <= motion.spindle-speed-out