Advanced Search

Search Results (Searched for: )

  • Grotius
  • Grotius's Avatar
09 Aug 2024 10:09
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Hi,

You maybe used the sai as "external interpreter", this sai i made some modifications, like read current plane, etc.
I had the same issue. Not reading in as should. But now it worked quite nice.

As an example original lcnc sai code for arc feed :
saicanon.cc

And edited code :
saicanon.cc

As a result i edited code in the sai to get it functional in different planes, retrieve more info etc.
I could draw the most of lcnc gcode files, also the 3d test file with circles in different planes.

Here you see how i startup the sai, read info and close it when gcode file is done.
This worked good. I had no issue's anymore. But it took a while to get everything done.
interpreter.cpp

but without spindle sync, I would make my lathe not functional.
Depending on your current distance from the centerline of your lathe, the spindle speed is adjusted.
This could be done by a component. Or is it more complex?
  • meister
  • meister
09 Aug 2024 10:00

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

i had done a major update, but i just compared one with an old version and everything looks good.
Unfortunately I can't tell you what the problem might be at the moment :(
  • rodw
  • rodw's Avatar
09 Aug 2024 10:00
Replied by rodw on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

I know I was reading a while ago that the solution for having jerk control in linuxcnc was to use some sort of mathlab algortithm to do some complex calculations, but there was a licensing problem between linuxcnc and mathlab. Since the guys from OpenCN have behind an university, they had the mathlab with an expensive license on which they were able to generate that c/c++ algorithm.
 

I'm not convinced there was really a licensing problem when I reviewed OpenCN but I can't remember the detail.
The university is obligated to release the code as open source. I could not see where Mathlab's rights were infringed if the Universities code was actually used! Anyway, we can just wait for Grotius now! :) What I find amazing is that he has taught himself how to Code in C as well as mastering the maths!
  • Mecanix
  • Mecanix
09 Aug 2024 09:55

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Ah man no rush, you're too kind for real. I'm so not making thousand-dollar parts, just testing this gowin pinouts and timings, and so nothing to worry about.

Yeah gateware flashed, LinuxCNC files overwritten and halcomp'd, everything routine after each generate.

I'll play around with it. Obviously something I'm doing wrong. I'll update if I get anywhere.
  • PhilipME
  • PhilipME's Avatar
09 Aug 2024 09:53
Replied by PhilipME on topic Not sure if my parallel port is working

Not sure if my parallel port is working

Category: General LinuxCNC Questions

The parallel port is there 0x378

 

You are right it is working 
  • rodw
  • rodw's Avatar
09 Aug 2024 09:49
Replied by rodw on topic ethercat master service

ethercat master service

Category: EtherCAT

@Endian,

Can you implement a cycle counting component that counts up  4.
Then read in the canopen values, in other words, open the gate to the canopen every 4 cycles?

@ Rod,
I installed the linuxcnc iso. But udev rules are not working when set, also reload rules.
So bus is not starting after reboot.
I now have to start the bus invoking sudo after reboot.
I don't get it, where it's goes wrong.
 

I installed it the other day after I built the ISO and had no problems. If you have problems I am speechless because you taught me all I know :)
My Bullseye system that runs the deb you made for me is still running stong!

As you know there are a few steps required after installing the Debs, it is easy to miss one. I think they are all covered in the sticky.
forum.linuxcnc.org/ethercat/45336-etherc...step-by-step?start=0
  • meister
  • meister
09 Aug 2024 09:49

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

all flashed ? halcompile ?

check it in rio-test gui (do not forget the enable checkbox)

i'm not at home, so i can not test a config and send you, but it should work :(
  • Mecanix
  • Mecanix
09 Aug 2024 09:41 - 09 Aug 2024 09:43

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Wow. I didn't get a pulse on any axis with the original config, that's why I tried with the signals. Neither config pulses. Snap, now what.

Pulse PIN is always HIGH. Dir pin works fine though!

Can you show a functional HAL file with a functional step/dir stepper config? I'll compare it to mine and see what's not updating in mine.
  • meister
  • meister
09 Aug 2024 09:34 - 09 Aug 2024 09:36

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

joints need no signal config
        {
            "type": "stepdir",
            "pins": {
                "step": {
                    "pin": "13"
                },
                "dir": {
                    "pin": "14"
                }
            },
            "is_joint": true,
            "axis": "X"
        },

