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

More
9 months 4 weeks ago - 9 months 4 weeks ago #340932 by freylax
Hi Oliver, thank you! I post the configuration (json.txt), linuxcnc_print.txt output and a copy of the terminal output linux_cnc_out.txt

I generall I know that I have to do some HAL configuration to (software) wire the machine together. What for the beginning is not so easy to know is what exactly has to be done. I see what your rio-setup does, and there is also the possibility to make linuxcnc HAL net connections in the setup, but what is necessary to start with..

I'm looking forward to hear from you,
regards, Robert

PS: do you run robot os on RPI5 Debian Trixie?
Attachments:
Last edit: 9 months 4 weeks ago by freylax. Reason: added PS

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #340938 by meister
Benutzt du einen RPI5 ?
dann trag mal bitte diese option mit ins json ein:

```
"boardcfg": "Olimex-ICE40HX8K-EVB",
"protocol": "SPI",
"rpi5": true,
"flashcmd": "/home/cnc/prog/olice40prog/spiflash.py -b rio.bin",
```
ansonsten bin ich etwas ratlos.

an welchem CS pin hast du das board ?

per default benutzt RIO CE0 an pin 8:
```
#define SPI_PIN_MOSI 10
#define SPI_PIN_MISO 9
#define SPI_PIN_CLK 11
#define SPI_PIN_CS 8
```

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #340944 by freylax
Lieber Oliver,

vielen Dank, die option rpi5:true hat geholfen, jetzt funktioniert die Axis App!
Nun kann ich mich in die Konfiguration vertiefen.

sei lieb gegruesst,
Robert
The following user(s) said Thank You: tommylight, meister

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #340971 by freylax
Lieber Oliver,

ich benoetige noch einmal Deine Aufmerksamkeit. Mir will es nicht so recht gelingen eine vernuenftige Geschwindigkeit und Schritteweite einzustellen.
Ich habe Schrittmotoren welche im Fullstep Mode 60 Schritte fuer eine Umdrehung benoetigen. Eine Undrehung erzeugt einen Vorschub von 5 mm. Wenn ich eine maximale Geschwindigkeit von 5mm/sec einstellen moechte, welche Paramater sind fuer die Stepdir Konfiguration zu setzen? Ich dachte Scale bekommt einen Wert von 12 (60Steps/5mm) = 12 Steps/mm, und MaxVelocity 5(mm/s) - Aber so richtig will es nicht gelingen, der Motor flattert nur...
Ich danke Dir, liebe Gruesse,
Robert

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #340976 by meister
Uii, 60 steps, wo hast du denn den her :)
Mal davpn abgesehen, ich frei mich immer über bilder eurer konstuktionen.

So, hmm, jaaa, deine rechnung passt, allerdings befürschte ich das LinuxCNC, bzw der PID regler da einfach keinen spielraum hat um irgendwas zu regeln.
Ich werde das morgen mal am simulator ausprobieren.

Kannst amber mal versuchen den Min-Ferror auf z.b. 1.0 zu setzen und den P-Wert vom PID auf 25 oder so, um zu sehen ob es besser wird.
Vielleicht auch mal beim PID die deadband auf 1 setzen.

Aber wo bitte bekommt man einen stepper mit 60 steps auflösung her :)
kannst du nicht am treiber die microsteps höher stellen ?

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #341004 by meister
The following user(s) said Thank You: Dave3891

Please Log in or Create an account to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum