Advanced Search

Search Results (Searched for: )

  • vmihalca
  • vmihalca
09 Aug 2024 10:29
Replied by vmihalca on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

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?

Yes, I was talking about sai. The guy who developed JCNCScreen said that there are some units mm/inch hardcoded into the sai that are causing bugs and also that is quite behind the internal interpreter. I see an issue with having two different versions of interpreters. I would like to render the output of the code that will get executed. When there are fixes or changes, if the internal one changes and the external one is not kept up to date, I won't see the real thing. 

As for spindle synchronization, I am talking about threading on a lathe or rigid tapping on a mill. 
For that, on ethercat we would need to read the encoder slice from beckhoff and then sync the Z axis according to the spindle encoder
  • vmihalca
  • vmihalca
09 Aug 2024 10:22
Replied by vmihalca on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

I'm not convinced there was really a licensing problem when I reviewed OpenCN but I can't remember the detail.

Perhaps I explained wrong, from what I understood, we needed mathlab to properly solve jerk in linuxcnc, but mathlab was needed for that and we did not had the license. 
They had it and they applied it on their solution.
  • mariusl
  • mariusl's Avatar
09 Aug 2024 10:21
Replied by mariusl on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

 Keyboard shortcuts are IMHO dangerous and will only be used on hobby machines. I use a handmade hand MPG for that. But implementing more keys will not lead to a more or less dangerous behavior.


Norbert

I have more machines in factories using keyboard only than MPG. MPG's are not desired on routers by most users.

How do you jog with an MPG in joint mode? I am sure you can only use keyboard.
 
  • Grotius
  • Grotius's Avatar
09 Aug 2024 10:18
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Hi Rod,

Thanks for your kind words! But the math at a certain level is still a problem.
I am still unable to read for example the clothoid science papers and turn them into code.

Beef is now doing his master degree. I asked him, should i go to college and get a phd ?
He said something back like, your level is already equal to phd. But i don't feel like that.
  • mariusl
  • mariusl's Avatar
09 Aug 2024 10:17
Replied by mariusl on topic Jog keys for A axis

Jog keys for A axis

Category: Gmoccapy

I used Home and End for the A axis on a regular 4 axis machine and then I used Home and End for B axis and "[" and "]" for C axis on a five axis machine.
I think Norbert's suggestion of looking at the keys in Axis is probably the right way.
  • meister
  • meister
09 Aug 2024 10:17

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

Category: Computers and Hardware

if you are playing around anyway, you can also set the enable bits of the stepdir instances to 1 in rio.v
    assign PINOUT_STEPDIR11_STEP = PINOUT_STEPDIR11_STEP_RAW;
    assign PINOUT_STEPDIR11_DIR = PINOUT_STEPDIR11_DIR_RAW;
    wire PINOUT_STEPDIR11_STEP_RAW;
    wire PINOUT_STEPDIR11_DIR_RAW;
    wire UNUSED_PIN_STEPDIR11_EN;
    stepdir stepdir11 (
        .clk(sysclk),
        .step(PINOUT_STEPDIR11_STEP_RAW),
        .dir(PINOUT_STEPDIR11_DIR_RAW),
        .en(UNUSED_PIN_STEPDIR11_EN),
        .velocity(VAROUT32_STEPDIR11_VELOCITY),
        .enable(1),
        .position(VARIN32_STEPDIR11_POSITION)
    );

but if that works, something is wrong with the connection and the board is in ERROR state
  • Mecanix
  • Mecanix
09 Aug 2024 10:16

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

Category: Computers and Hardware

PIN 13 (x_pulse) is NOT working on my FPGA. w t f

If I swap pins and place the step on PIN 14, I'm getting steps (!!). Told you the problem was at my end, but I'll have to keep you responsible for this one - guilty!! You picked those random pins ;)

In all seriousness, something's not right with PIN13. Let's hope it's just hardware (bad soldering) and not gowin's internals or their place/routing compiler. Yikes. See? That's why I wanted to test ALL PINS on that thing before sending out some PCB work... don't trust - verify!
  • 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.
Displaying 22996 - 23010 out of 25521 results.
Time to create page: 0.931 seconds
Powered by Kunena Forum