Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread John Thornton
The manuals are quite large, well not as large as they used to be so I 
assume you missed this important section on HAL. In particular look at 
the diagram in the net section 1.4.

http://linuxcnc.org/docs/html/hal/basic_hal.html

JT
On 9/10/2013 12:05 PM, Russell Brown wrote:
 Silly little HAL question if I may (I have RTFM and Googled but not
 found an obvious answer).

 Can you 'connect' two pins to the same signal without using or2 ?

 I managed to configure two buttons on my pendant to do an estop but had
 to use an or2  which is a bit clunky.

 I was just playing with the pyvcp examples and added the jog buttons but
 linuxcnc errors out with:

 Starting LinuxCNC...
 custom_postgui.hal:35: Signal 'jog-minus-x' can not add OUT pin 
 'pyvcp.x-minus', it already has OUT pin 'xhc-hb04.jog.minus-x'
 Shutting down and cleaning up LinuxCNC...
 It's not a huge problem to use or2 but I thought I'd ask to see if I'm
 missing a trick.

 TIA.



--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread Sebastian Kuzminsky
On 9/10/13 11:05 , Russell Brown wrote:

 Silly little HAL question if I may (I have RTFM and Googled but not
 found an obvious answer).

 Can you 'connect' two pins to the same signal without using or2 ?

 I managed to configure two buttons on my pendant to do an estop but had
 to use an or2  which is a bit clunky.

 I was just playing with the pyvcp examples and added the jog buttons but
 linuxcnc errors out with:

 Starting LinuxCNC...
 custom_postgui.hal:35: Signal 'jog-minus-x' can not add OUT pin 
 'pyvcp.x-minus', it already has OUT pin 'xhc-hb04.jog.minus-x'
 Shutting down and cleaning up LinuxCNC...

 It's not a huge problem to use or2 but I thought I'd ask to see if I'm
 missing a trick.

At most one Out pin (the kind of pin that sends out a value) can be 
connected to a net.  The full rules for what pins can be connected to a 
HAL net are here:

http://www.linuxcnc.org/docs/2.5/html/hal/basic_hal.html#_net_a_id_sub_net_a


In your situation you should probably use or2 to turn the two estop pins 
into one.


-- 
Sebastian Kuzminsky

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread Russell Brown
Quoth John Thornton.
The manuals are quite large, well not as large as they used to be so I 
assume you missed this important section on HAL. In particular look at 
the diagram in the net section 1.4.

http://linuxcnc.org/docs/html/hal/basic_hal.html

You mean:

An OUT pin can be connected only if there are no other OUT or IO pins 
on
the signal

