Re: [Machinekit] help upgrading to latest 4.14 kernel machinekit image

2017-12-14 Thread John Allwine
Looks like it: git:/opt/scripts/:[ef2c5982e3788e07d9ec4a3d23089dc5e5a3f9cd] eeprom:[A335BNLT000C1625BBBG0497] model:[TI_AM335x_BeagleBone_Black] dogtag:[Machinekit Debian Image 2017-12-10] bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-rc1-2-g87ef84] kernel:[4.14.4-bone-rt-r7] nodej

[Machinekit] Teknic motors and MachineKit

2020-02-21 Thread John Allwine
I'm looking into using Teknic SDSK servo motors with MachineKit. The SDSK models accept step and direction pulses like a stepper motor, so using hal_pru_generic's stepgen is straight forward. The major issue I see is attempting to use Teknic's precision homing routines, as it doesn't fit into M

Re: [Machinekit] Teknic motors and MachineKit

2020-02-22 Thread John Allwine
on how Hal works, but my knowledge of the built in components is limited. Thanks again for the help! John Allwine Owner of Allwine Designs https://www.allwinedesigns.com > On Feb 22, 2020, at 1:04 AM, Bas de Bruijn wrote: > >  > > >>> On 21 Feb 2020, at 23

Re: [Machinekit] Teknic motors and MachineKit

2020-02-23 Thread John Allwine
more involved routine. It seems that in order to avoid a custom build of MachineKit, that I need a way to either trigger immediate homing or the ability to detect that a user initiated immediate homing from within HAL. Any ideas? John Allwine Owner of Allwine Designs https://www.allwinedesigns.com

Re: [Machinekit] Teknic motors and MachineKit

2020-02-24 Thread John Allwine
g >> sequence going on at all), I have used the signal "axis.N.home-state". This >> signal has a different value depending of the current state in the homing >> sequence (see home_state_t enum in motion.h and do_homing() in homing.c). If >> you don't feel digging in

[Machinekit] how to use webtalk

2020-03-16 Thread John Allwine
What steps are necessary to use webtalk? This thread seems to indicate that it's no longer compiled by default: https://groups.google.com/forum/#!searchin/machinekit/webtalk%7Csort:date/machinekit/rc7aSsjdU8k/FxeZjwdQDAAJ Does that mean I'd need to build machinekit from source to be able to use

Re: [Machinekit] how to use webtalk

2020-03-17 Thread John Allwine
Thanks for the info, Cern! On Mon, Mar 16, 2020 at 1:10 PM wrote: > > Mar 16, 2020, 17:15 by j...@allwinedesigns.com: > > > What steps are necessary to use webtalk? > > > Hi, > WebTalk seems to be just a proxy between ZeroMQ and Websockets. It looks > like nobody cared about it and it was not to

[Machinekit] hal_pru_generic and hal_bb_gpio on the Beaglebone AI

2020-03-25 Thread John Allwine
Has anyone made any progress getting hal_pru_generic and hal_bb_gpio modules (or their analogs) running on the Beaglebone AI? -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to t

[Machinekit] Re: hal_pru_generic and hal_bb_gpio on the Beaglebone AI

2020-04-06 Thread John Allwine
, March 25, 2020 at 11:19:02 AM UTC-6, John Allwine wrote: > > Has anyone made any progress getting hal_pru_generic and hal_bb_gpio > modules (or their analogs) running on the Beaglebone AI? > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: htt

[Machinekit] C instantiable components and hal_pru_generic

2020-04-29 Thread John Allwine
Is there documentation on how to write an instantiable HAL component in C? I’ve been making modifications to hal_pru_generic to work on the BeagleBone AI. hal_pru_generic is implemented in such a way that only 4 GPIO ports can be used. The BBB only has 4 GPIO ports, so any pin on the P8 and P9 h

RE: [Machinekit] C instantiable components and hal_pru_generic

2020-04-30 Thread John Allwine
Thanks Bas, but I don’t think your link came through! -- 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

Re: [Machinekit] C instantiable components and hal_pru_generic

