On 1/12/2014 1:19 PM, Thomas Studwell wrote:
> The only oddity, which doesn't affect the motion but does affect
> power consumption, is that the signals are not initialized to high
> (AKA inactive state) on program startup.  The signals do go high and
> remain there after the first step, however.  The motors are energized
> at high level when the signal is left low.

You can fix this by editing the setup*.sh script in your configuration
directory.  At the end of the file is a list of GPIO pins (using the
Linux Kernel numbering scheme) and their desired mode (typically out).

The default initial value for output pins is low.  If you replace the
"out" in setup*.sh with "high" for the appropriate pins, the GPIO pin
will be initialized to a high value which it will keep until LinuxCNC
fully starts up and begins to twiddle the pins.  If you need to figure
out the proper kernel GPIO values to change, you may find the following
spreadsheet useful:

https://github.com/cdsteinkuehler/beaglebone-black-pinmux/blob/hal_pru_generic/pinmux.ods

-- 
Charles Steinkuehler
char...@steinkuehler.net

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to