All pastes #361009 Raw Edit

Unnamed

public text v1 · immutable
#361009 ·published 2007-02-17 21:39 UTC
rendered paste body

loadusr -W pyvcp -c pyvcp laser_vcp.xml

# invoke this with halrun

loadrt or2 count=4
addf or2.0 servo-thread
addf or2.1 servo-thread
addf or2.2 servo-thread
addf or2.3 servo-thread

loadrt oneshot count=1
addf oneshot.0 servo-thread 

net bit1 pyvcp.estop_reset_button => pyvcp.led-sample1 parport.0.pin-02-out
net bit2 pyvcp.chbutton-sample2 => pyvcp.led-sample2 parport.0.pin-03-out
net bit3 pyvcp.chbutton-sample3 => pyvcp.led-sample3 parport.0.pin-04-out
net bit4 pyvcp.chbutton-sample4 => pyvcp.led-sample4 parport.0.pin-05-out

# net bit5 pyvcp.chbutton-sample5 => pyvcp.led-sample5 parport.0.pin-06-out

linkpp pyvcp.chbutton-sample5 => pyvcp.led-sample5 

linksp ventilation or2.0.in0
linkpp pyvcp.led-sample5 or2.0.in1
linkpp parport.0.pin-06-out or2.0.out

net bit6 pyvcp.chbutton-sample6 => pyvcp.led-sample6 parport.0.pin-07-out
net bit7 pyvcp.chbutton-sample7 => pyvcp.led-sample7 parport.0.pin-08-out halui.spindle.forward

# hook a pyvcp slider (floating point value) to oneshot.0.width, 
#  and a pyvcp momentary button to oneshot.N.in
#  and oneshot.0.out to your laser enable

net float1 pyvcp.pulse_duration-f => oneshot.0.width 
net bit8 pyvcp.pulse_button => oneshot.0.in

#  oneshot.0.out must get connected to laser enable
# I thought it should be this...
# net bit9 oneshot.0.out => pyvcp.led-pulse halui.mist.on
# but that does not pulse the laser.

net bit9 oneshot.0.out => pyvcp.led-pulse