[Emc-users] MESA card suggestions

2023-12-15 Thread alanmthomason--- via Emc-users
Hi There.

 

I am looking for a suggestion for the best MESA card to be used with 

an ethernet connection

4axes 

Teknic servo / stepper taking a step/direction input of 5 to 24V

Ideally this would be in a format that I could mount in a simple enclosure.

3digital inputs per axis, so 12inputs

1 additional digital output.

 

I will be using a fresh build of linuxcnc on a 64bit Ubuntu platform.

 

Thanks very much,

Alan


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Stepping through linuxcnc

2023-12-10 Thread alanmthomason--- via Emc-users
Hi There.I am looking for guidance to build linuxcnc in a way that I can
step through it.  I can build currently, but in trying to understand the
underlying code I was hoping to use a debugger to step through it.  

I could not find any flags in the configure -help that looked right.  

 

Thanks so much, Alan.


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 12-M99-endless-main-program test fa

2023-08-12 Thread alanmthomason--- via Emc-users
Hi Gene...

I might have to leave my path of using the beaglebone for now and switch to
the Raspberry Pi.  Do you have any notes on how you reached your success?
For instance, where did you get or how did you make your real time image
etc.  Or perhaps just point me to a recent set of notes for the
RPi/LinuxCNC.

Thanks very much,
Alan

-Original Message-
From: gene heskett  
Sent: Friday, August 11, 2023 10:56 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] 12-M99-endless-main-program test fa

On 8/11/23 22:06, gene heskett wrote:
> On 8/11/23 11:59, andy pugh wrote:
>> On Fri, 11 Aug 2023 at 16:41, gene heskett  wrote:
>>
>>> Same thing here Andy. but now I don't have the rest of this planets 
>>> languages installed, so how do I tell dpkg-buildpackage to build 
>>> OMLY english, utf-8 docs, Its (make-buster-debs) dying on the .de docs
now.
>>
>> It's probably easier to skip building docs.
>>
>> ./configure --enable-build-documentation=no
>>
>>
> Andy, I added that to the ./configure line, but it had no effect.
> #!/bin/bash
> # converted to relative cd-ing
> cd buster-linuxcnc/debian
> ./configure uspace --enable-build-documentation=no cd ..
> echo 5 `pwd`
> dpkg-checkbuilddeps
> echo 7 `pwd`
> dpkg-buildpackage -b -uc
> cd ..
> mv *.deb buster-lcnc-debs/
> 
> Same exact exit, same elapsed time.
> but now emits this:
> pi@rpi4:/media/pi/workspace $ time ./buster-make-debs.sh uspace is 
> accepted for compatibility, but ignored Unknown option: 
> --enable-build-documentation=no
> 
> stepped by hand, ./configure --help says its no-docs, so fixed script, 
> trying again. No complaints from ./configure.
> 
> previous post about this seems to have vanished into a black hole.
> 
> Cheers, Gene Heskett.

Success Andy, built, installed, running. 35 minutes on my rpi4b.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis
Genes Web page 



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] 12-M99-endless-main-program test fa

2023-08-10 Thread alanmthomason--- via Emc-users
Hi There.

 

When I build linuxcnc and then run the standard suite of tests, I see dozens
of tests where a line output says Running test XXX.  After about 100 of that
type, I see the interp/m98m99/12-M99-endless-main-program test fail as
indicated below.  

 

My questions are 

1.  Are the preceding ~100 tests successful since there was no further
output.
2.  For the test that fails, interp/m98m99/12-M99-endless-main-program.
a. does everyone else see this test succeed?  
 b.  Any thoughts on what issue this might point to on my system?

 

My version:

This is a BeagelBoneBlack

$ uname -v

#1bullseye PREEMPT_RT Thu Oct 27 18:39:34 UTC 2022

 

Results of test script (excerpt)

Running test:
/home/debian/linuxcnc-dev/tests/interp/m98m99/09-disable-fanuc-subs

Running test: /home/debian/linuxcnc-dev/tests/interp/m98m99/10-M98-P001

Running test:
/home/debian/linuxcnc-dev/tests/interp/m98m99/11-main-program-oword

Running test:
/home/debian/linuxcnc-dev/tests/interp/m98m99/12-M99-endless-main-program

--- expected.motion-logger  2022-11-25 20:11:27.530870865 +

+++ out.motion-logger   2023-08-01 02:06:13.933579592 +

