Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stepgen only working up to 4 steppers #79

Closed
Peter-van-Tol opened this issue Feb 8, 2024 · 2 comments · Fixed by #82
Closed

Stepgen only working up to 4 steppers #79

Peter-van-Tol opened this issue Feb 8, 2024 · 2 comments · Fixed by #82
Assignees
Labels
bug Something isn't working

Comments

@Peter-van-Tol
Copy link
Owner

I have compiled and flashed the example V8.0 12/14 on my 5A-75B V8.2 FPGA board with my Raspberry pi4 according to the described instructions. I have a small gantry milling machine with 2 Y-axes and an additional rotary axis (XYYZA).
To test my Linuxcnc configuration, I made a small test setup with 5 stepper motors.
The first 4 stepper motor outputs on the FPGA board
stepgen.00.... j7:0 with j7:1
stepgen.01.... j7:2 with j7:4
stepgen.02.... j7:5 with j7:6
stepgen.03.... j8:0 with j8:1
work perfectly. The home movement also works without any problems.

The last two stepper motor outputs:
stepgen.04.... j8:2 with j8:4
stepgen.05.... j8:5 with j8:6

show a strange behavior. As soon as a movement (e.g. home movement) is initiated,
the connected stepper motor starts to turn in a certain direction and can only be stopped,
the FPGA board is disconnected from the power supply.
The stepper motor continues to rotate even when the Raspberry is no longer connected to the board.
It doesn't matter which axis I assign this output to in Linuxcnc.
The stepper motor connected to these outputs shows this behavior.
Has anyone ever tested a 5A-75B V8.x with more than 4 axes?

Reported from: https://forum.linuxcnc.org/27-driver-boards/50383-litexcnc-firmware-and-driver-for-5a-75b-and-5a-75e?start=40#292792

@Peter-van-Tol Peter-van-Tol added the bug Something isn't working label Feb 8, 2024
@Peter-van-Tol Peter-van-Tol self-assigned this Feb 8, 2024
@Peter-van-Tol
Copy link
Owner Author

The problem is not that up to 4 stepgens are working, but that the buffer is too short and the last stepgen does not receive any data. One of the components is not reporting the right size of the buffer

@Peter-van-Tol
Copy link
Owner Author

The culprit has been found. As soon as the encoder module is removed, the joint following error will occur. Solution for now is to remove the encoder module from the JSON. Next step is to investigate why this module is misbehaving. The number of registers reported is correct, so while writing is does not progress the required number of registers.

@Peter-van-Tol Peter-van-Tol linked a pull request Feb 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant