- Posts: 44
- Thank you received: 10
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
- svb
- Offline
- Senior Member
-
Less
More
4 years 1 week ago #254804
by svb
Replied by svb on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Please use v6.0 definition for 75e v8.0I have received my Colorlight 75e card. it has hardware version 8.0. LiteX doesn't know about the connections between the FPGA and the headers yet.
- DePrutser
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 6
4 years 1 week ago #254832
by DePrutser
Replied by DePrutser on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
How can I guarantee the hardware definition for v6.0 are completely valid for hardware version 8.0?
- svb
- Offline
- Senior Member
-
Less
More
- Posts: 44
- Thank you received: 10
4 years 1 week ago #254924
by svb
Replied by svb on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I'm use 75e v8 with definition from v6, all work nicely
- xu
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
4 years 1 week ago #254990
by xu
Replied by xu on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
你现在已经在机床上稳定的运行了吗?
- TOLP2
- Offline
- Elite Member
-
Less
More
- Posts: 225
- Thank you received: 178
4 years 19 hours ago #255602
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
BIG NEWS: the stepgen of Litex-CNC is finally stable!
I took nearly a full re-write of the stepgen code to find the errors:
That said: this never more (but in a positive way). Before I merge the branch stepgen_improvement I'm going to split the current stepgen into two parts:
@Xu: If Google translate works well, the answer is 是的 (yes).
I took nearly a full re-write of the stepgen code to find the errors:
- the stepgen supports S-curve acceleration, although the current implementation does not use it. By creating this modification it turned out that in some corner cases the apply-time in the FPGA can be overwritten by the next packet. This mainly affected systems with high amount of jitter. This has been solved in the FPGA firmware, which copies the apply-time to a local register, i.e. a kind of queue with space to buffer one full cycle.
- the apply time is designed to be 0.9 x period after the start of the current cycle. The motmod should be fed with the predicted position at the next apply time. Problem here was jitter: the position could not be determined with high enough precision. This resulted in the stepper not running as smooth as I wanted (my benchmark is the LPT port, should be equal or better). Also I discovered there is a clock drift between LinuxCNC and the FPGA. To solve this, the amount of clock-cycles is averaged over 10 cycles. This average is used to calculate the amount of clock-cycles per cycle and prevents overshooting the commanded position. It is safe-guarded that the apply time is always within safe limits.
- the algorithm is now basically the same as the stepgen of LinuxCNC, with some modifications to improve accuracy (I could recommend those changes also to the regular stepgen).
That said: this never more (but in a positive way). Before I merge the branch stepgen_improvement I'm going to split the current stepgen into two parts:
- the actual stepgen, part of LitexCNC which is responsible to translate a commanded speed to a command to the FPGA to produce steps.
- the translation from motmod's position command to a velocity that can be used by the stepgen. This will be a separate component (pos2vel).
@Xu: If Google translate works well, the answer is 是的 (yes).
The following user(s) said Thank You: tommylight, besriworld
- besriworld
- Offline
- Platinum Member
-
Less
More
- Posts: 327
- Thank you received: 92
3 years 11 months ago #255678
by besriworld
Replied by besriworld on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Great news! I can test soon
.
It can easily be used with my I/O board forum.linuxcnc.org/24-hal-components/329...i76e?start=20#248772
If anyone is interested, I can upload the latest version.
It can easily be used with my I/O board forum.linuxcnc.org/24-hal-components/329...i76e?start=20#248772
If anyone is interested, I can upload the latest version.
The following user(s) said Thank You: TOLP2
Moderators: PCW, jmelson
Time to create page: 0.303 seconds