I hope you are doing well, I have been working in this problem some time 
now.

So, I am using *LinuxCNC/Machinekit* in a *Beaglebone* with a *Probotix 
PBX-BB rev 5.2*. I am trying to use *three *axis, with its *dir *and *step *
signal.

At first I had the problem that the motor was moving in* one direction* 
only. This was solved by* removing the pins* used (812, 813, 814, 815) from 
the line from the .hal

loadrt hal_bb_gpio output_pins=816,818,819 input_pins=807,808,809,810,817
(so it was a pin conflict between both drivers, the gpio and the pru)

If I *add *the pins (812, 813, 814, 815) to the previous line, it moves in 
one direction, then if I edit the file to remove then, it moves as desired, 
but when rebooting, it stops working, and I need to do the previous steps 
(add and remove the pins).

I think the hal_bb_gpio is copying the configuration file to a directory 
the pru driver is not able to do alone, as consequence of how I have the 
configuration.


I attached my .hal .ini .bbio, and setup.h (until now, I have been working 
over the CRAMPS files).


What are your thoughts?


Thanks in advance


Sergio Salinas

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/b210f32a-92e3-4aef-81f4-7cae8fa9365e%40googlegroups.com.

Attachment: CRAMPS.ini
Description: Binary data

Attachment: CRAMPS.hal
Description: Binary data

#!/bin/bash
# Copyright 2013
# Charles Steinkuehler <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

dtbo_err () {
	echo "Error loading device tree overlay file: $DTBO" >&2
	exit 1
}

pin_err () {
	echo "Error exporting pin:$PIN" >&2
	exit 1
}

dir_err () {
	echo "Error setting direction:$DIR on pin:$PIN" >&2
	exit 1
}

PRU=/sys/class/uio/uio0
echo -n "Waiting for $PRU "

while [ ! -r $PRU ]
do
    echo -n "."
    sleep 1
done
echo OK

if [ ! -r $PRU ] ; then
	echo PRU control files not found in $PRU >&2
	exit 1;
fi


Reply via email to