loadrt probe_parport loadrt hal_parport cfg="0x0378 in" loadrt mux16 names=jogincr #Software MPG Lines changed on 25-05-2013 to hook up the hardware jog wheel loadrt encoder num_chan=1 loadrt and2 count=3 loadrt mux4 count=1 #loadrt conv_float_s32 count=1 addf parport.0.read servo-thread addf parport.0.write servo-thread #Software MPG Lines Lines changed on 25-05-2013 to hook up the hardware jog wheel addf and2.0 servo-thread addf and2.1 servo-thread addf and2.2 servo-thread addf mux4.0 servo-thread #addf conv-float-s32.0 servo-thread addf encoder.capture-position servo-thread addf encoder.update-counters servo-thread # If your MPG outputs a quadture signal per click set x4 to 1 # If your MPG puts out 1 pulse per click set x4 to 0 setp encoder.0.x4-mode 0 #PARALLEL PORT INPUTS AND OUTPUTS net led-02 pyvcp.led-02 parport.0.pin-02-in-not net led-03 pyvcp.led-03 parport.0.pin-03-in-not # mpg_control - 20090406 KW from Wallacecompany # Connects HAL pins for pyVCP mpg control panel net mpg-X-enable axis.0.jog-enable and2.0.out net mpg-Y-enable axis.1.jog-enable and2.1.out net mpg-Z-enable axis.2.jog-enable and2.2.out net and0a and2.0.in0 pyvcp.mpg-axis.X net mpg-en pyvcp.mpg-enable and2.0.in1 and2.1.in1 and2.2.in1 net and1a and2.1.in0 pyvcp.mpg-axis.Y net and2a and2.2.in0 pyvcp.mpg-axis.Z net mpg-low pyvcp.mpg-scale..001 net mpg-medium pyvcp.mpg-scale..01 mux4.0.sel0 net mpg-high pyvcp.mpg-scale..1 mux4.0.sel1 net mpg-scale mux4.0.out axis.0.jog-scale axis.1.jog-scale axis.2.jog-scale setp mux4.0.in0 0.001 setp mux4.0.in1 0.01 setp mux4.0.in2 .1 #We erased the .... lines #net flt2s32 pyvcp.mpg-wheel conv-float-s32.0.in #net mpg-counts conv-float-s32.0.out axis.0.jog-counts axis.1.jog-counts axis.2.jog-counts #And added these: net mpg-a encoder.0.phase-A <= parport.0.pin-02-in net mpg-b encoder.0.phase-B <= parport.0.pin-03-in net pend-counts axis.0.jog-counts <= encoder.0.counts net pend-counts axis.1.jog-counts net pend-counts axis.2.jog-counts