On 05/02/2015 04:34 PM, Tom Easterday wrote:
> I am trying to get my charge pump to start up when Axis starts and the Estop 
> button is disabled (out) but not having any luck.  This page gives several 
> variations http://wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps and 
> says:
> 
> "An example is, "net notEstop iocontrol.0.user-enable-out => 
> charge-pump.enable"  to have the charge pump run except with an e-stop"
> 
> But this does not work.  I can either get the charge pump to come on when I 
> press the red On button in Axis (which is not what I want) or not come on at 
> all.  Any ideas?

The iocontrol manpage says:

>        iocontrol.0.user-enable-out
>               (Bit, Out) FALSE when an internal estop condition exists

Experimenting with 2.7.0~pre6 here shows that user-enable-out follows
the E-stop button in Axis, which is what i think you want.


> Snippet of related config:
> 
> loadrt trivkins
> loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
> num_joints=[TRAJ]AXES
> loadrt hostmot2
> loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_stepgens=3 
> sserial_port_0=00xxxx" 
> setp    hm2_5i25.0.watchdog.timeout_ns 5000000
> loadrt pid names=pid.x,pid.z,pid.s
> loadrt abs names=abs.spindle
> loadrt lowpass names=lowpass.spindle
> loadrt scale names=scale.spindle
> loadrt charge_pump
> 
> addf charge-pump servo-thread
> addf hm2_5i25.0.read          servo-thread
> addf motion-command-handler   servo-thread
> addf motion-controller        servo-thread
> addf pid.x.do-pid-calcs       servo-thread
> addf pid.z.do-pid-calcs       servo-thread
> addf pid.s.do-pid-calcs       servo-thread
> addf scale.spindle            servo-thread
> addf abs.spindle              servo-thread
> addf lowpass.spindle          servo-thread
> addf hm2_5i25.0.write         servo-thread
> 
> # ---Chargepump StepGen: 0.25 velocity = 10Khz square wave output---
> 
> setp   hm2_5i25.0.stepgen.02.dirsetup        100
> setp   hm2_5i25.0.stepgen.02.dirhold         100
> setp   hm2_5i25.0.stepgen.02.steplen         100
> setp   hm2_5i25.0.stepgen.02.stepspace       100
> setp   hm2_5i25.0.stepgen.02.position-scale  10000
> setp   hm2_5i25.0.stepgen.02.step_type       2
> setp   hm2_5i25.0.stepgen.02.control-type    1
> setp   hm2_5i25.0.stepgen.02.maxaccel        0
> setp   hm2_5i25.0.stepgen.02.maxvel          0
> setp   hm2_5i25.0.stepgen.02.velocity-cmd    0.25
> 
> net charge-pump   <=  charge-pump.out  => hm2_5i25.0.stepgen.02.enable
> 
> # --- ESTOP-EXT ---
> net estop-ext     <=  hm2_5i25.0.7i84.0.0.input-16
> 
> #net machine-is-enabled        <=  motion.motion-enabled
> net machine-is-enabled charge-pump.enable <=  motion.motion-enabled
> 
> 
> #  ---estop signals---
> 
> net estop-out     <=  iocontrol.0.user-enable-out
> net estop-ext     =>  iocontrol.0.emc-enable-in

I think you want charge-pump.enable netted to
iocontrol.0.user-enable-out, so that when the machine comes out of
Estop, the charge-pump starts pumping.

I dont understand why you're netting charge-pump.out to the stepgen
enable, could that be the source of your troubles?

The charge pump component makes a square wave all by itself, you don't
need a stepgen inline.  Just net the charge-pump.out to a gpio.


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to