@@ -7,6 +7,15 @@

SET_MAX_FEED_OVERRIDE 1

SETUP_SET_PROBE_ERR_INHIBIT 0 0

SET_WORLD_HOME x=0, y=0, z=0, a=0, b=0, c=0, u=0, v=0, w=0

+SET_NUM_JOINTS 9

+SET_NUM_SPINDLES 1

+SET_VEL vel=0, ini_maxvel=1.2

+SET_VEL_LIMIT vel=4

+SET_ACC acc=1e+99

+SETUP_ARC_BLENDS

+SET_MAX_FEED_OVERRIDE 1

+SETUP_SET_PROBE_ERR_INHIBIT 0 0

+SET_WORLD_HOME x=0, y=0, z=0, a=0, b=0, c=0, u=0, v=0, w=0

SET_JOINT_BACKLASH joint=0, backlash=0

SET_JOINT_POSITION_LIMITS joint=0, min=-40, max=0

SET_JOINT_POSITION_LIMITS joint=0, min=-40, max=40

***
/home/debian/linuxcnc-dev/tests/interp/m98m99/12-M99-endless-main-program:
XFAIL: checkresult exited with 1

Running test: /home/debian/linuxcnc-dev/tests/interp/m98m99/13-named-program

Running test:
/home/debian/linuxcnc-dev/tests/interp/m98m99/14-o-expression-call


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Beaglebone black latency

2023-08-03 Thread alanmthomason--- via Emc-users
Hi There.I'm trying to work through setting up linuxcnc on a beaglebone
black.  I've run the latency-test, with results that are not looking
good.has anyone else run this test with a Beaglebone black?  Is there any
way to improve results.

 

Thanks very much.Alan

 

debian@BeagleBone:~/linuxcnc-dev/src$ latency-test

prog_name = '/home/debian/linuxcnc-dev/bin/rtapi_app'..Waited 3 seconds
for master.  giving up.

.Note: Using POSIX realtime

.Unexpected realtime delay on task 0 with period 25000

This Message will only display once per session.

Run the Latency Test and resolve before continuing.

 

prog_name = '/home/debian/linuxcnc-dev/bin/rtapi_app'prog_name =
'pyvcp'...***halcmd_commands 1565
Waiting for component 'lat' to become
ready...








.

 



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC build on BeagleBoneBlack

2023-08-02 Thread alanmthomason--- via Emc-users
Hi There...

Thanks for the help, it means a lot...

Regarding item 4:
It appears to be already installed (not sure if I did this in my fumbling 
around or if it came in with something else), so I'll look forward to your 
upcoming driverAlan

debian@BeagleBone:~$ gpioinfo
gpiochip0 - 32 lines:
line   0: "P8_25 [mmc1_dat0]" "P8_25" input active-high [used]
line   1: "[mmc1_dat1]" "P8_24" input active-high [used]
...

debian@BeagleBone:~$ sudo apt list | grep gpio

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gpiod/oldstable,now 1.6.2-1 armhf [installed]
libgpiod-dev/oldstable,now 1.6.2-1 armhf [installed]
libgpiod-doc/oldstable 1.6.2-1 all
libgpiod2/oldstable,now 1.6.2-1 armhf [installed]
libpigpiod-if-dev/oldstable 1.78-1 armhf
libpigpiod-if1/oldstable 1.78-1 armhf
libpigpiod-if2-1/oldstable 1.78-1 armhf
pigpio-tools/oldstable 1.78-1 armhf
python3-gpiozero/oldstable 1.4.1-1.3 armhf
python3-libgpiod/oldstable,now 1.6.2-1 armhf [installed]
python3-pigpio/oldstable 1.78-1 all
python3-rpi.gpio/oldstable 0.7.0-0.2+b2 armhf
rpi.gpio-common/oldstable 0.7.0-0.2+b2 armhf
svxlink-gpio/oldstable 19.09.1-3 all

-Original Message-
From: andy pugh  
Sent: Wednesday, August 2, 2023 9:40 AM
To: Enhanced Machine Controller (EMC) 
Cc: alanmthoma...@icloud.com
Subject: Re: [Emc-users] LinuxCNC build on BeagleBoneBlack

On Wed, 2 Aug 2023 at 02:13, alanmthomason--- via Emc-users 
 wrote:

