You can take a look at one of my hal setups for bldc init in qi mode below. You have to use logic components with adequate input count. This configuration does not have neither bldc-init timeout nor it reacts to some e-stop signal at bldc-init step.
Or you could use Classicladder for this task. ... net all-inited and-all-inited.and not-all-inited.in iocontrol.0.emc-enable-in net not-inited not-all-inited.out => and-init.in-00 net user-enable-out iocontrol.0.user-enable-out net user-enable-out and-init.in-01 net bldc-init and-init.and net machine-is-enabled or-amp-enable.in-00 net bldc-init or-amp-enable.in-01 # --- X --- newsig x.enable bit sets x.enable FALSE net axis-0-enable axis.0.amp-enable-out => pid.x.enable net bldc-init => bldc.0.init net x.init-done bldc.0.init-done => and-all-inited.in-00 net x.index bldc.0.index-enable ... net amp-enable [HM2](DIG)32.out or-amp-enable.or On 07/23/2014 07:46 PM, Ralph Stirling wrote: > I'm trying to get bldc init to run off machine on > rather than just once when I start axis and > reset estop the first time. My current hal > configuration ties bldc.0.init to iocontrol.0.user-enable-out > and bldc.0.init-done to iocontrol.0.emc-enable-in, > which may have been what pncconf suggested. > I would also like to have hm2_7i43.0.3pwmgen.03.enable > be enabled and disabled from machine on/off. > > I've tried, without success, connecting bldc.0.init to > halui.machine.is-on. Any other suggestions? > > Thanks, > -- Ralph ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