2020-04-30 Thread John Allwine
running either to divide the work or > to allow the PRUs to run with different cycle times. > > On 4/29/2020 10:13 PM, John Allwine wrote: > > Is there documentation on how to write an instantiable HAL component in > C? I’ve been making modifications to hal_pru_generic to wor

[Machinekit] problems with realtime kernel on Beaglebone AI

2020-05-01 Thread John Allwine
I posted this on the Beaglebone forums and figured someone here may be able to help too: I'm trying to use a real time kernel on the Beaglebone AI to get MachineKit running. I'm able to run MachineKit on a non-rt kernel

Re: [Machinekit] problems with realtime kernel on Beaglebone AI

2020-05-01 Thread John Allwine
John Allwine wrote: > I posted this on the Beaglebone forums > <https://groups.google.com/forum/#!category-topic/beagleboard/FOEDBLvmu2c> > and figured someone here may be able to help too: > > I'm trying to use a real time kernel on the Beaglebone AI to get > Machin

Re: [Machinekit] problems with realtime kernel on Beaglebone AI

2020-05-02 Thread John Allwine
http://man7.org/linux/man-pages/man2/iopl.2.html > > > > On Fri, May 1, 2020 at 2:49 PM John Allwine <> j...@pocketnc.com> > > wrote: > > > >> I posted this on the >> Beaglebone forums < > https://groups.google.com/forum/#!category-topic

[Machinekit] vfdb_vfd missing from latest machinekit-hal

2020-05-13 Thread John Allwine
It looks like the vfdb_vfd HAL module was removed when machinekit-hal separated from the main machinekit repository (this commit ). Was there any reason for this or did it just get lost in the separati

Re: [Machinekit] How to write to /var/log/linuxcnc.log with Python?

2020-07-24 Thread John Allwine
I’ll have to dig a little deeper. I’m monitoring the error channel in Python using something like this (this is the only process calling poll on the error_channel): import linuxcnc e = linuxcnc.error_channel() while True: error = e.poll() if error: print error sleep(.1) I don’t see

Re: [Machinekit] How to write to /var/log/linuxcnc.log with Python?

2020-07-27 Thread John Allwine
What's the easiest way to connect directly to the msgd socket? On Fri, Jul 24, 2020 at 6:54 PM wrote: > What about the ZMQ socket on the msgd process, can you see the messages > there? Given that I cannot find the error_channel() definition in > Machinekit-HAL, I am not sure if the support for i

Re: [Machinekit] How to write to /var/log/linuxcnc.log with Python?

2020-07-28 Thread John Allwine
Thanks for all the info, Cern! I dug a little deeper and on my Beaglebone that has a prebuilt MachineKit image from July of 2019 does not log rtapi_print_msg(RTAPI_MSG_ERR, ... ) calls to the msgd socket, nor the linuxcnc.error_channel. I also have another Beaglebone with a RIP install built from

Re: [Machinekit] How to write to /var/log/linuxcnc.log with Python?

2020-07-29 Thread John Allwine
I agree it’s not a high priority and if it becomes one for us, I’ll certainly contribute where I am able. I still need to get my pull request in order for getting hal_pru_generic working on the BeagleBone AI, as well as making it an instantiable component to be able to leverage multiple PRUs.

[Machinekit] Building MachineKit-HAL and EMCApplication for a specific version of Python

2021-07-02 Thread John Allwine
I’d like to build MachineKit-HAL and EMCApplication for a specific version of Python (most likely the latest version). What steps are necessary to accomplish that? -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this

Re: [Machinekit] pru_generic.so: cannot open shared object file: No such file or directory

2023-05-12 Thread John Allwine
Is it just a matter of adding the .bin to the file name? Something like this: loadrt prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.bin pru=0 halname=hpg On Fri, May 12, 2023 at 8:38 AM fogl wrote: > Hello everybody, > > I am stuck with machinekit and pru. I am running a single line .hal file:

Re: [Machinekit] pru_generic.so: cannot open shared object file: No such file or directory

2023-05-12 Thread John Allwine
halname=hpg <https://www.pentamachine.com> John Allwine Principal Software Engineer 1.406.451.3799 https://www.pentamachine.com <https://www.pentamachine.com> On Fri, May 12, 2023 at 12:50 PM Charles Steinkuehler < char...@steinkue