> 2.  When I perform the configure, is there a way to specify the BBB?
> I'm trying to figure out how the compile process would bring in 
> src/hal/driver/hal_bb_gpio.c

It might be automatic, the modules should be built for any "uspace" config:
https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L995


> 4.  Does operation on the beaglebone black require a dtb file to be
> loaded to specify the needed pins as input/output?

If you install "gpiod" does "gpioinfo" work?
If so, then I am currently working on a driver that uses libgpiod.
That might work for you (though not at the moment)

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for 
the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] LinuxCNC build on BeagleBoneBlack

2023-08-01 Thread alanmthomason--- via Emc-users
Hi All.

 

I am working on building LinuxCNC on the BeagleBone Black.  It does build,
but the test sequence does not complete and I see some fails in the output,
and the test sequence hangs.

 

Questions

1.  Do these test fails indicate known issues or point to problems that
I need to address before going further?
2.  When I perform the configure, is there a way to specify the BBB?
I'm trying to figure out how the compile process would bring in
src/hal/driver/hal_bb_gpio.c
3.  Has anyone set up a configuration (hal/ini) for the BBB that I can
use as a guide?  
4.  Does operation on the beaglebone black require a dtb file to be
loaded to specify the needed pins as input/output?

 

Any help would be most appreciated.  

 

Best Regards,

Alan

 

Background:  We currently use Machinekit on a BeagleBoneBlack using an image
from 2019.  There are some issues, for instance sometimes we see a shared
memory error.  So, my hope was to be able to compile from source.

 

 

##

#LinuxCNC - Enhanced Machine Controller  #

##

##

#   LinuxCNC is a software system for computer control of machine#

#   tools such as milling machines. LinuxCNC is released under the   #

#   GPL.  Check out http://www.linuxcnc.org/ for more details.   #

##

##

#   It seems that ./configure completed successfully.#

#   This means that RT is properly installed #

#   If things don't work check config.log for errors & warnings  #

##

#   Next compile by typing   #

# make   #

# sudo make setuid   #

#  (if realtime behavior and hardware access are required)   #

##

#   Before running the software, set the environment:#

# . (top dir)/scripts/rip-environment#

##

#   To run the software type #

# linuxcnc   #

##

##

 

 

 

hostname = BeagleBone

uname -m = armv7l

uname -r = 5.15.73-bone-rt-r31

uname -s = Linux

uname -v = #1bullseye PREEMPT_RT Thu Oct 27 18:39:34 UTC 2022

 

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/rtapi-app-main-fails

loadrt found the test component, and it failed to load

Running test: /home/debian/linuxcnc-dev/tests/module-loading/siggen/1-names

Running test: /home/debian/linuxcnc-dev/tests/module-loading/siggen/16-names

Running test: /home/debian/linuxcnc-dev/tests/module-loading/siggen/17-names

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/siggen/num_chan=0

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/siggen/num_chan=1

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/siggen/num_chan=16

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/siggen/num_chan=17

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/1-names

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/8-names

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/9-names

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/num_chan=0

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/num_chan=1

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/num_chan=8

Running test:
/home/debian/linuxcnc-dev/tests/module-loading/sim_encoder/num_chan=9

Running test: /home/debian/linuxcnc-dev/tests/motion-logger/basic

*** /home/debian/linuxcnc-dev/tests/motion-logger/basic: XFAIL: test run
exited with 1

Running test: /home/debian/linuxcnc-dev/tests/motion-logger/mountaindew

--- expected.motion-logger  2022-11-25 20:11:28.150811564 +

+++ out.motion-logger   2023-08-01 02:20:50.498826487 +

@@ -7,6 +7,15 @@

SET_MAX_FEED_OVERRIDE 1

SETUP_SET_PROBE_ERR_INHIBIT 0 0

SET_WORLD_HOME x=0, y=0, z=0, a=0, b=0, c=0, u=0, v=0, w=0

+SET_NUM_JOINTS 3

+SET_NUM_SPINDLES 1

+SET_VEL vel=0, ini_maxvel=120

+SET_VEL_LIMIT vel=400

+SET_ACC acc=1e+99

+SETUP_ARC_BLENDS

+SET_MAX_FEED_OVERRIDE 1

+SETUP_SET_PROBE_ERR_INHIBIT 0 0

+SET_WORLD_HOME x=0, y=0, z=0, a=0, b=0, c=0, u=0, v=0, w=0