I most certainly read it  understood is obviously another matter :-(
halui.jog.0.minus is an OUT pin then (I kind of thought it was an IN).

Anyway, that'll be a No.  One has to use or2.

Ta.
-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders

2013-09-10 Thread Rudy du Preez
I now realize that the A phase cannot go through the counter in the firmware
of the 6i25+7i77 setup and then read serial data.

Would it be easier to use a 5i20 + 7i33 combination. Then modify the
firmware so under some control input bit the A phase is first passed through
by-passing the counter, so that bit-banging can be done for the first 8
bytes to get the absolute offset.

Another way suggested by Marius is to use a differential multiplexer on the
encoder line before it gets to the 7i77, then first pass the A phase to a
gpio input and then switch to the encoder input.

Any more ideas?

Rudy


--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread Russell Brown

Silly little HAL question if I may (I have RTFM and Googled but not
found an obvious answer).

Can you 'connect' two pins to the same signal without using or2 ?

I managed to configure two buttons on my pendant to do an estop but had
to use an or2  which is a bit clunky.

I was just playing with the pyvcp examples and added the jog buttons but
linuxcnc errors out with:

Starting LinuxCNC...
custom_postgui.hal:35: Signal 'jog-minus-x' can not add OUT pin 
'pyvcp.x-minus', it already has OUT pin 'xhc-hb04.jog.minus-x'
Shutting down and cleaning up LinuxCNC...

It's not a huge problem to use or2 but I thought I'd ask to see if I'm
missing a trick.

TIA.

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders

2013-09-10 Thread Peter C. Wallace
On Tue, 10 Sep 2013, Rudy du Preez wrote:

 Date: Tue, 10 Sep 2013 19:50:53 +0200
 From: Rudy du Preez r...@asmsa.co.za
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders
 
 I now realize that the A phase cannot go through the counter in the firmware
 of the 6i25+7i77 setup and then read serial data.

Well... Thats not entirely true, the muxed data serial can be recovered just 
like the muxed encoder data is. 9600 baud is so slow that the muliplexing will 
cause minimal distortion (it will be sampled at 4 MHz so something like 400 
samples/bit time)

So _it is_ possible to have a dual use pin, though its a fair hack to the 
firmware (adding the multifunction UARX/Counter pin and arranging it to get 
wired correctly) and HM2 driver (supporting that new pin type)

If you had free differential input pins (7I74 on P2 etc) it might make more 
sense to simply connect the A/'A pins to the second differential input that 
connects to a UART.

Other options are using the PC's serial or USB/serial with 422 adapters since 
the absolute position is only read once and need not be read real time


 Would it be easier to use a 5i20 + 7i33 combination. Then modify the
 firmware so under some control input bit the A phase is first passed through
 by-passing the counter, so that bit-banging can be done for the first 8
 bytes to get the absolute offset.

 Another way suggested by Marius is to use a differential multiplexer on the
 encoder line before it gets to the 7i77, then first pass the A phase to a
 gpio input and then switch to the encoder input.

 Any more ideas?

 Rudy


 --
 How ServiceNow helps IT people transform IT departments:
 1. Consolidate legacy IT systems to a single system of record for IT
 2. Standardize and globalize service processes across IT
 3. Implement zero-touch automation to replace manual, redundant tasks
 http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread andy pugh
On 10 September 2013 20:34, Russell Brown russ...@lls.lls.com wrote:

 Which one could paraphrase as being An IN can only have one OUT
 connected to it.

Indeed. It must always be unambiguous what the value of a signal is.
Everything connected to the same signal (where a signal is the first
string after the net command) has the same value.
Which is tricky to arrange if they are connected to different physical buttons.

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

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders

2013-09-10 Thread andy pugh
On 10 September 2013 21:09, Greg Bentzinger skullwo...@yahoo.com wrote:

 Remember this serial input will be needed for every joint/servo drive.

 That is several serial channels if they need to be read all at once. Otherwise
 you will need some form of switching unit to feed each channel as you 
 'home/read home'.

If you enable the encoders in sequence then they would fill the UART in order.
One possibility might be to connect each encoder to the preceding amp-enable:

So, GPIO-0 enables encoder 0, when encoder 0 is inited then amp-enable
0 is set high.
Amp-enable 0 enables encoder 1…
amp-enable 1 enables encoder 2...

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

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] BBB - hal input pin setup

2013-09-10 Thread Klemen Dovrtel
I was reading the tutorial/explanation 
(http://bb-lcnc.blogspot.com/2013/07/adding-homelimit-switches.html) for BBB 
hal setup and i tried to test it myself. I wrote a simple hal file to test the 
gpio input and output. I used the p8.7 as input and p8.11 and p8.13 as output:


loadrt hal_bb_gpioinput_pins=103 output_pins=111,113

net gpiopulse siggen.1.clock = bb_gpio.p8.out-11 bb_gpio.p8.out-13

#net intoout bb_gpio.p8.in-3 = bb_gpio.p8.out-13


This works fine, i can see the leds blinking. There are also no errors about 
the pin 103 usage - strange.


But if i change the  input_pin103 to 107, i get an error:
Waiting for component 'hal_bb_gpio' to become 
ready..
ledtets.hal:11: /home/linuxcnc/linuxcnc/bin/rtapi_app exited without becoming 
ready
ledtets.hal:11: insmod failed, returned -1

If try to use the 103 again and net intoout bb_gpio.p8.in-3 = 
bb_gpio.p8.out-13
I get a different error: ledtets.hal:31: Pin 'bb_gpio.p8.in-3' does not exist

I have no idea what could be wrong. Can some please give me a hint for an 
error. Any suggestion would be greatly appreciated.

I pasted my setup/config and console outputs below:



-

$ sudo cat /sys/kernel/debug/gpio
GPIOs 0-31, gpio:
 gpio-9   (sysfs   ) out lo
 gpio-13  (sysfs   ) out lo

GPIOs 32-63, gpio:
 gpio-36  (sysfs   ) in  hi
 gpio-52  (eMMC_RSTn   ) out lo

GPIOs 64-95, gpio:

GPIOs 96-127, gpio:

-
$ sudo cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups
registered pin groups:
group: pinmux_userled_pins
pin 21 (44e10854)
pin 22 (44e10858)
pin 23 (44e1085c)
pin 24 (44e10860)

group: pinmux_rstctl_pins
pin 20 (44e10850)

group: pinmux_i2c0_pins
pin 98 (44e10988)
pin 99 (44e1098c)

group: pinmux_i2c2_pins
pin 94 (44e10978)
pin 95 (44e1097c)

group: ledtest_pins
pin 36 (44e10890)
pin 13 (44e10834)
pin 9 (44e10824)


--BB-HAL-LEDTEST-00A0.dts---
/dts-v1/;
/plugin/;

/ {
    compatible = ti,beaglebone, ti,beaglebone-black;

    /* identification */
    part-number = BB-LCNC-BEBOPR;
    version = 00A0;

    /* state the resources this cape uses */
    exclusive-use =
    /* the pin header uses */
    p8.7, /* gpio */
    p8.11,    /* gpio */
    p8.13;    /* gpio */


    fragment@0 {
    target = am33xx_pinmux;
    __overlay__ {

    ledtest_pins: ledtest_pins {
    pinctrl-single,pins = 
    0x90 0x3f   /* p8.7  input, 
pull-up, mode 7 */
    0x34 0x0f   /* p8.11 output, mode 7 
    */
    0x24 0x0f   /* p8.13 output, mode 7 
    */
    ;
    };
    };
    };

 fragment@1 {
    target = pruss;
    __overlay__ {
    status = okay;

    pinctrl-names = default;
    pinctrl-0 = ledtest_pins;

    };
    };

--setup.sh---
for DTBO in BB-HAL-LEDTEST ; do

    if grep -q $DTBO $SLOTS ; then
    echo $DTBO overlay found
    else
    echo Loading $DTBO overlay
    sudo -A su -c echo $DTBO  $SLOTS || dtbo_err
    sleep 1
    fi
done;

#if [ ! -r /sys/devices/ocp.*/helper.*/AIN0 ] ; then
#   echo Analog input files not found in /sys/devices/ocp.*/helper.* 2
#   exit 1;
#fi

if [ ! -r /sys/class/uio/uio0 ] ; then
    echo PRU control files not found in /sys/class/uio/uio0 2
    exit 1;
fi

# Export GPIO pins
# This really only needs to be done to enable the low-level clocks for the GPIO
# modules.  There is probably a better way to do this...
while read PIN DIR JUNK ; do
    case $PIN in
    |\#*)
    continue ;;
    *)
    [ -r /sys/class/gpio/gpio$PIN ]  continue
    sudo -A su -c echo $PIN  /sys/class/gpio/export || pin_err
    sudo -A su -c echo $DIR  /sys/class/gpio/gpio$PIN/direction 
|| dir_err
    ;;
    esac

done - EOF
    36  in  # gpio
    13  out # gpio
 9  out # gpio
EOF
--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk

Re: [Emc-users] Unified Build/ new RTOS work: general availability for testing

2013-09-10 Thread andy pugh
On 10 September 2013 23:46, Thomas Kaiser c...@kaiser-linux.li wrote:

 I got the same error on both machines after I run ./configure:
 checking libgl1-mesa-dri workaround... test for libgl1-mesa-dri
 workaround failed, please file a bug

I think this is just the first of many missing dependencies you will find.

I further think that I have made this go away by following Seb's
advice from a while ago:

cd debian
./configure -r
cd ..
dpkg-checkbuilddeps

Then sudo apt-get install that list. (after editing it, as it contains
a few comments like versions numbers and alternative packages,

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

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders

2013-09-10 Thread Stephen Dubovsky
Run physical signal to two pins?  Encoder  gpio.  Encoder wont care about
extra twiddling at start (and you're going to reset its counter anyway).
Gpio (uart) doesn't care if you ignore its output later.

SMD


On Tue, Sep 10, 2013 at 1:50 PM, Rudy du Preez r...@asmsa.co.za wrote:

 I now realize that the A phase cannot go through the counter in the
 firmware
 of the 6i25+7i77 setup and then read serial data.

 Would it be easier to use a 5i20 + 7i33 combination. Then modify the
 firmware so under some control input bit the A phase is first passed
 through
 by-passing the counter, so that bit-banging can be done for the first 8
 bytes to get the absolute offset.

 Another way suggested by Marius is to use a differential multiplexer on the
 encoder line before it gets to the 7i77, then first pass the A phase to a
 gpio input and then switch to the encoder input.

 Any more ideas?

 Rudy



 --
 How ServiceNow helps IT people transform IT departments:
 1. Consolidate legacy IT systems to a single system of record for IT
 2. Standardize and globalize service processes across IT
 3. Implement zero-touch automation to replace manual, redundant tasks
 http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread Russell Brown
Quoth andy pugh.
On 10 September 2013 18:27, Russell Brown russ...@lls.lls.com wrote:

 I most certainly read it  understood is obviously another matter :-(
 halui.jog.0.minus is an OUT pin then (I kind of thought it was an IN).

No, that's definitely an in.
halcmd show pin *jog*

Ah...  so I can't connect pyvcp.x-minus and xhc-hb04.jog.minus-x to
halui.jog.0.minus, without an or2, because of:

An OUT pin can be connected only if there are no other OUT or IO pins on
the signal 

Which one could paraphrase as being An IN can only have one OUT
connected to it.

Isn't English wonderful :-)

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unified Build/ new RTOS work: general availability for testing

2013-09-10 Thread Thomas Kaiser
On 09/11/2013 01:16 AM, andy pugh wrote:
 On 10 September 2013 23:46, Thomas Kaiser c...@kaiser-linux.li wrote:

 I got the same error on both machines after I run ./configure:
 checking libgl1-mesa-dri workaround... test for libgl1-mesa-dri
 workaround failed, please file a bug

 I think this is just the first of many missing dependencies you will find.

 I further think that I have made this go away by following Seb's
 advice from a while ago:

 cd debian
 ./configure -r
 cd ..
 dpkg-checkbuilddeps

 Then sudo apt-get install that list. (after editing it, as it contains
 a few comments like versions numbers and alternative packages,


Hello Andy

Thanks for the hint. I used the following command to pull in all the 
dependencies:
sudo apt-get install libpth-dev dvipng tcl8.4-dev tk8.4-dev bwidget blt 
asciidoc source-highlight dblatex groff python-tk libglu1-mesa-dev 
mesa-common-dev libosmesa6-dev libgtk2.0-dev libgnomeprintui2.2-dev 
libgnomeprintui2.2-dev texlive-lang-cyrillic

But make dos not like me :-(
thomas@Intel64:~/Projects/linuxcnc/src$ make
Makefile:87: Makefile.inc: No such file or directory
Makefile:98: *** Makefile.inc must specify 'BUILD_THREAD_FLAVORS' and 
other variables.  Stop.
thomas@Intel64:~/Projects/linuxcnc/src$

Any help?

Thomas




--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unified Build/ new RTOS work: general availability for testing

2013-09-10 Thread Thomas Kaiser
On 09/03/2013 08:26 AM, Michael Haberler wrote:
 how to try it
 ===
 we do not have packages as of yet - you need to build from source. Whatever 
 kernel you happen to be running is fine if you have the linux-headers pkg 
 installed.

 Follow the steps outlined in section 3 to build: 
 http://static.mah.priv.at/public/html/common/UnifiedBuild.html#_installation 
 , then run your configuration as usual.

Hi All

I tried to build Unified Build LinuxCNC on Ubuntu 13.04 (Linux 
3.8.0-30-generic) and Ubuntu 12.04 (Linux 3.2.0-53-generic). Both boxes 
fully updated.

I got the same error on both machines after I run ./configure:
checking libgl1-mesa-dri workaround... test for libgl1-mesa-dri 
workaround failed, please file a bug

A quick google didn't found something useful to solve this.
Anyone knows how to solve this error?

One side note:
I had to install git and autoconf to get to the ./configure state.

This section:
3.2. Packages required, Install the following packages:
could be extended to:
$ sudo apt-get install  libudev-dev libmodbus-dev libboost-python-dev 
git autoconf

Thomas








--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: two pins for same function without or2 ?

2013-09-10 Thread andy pugh
On 10 September 2013 18:27, Russell Brown russ...@lls.lls.com wrote:

 I most certainly read it  understood is obviously another matter :-(
 halui.jog.0.minus is an OUT pin then (I kind of thought it was an IN).

No, that's definitely an in.

halcmd show pin *jog*

If you doubt me.

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

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Motorman Robot with absolute Yaskawa encoders

2013-09-10 Thread Greg Bentzinger
Quote: Peter C. Wallace p...@mesanet.com

snip -
 
Well... Thats not entirely true, the muxed data serial can be recovered just 
like the muxed encoder data is. 9600 baud is so slow that the muliplexing will 
cause minimal distortion (it will be sampled at 4 MHz so something like 400 
samples/bit time)

So _it is_ possible to have a dual use pin, though its a fair hack to the 
firmware (adding the multifunction UARX/Counter pin and arranging it to get 
wired correctly) and HM2 driver (supporting that new pin type)

If you had free differential input pins (7I74 on P2 etc) it might make more 
sense to simply connect the A/'A pins to the second differential input that 
connects to a UART.

Other options are using the PC's serial or USB/serial with 422 adapters since 
the absolute position is only read once and need not be read real time

end quote:
 
Remember this serial input will be needed for every joint/servo drive.
 
That is several serial channels if they need to be read all at once. Otherwise 
you will need some form of switching unit to feed each channel as you 
'home/read home'.

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unified Build/ new RTOS work: general availability for testing

2013-09-10 Thread Michael Haberler
Hello Thomas,

Am 11.09.2013 um 02:16 schrieb Thomas Kaiser c...@kaiser-linux.li:

 On 09/11/2013 01:16 AM, andy pugh wrote:
 On 10 September 2013 23:46, Thomas Kaiser c...@kaiser-linux.li wrote:
 
 I got the same error on both machines after I run ./configure:
 checking libgl1-mesa-dri workaround... test for libgl1-mesa-dri
 workaround failed, please file a bug
 
 I think this is just the first of many missing dependencies you will find.
 
 I further think that I have made this go away by following Seb's
 advice from a while ago:
 
 cd debian
 ./configure -r
 cd ..
 dpkg-checkbuilddeps
 
 Then sudo apt-get install that list. (after editing it, as it contains
 a few comments like versions numbers and alternative packages,
 
 
 Hello Andy
 
 Thanks for the hint. I used the following command to pull in all the 
 dependencies:
 sudo apt-get install libpth-dev dvipng tcl8.4-dev tk8.4-dev bwidget blt 
 asciidoc source-highlight dblatex groff python-tk libglu1-mesa-dev 
 mesa-common-dev libosmesa6-dev libgtk2.0-dev libgnomeprintui2.2-dev 
 libgnomeprintui2.2-dev texlive-lang-cyrillic
 
 But make dos not like me :-(
 thomas@Intel64:~/Projects/linuxcnc/src$ make
 Makefile:87: Makefile.inc: No such file or directory
 Makefile:98: *** Makefile.inc must specify 'BUILD_THREAD_FLAVORS' and 
 other variables.  Stop.
 thomas@Intel64:~/Projects/linuxcnc/src$
 
 Any help?

this indicates Makefile.inc does not exist, which is created by a successful 
configure run. Since the first attempt failed configure didnt complete.

Please redo the steps as outlined in Configuring and Building: The Basic 
procedure in  http://static.mah.priv.at/public/UnifiedBuild.html .

- Michael

 


--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] BBB - hal input pin setup

2013-09-10 Thread Troy Jacobson
The bb_gpio.p8.in-** are always two digit numbers, so bb_gpio.p8.in-03
should work.

The without becoming ready is probably indicating that the gpio pin isn't
correctly configured elsewhere, like the dts file.  Did you compile the dts
file after editing (that was one of the first things I had to learn about)?
 sudo ./dtc.sh should do the trick.  I think your dts file looks good for
using pin 7.

In the setup.sh file, I think 36 should be changed to 66 for using pin 7.


On Tue, Sep 10, 2013 at 2:32 PM, Klemen Dovrtel klemen_dovr...@yahoo.comwrote:

 I was reading the tutorial/explanation (
 http://bb-lcnc.blogspot.com/2013/07/adding-homelimit-switches.html) for
 BBB hal setup and i tried to test it myself. I wrote a simple hal file to
 test the gpio input and output. I used the p8.7 as input and p8.11 and
 p8.13 as output:


 loadrt hal_bb_gpioinput_pins=103 output_pins=111,113

 net gpiopulse siggen.1.clock = bb_gpio.p8.out-11 bb_gpio.p8.out-13

 #net intoout bb_gpio.p8.in-3 = bb_gpio.p8.out-13


 This works fine, i can see the leds blinking. There are also no errors
 about the pin 103 usage - strange.


 But if i change the  input_pin103 to 107, i get an error:
 Waiting for component 'hal_bb_gpio' to become
 ready..
 ledtets.hal:11: /home/linuxcnc/linuxcnc/bin/rtapi_app exited without
 becoming ready
 ledtets.hal:11: insmod failed, returned -1

 If try to use the 103 again and net intoout bb_gpio.p8.in-3 =
 bb_gpio.p8.out-13
 I get a different error: ledtets.hal:31: Pin 'bb_gpio.p8.in-3' does not
 exist

 I have no idea what could be wrong. Can some please give me a hint for an
 error. Any suggestion would be greatly appreciated.

 I pasted my setup/config and console outputs below:



 -

 $ sudo cat /sys/kernel/debug/gpio
 GPIOs 0-31, gpio:
  gpio-9   (sysfs   ) out lo
  gpio-13  (sysfs   ) out lo

 GPIOs 32-63, gpio:
  gpio-36  (sysfs   ) in  hi
  gpio-52  (eMMC_RSTn   ) out lo

 GPIOs 64-95, gpio:

 GPIOs 96-127, gpio:

 -
 $ sudo cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups
 registered pin groups:
 group: pinmux_userled_pins
 pin 21 (44e10854)
 pin 22 (44e10858)
 pin 23 (44e1085c)
 pin 24 (44e10860)

 group: pinmux_rstctl_pins
 pin 20 (44e10850)

 group: pinmux_i2c0_pins
 pin 98 (44e10988)
 pin 99 (44e1098c)

 group: pinmux_i2c2_pins
 pin 94 (44e10978)
 pin 95 (44e1097c)

 group: ledtest_pins
 pin 36 (44e10890)
 pin 13 (44e10834)
 pin 9 (44e10824)



 --BB-HAL-LEDTEST-00A0.dts---
 /dts-v1/;
 /plugin/;

 / {
 compatible = ti,beaglebone, ti,beaglebone-black;

 /* identification */
 part-number = BB-LCNC-BEBOPR;
 version = 00A0;

 /* state the resources this cape uses */
 exclusive-use =
 /* the pin header uses */
 p8.7, /* gpio */
 p8.11,/* gpio */
 p8.13;/* gpio */


 fragment@0 {
 target = am33xx_pinmux;
 __overlay__ {

 ledtest_pins: ledtest_pins {
 pinctrl-single,pins = 
 0x90 0x3f   /* p8.7  input,
 pull-up, mode 7 */
 0x34 0x0f   /* p8.11 output,
 mode 7 */
 0x24 0x0f   /* p8.13 output,
 mode 7 */
 ;
 };
 };
 };

  fragment@1 {
 target = pruss;
 __overlay__ {
 status = okay;

 pinctrl-names = default;
 pinctrl-0 = ledtest_pins;

 };
 };

 --setup.sh---
 for DTBO in BB-HAL-LEDTEST ; do

 if grep -q $DTBO $SLOTS ; then
 echo $DTBO overlay found
 else
 echo Loading $DTBO overlay
 sudo -A su -c echo $DTBO  $SLOTS || dtbo_err
 sleep 1
 fi
 done;

 #if [ ! -r /sys/devices/ocp.*/helper.*/AIN0 ] ; then
 #   echo Analog input files not found in /sys/devices/ocp.*/helper.*
 2
 #   exit 1;
 #fi

 if [ ! -r /sys/class/uio/uio0 ] ; then
 echo PRU control files not found in /sys/class/uio/uio0 2
 exit 1;
 fi

 # Export GPIO pins
 # This really only needs to be done to enable the low-level clocks for the
 GPIO
 # modules.  There is probably a better way to do this...
 while read PIN DIR JUNK ; do
 case $PIN in
 |\#*)
 continue ;;
 *)
 [ -r /sys/class/gpio/gpio$PIN ]  continue
 sudo -A su -c echo $PIN