Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-03 Thread Tom Easterday
Oops, had iocontrol.0.user-enable-out commented out in my flailing about with 
the config yesterday….nevermind
-Tom

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com 
 mailto:s...@highlab.com wrote:
 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.


--
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


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-03 Thread Tom Easterday

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com wrote:
 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.

This is not the case on my machine for some reason.   
iocontrol.0.user-enable-out does not follow my estop button.  My estop button 
does cause Axis’ estop button to toggle, as it should.  I do see that 
iocontrol.0.emc-enable-in does follow my estop button….
-Tom

--
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


[Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Tom Easterday
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?
Thanks,
-Tom


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=00 
setphm2_5i25.0.watchdog.timeout_ns 500
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-controllerservo-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.spindleservo-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.dirsetup100
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  1
setp   hm2_5i25.0.stepgen.02.step_type   2
setp   hm2_5i25.0.stepgen.02.control-type1
setp   hm2_5i25.0.stepgen.02.maxaccel0
setp   hm2_5i25.0.stepgen.02.maxvel  0
setp   hm2_5i25.0.stepgen.02.velocity-cmd0.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


--
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


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Sebastian Kuzminsky
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=00 
 setphm2_5i25.0.watchdog.timeout_ns 500
 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-controllerservo-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.spindleservo-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.dirsetup100
 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  1
 setp   hm2_5i25.0.stepgen.02.step_type   2
 setp   hm2_5i25.0.stepgen.02.control-type1
 setp   hm2_5i25.0.stepgen.02.maxaccel0
 setp   hm2_5i25.0.stepgen.02.maxvel  0
 setp   hm2_5i25.0.stepgen.02.velocity-cmd0.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


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Tom Easterday

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com wrote:
 
 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.

It does sound like what I want.

 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 thought I already tried that but will do it again and see...

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

Well, that wasn’t working but I have tried about a dozen different combinations 
and only the last one had that config.

 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.

Hmm, I wonder if this is my problem.  I want to use the Mesa stepgen to 
generate the charge pump signal.  Should I not even be doing the loadrt (and 
addf) for the charge-pump component?  But if I don’t will I still have all the 
charge pump signals (like charge-pump.enable and charge-pump.out)?  The mesa 
stepgen will stop if it loses contact with Linuxcnc (via watchdog).

Thanks Seb,
-Tom

--
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