One of the things I've been experimenting with is a bit of python code to
help figure out the PID values for printer extruders.  I have it working in
Axis.  Since that requires edits to the main hal file, I was hoping to get
it to work all by itself.

Everything seems to be working, except the bbb's PWM generator.  Below is a
subset of the hal file I'm using.  What is missing/wrong?

I execute the file with
halrun -I test.hal


loadusr -w /home/linuxcnc/linuxcnc/configs/BeagleBone/BeBoPr/setup.sh
loadrt trivkins
loadrt motmod servo_period_nsec=1000000 num_joints=1
loadrt hal_pru_generic
prucode=/home/linuxcnc/linuxcnc/rtlib/pru_generic.bin num_pwmgens=1
num_stepgens=1


addf hal_pru_generic.capture-position servo-thread
addf hal_pru_generic.update servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread

setp hal_pru_generic.pwmgen.00.pwm_period 1000000
setp hal_pru_generic.pwmgen.00.out.00.pin       0xAD
setp hal_pru_generic.pwmgen.00.out.00.enable    1
setp hal_pru_generic.pwmgen.00.out.00.value     0.5
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to