EDIT: better using the rio-setup tool
even i now have problems doing this in pure json :)
  • vmihalca
  • vmihalca
09 Aug 2024 09:33 - 09 Aug 2024 09:35
Replied by vmihalca on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

If you build that machine gui, and you choose a server type, like lcnc uses nml.

Then you can also connect it to everything.
Halcore can run a server of any type. It's just adding a server and make the connections.

My initial controller app for my lathe was written in kotlin multiplatform. 
Starting from a java project called JCNC Screen, I've build the JNI layer to talk nml with linuxcnc then build the rest of the UI on top of that with.
I abandoned that project for now because linuxcnc has an internal interpreter and an external interpreter. I was using the external one to get the cannonical motions, but the external one does not quite match the internal one. So I might end up drawing things that are not what the machine will do in the reality. I found this issue very problematic and this is where I bumped into how spagetti linuxcnc codebase is. 
I would love to revive this project, but as I said, I need a good foundation and I was hoping OpenCN to be just that, but without spindle sync, I would make my lathe not functional. And unfortunately, I don't have the knowledge (yet) or time to learn and do it myself.
  • Mecanix
  • Mecanix
09 Aug 2024 09:29

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

@meister

Similarly, I can't make the stepper work. This is NOT a good start for me man, ouchy lol

The dir works on all axis, however getting no pulse from any of them. Can you also share a stepgen config for an axis? Below is what I've blindly attempted, but getting nowhere (as usual!!). 
        {
            "type": "stepdir",
            "pins": {
                "step": {
                    "pin": "13"
                },
                "dir": {
                    "pin": "14"
                }
            },
            "is_joint": true,
            "axis": "X",
            "signals": {
                "velocity": {
                    "net": "joint.0.vel-cmd"
                },
                "position": {
                    "net": "joint.0.motor-pos-fb"
                }
            }
        },
  • vmihalca
  • vmihalca
09 Aug 2024 09:27
Replied by vmihalca on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Your maths knowledge is light years away from mine. Yesterday evening I was looking at YT videos about splines, with complex equations that are giving my brain stack overflow. You not only that you understood those, but you translated them to code and algorithms...That's a lot!

I pulled the OpenCN code back then and tried to run it but I had no ethercat hardware so it was just simulated.

I don't know how they have handled your challenges on getting the optimal velocity profile for a trajectory. I was in contact with them and I could get you in contact with them.
I know I was reading a while ago that the solution for having jerk control in linuxcnc was to use some sort of mathlab algortithm to do some complex calculations, but there was a licensing problem between linuxcnc and mathlab. Since the guys from OpenCN have behind an university, they had the mathlab with an expensive license on which they were able to generate that c/c++ algorithm.

I might be talking BS, but this is what I understood at that time. Clearly you are way more aware of the limitations than I am.

I could be efficient with the controller part and I would love to do that, but first I need a solid foundation to build upon.
  • seyad
  • seyad
09 Aug 2024 09:23 - 09 Aug 2024 09:25
Linuxcnc-panosonic Drive was created by seyad

Linuxcnc-panosonic Drive

Category: EtherCAT

Hi all, 
I am way to learning about linuxcnc  in that i am trying to run lathe.ini with some modification for my drive sets, but its not working.its showing error like joint 1 following error. below i attached my setup files for your reference. Looking forward for solutions.(AC Servo drive(2No's)-MADLN05BE,motor-MHMF5AZL1U2M,and Raspberry pi-5). Linuxcnc build from source file(Run in place)

File Attachment:

File Name: ethercat-c...8-09.xml
File Size:3 KB

File Attachment:

File Name: ethercat2_...8-09.hal
File Size:3 KB

File Attachment:

File Name: lathe2_2024-08-09.ini
File Size:2 KB
  • Grotius
  • Grotius's Avatar
09 Aug 2024 09:22
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

@Vmihalca,

I think you have a nice goal.

If you build that machine gui, and you choose a server type, like lcnc uses nml.

Then you can also connect it to everything.
Halcore can run a server of any type. It's just adding a server and make the connections.
In mach3 they used a numbered list for type of instructions, like jog x forward etc.

Maybe you can use ethercat bus as a server? Just add a slave that is your gui.




 
Displaying 21421 - 21435 out of 26049 results.
Time to create page: 0.501 seconds
Powered by Kunena Forum