Success is bldc init on startup of axis, and enable on machine on.  This is the 
hal fragment:

net machine-is-on  halui.machine.is-on pid.0.enable
net estop-out  iocontrol.0.user-enable-out bldc.0.init 
hm2_7i43.0.3pwmgen.03.enable
net all-are-init  bldc.0.init-done => iocontrol.0.emc-enable-in

Unsuccess is inability to get out of estop or turn machine on, with this 
fragment:

net machine-is-on  halui.machine.is-on pid.0.enable bldc.0.init 
hm2_7i43.0.3pwmgen.03.enable
net all-are-init  bldc.0.init-done => iocontrol.0.emc-enable-in

Looking at bldc.comp (version 1.3.2) lines 475 to 483, it would appear that a 
new rising
edge on init after init-done is high should restart things:

    if ((personality & 0x05) == 4){
        if (init && !old_init && init_done) {
            init_done = 0;
            in_type = -1;
        }
        else {
            old_init = init;
        }
    }


Thanks again,
-- Ralph
________________________________________
From: andy pugh [bodge...@gmail.com]
Sent: Wednesday, July 23, 2014 12:04 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] pins for bldc init and drive enable

On 23 July 2014 17:46, Ralph Stirling <ralph.stirl...@wallawalla.edu> wrote:

> I've tried, without success, connecting bldc.0.init to
> halui.machine.is-on.

What is the manifestation of the unsuccess?

I suspect that the problem is that bldc doesn't un-synch when un-enabled.

If you look at 
http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/bldc.comp;h=20c882ed95966d2b727e8b402b1e639907d22b85;hb=f32900ca49781e03d6094f77aef25d5b6446814c#l467
(line 467 onwards) I don't see any way to get your in-type back to a
non-homed state, and it is a read-only parameter.

You could edit line 111 to make the param rw so that it can be re-set
to -1. You would need to then reset it with a halcmd script (as params
can't be part of a net)

--
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

------------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to