On 1/12/2014 2:36 PM, Charles Steinkuehler wrote: > 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, I didn't see any reference to 'high' being a valid 'direction' using the virtual GPIO pins, so I added these to the end of the setup.sh file. If I get time later today or tomorrow, I'll update the script to process an optional 'level' parameter to the pin list rather than hardcoding it like this.
Included text: sudo -A su -c "echo 1 > /sys/class/gpio/gpio44/value" sudo -A su -c "echo 1 > /sys/class/gpio/gpio46/value" sudo -A su -c "echo 1 > /sys/class/gpio/gpio48/value" Tom ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
