ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

More
26 Jul 2022 19:14 #248360 by muvideo
Oh, I'm happy it started working, let me know of any problems bugs or quirks you find.

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

More
26 Jul 2022 19:24 - 26 Jul 2022 19:33 #248361 by svb

Oh, I'm happy it started working, let me know of any problems bugs or quirks you find.



Extremly low speed
I.e. if i set feedrate 5mm/min, and set move to less than 20mm, i'm always arrive to destination (+-0.003mm).
If feedrate greater 5mm/min or distance to go greater 20mm i never arrive to destination. Joint error. Always.
I'm try to change *FERROR parameters but nothing changed :(

This is for stepgen module.
Input worked. BUT! Not reading at start. Im have DCRS-01J rotary switch for setting feedrate as on Siemens MCP, and while im not change switch position, always readed 100%.
I'm try to move config section for my component in any places of a config - nothing happened

Update.
Run G1X10F10 from X20 position
Arrived to 10.159 instead 10.00
 
Attachments:
Last edit: 26 Jul 2022 19:33 by svb.

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

More
26 Jul 2022 19:44 #248362 by muvideo
About the speed, consider that my approach to stepgen Is velocity only mode, so It accept a velocity command input (and provide the corresponding step frequency on it's pins) and provide internal position feedback based on number of steps emitted.
But you need to provide externally the position control, trough a pid component. Much like a servo.
This way i simplified my work on stepgen validation and pid loops are already available and validated in linuxcnc Hal.
So in summary that depends on you configurazion, I Need some time before arriving where you are with my hardware.
About inputs I'm not sure, are you referring to gpio or encoders?
Encoders are reset when the board Is reset, since in that state the board feedback could not be trustable. Maybe this behavior can be made more smart.

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

More
26 Jul 2022 20:31 #248366 by svb
About inputs - i mean gpio.

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

More
26 Jul 2022 20:42 - 26 Jul 2022 20:48 #248368 by muvideo
I see that you are using very high settings for stepgen times, step width and space at 5000.
Combined with a scale of 640 pulses per mm this will slow down you maximum speed.
Consider that the times are expressed in microseconds and not nanoseconds, so 5000=5ms.
This parameter Is internally clipped anyway, but maybe you intentions are for lower times.

About gpio I'm not getting the problem. 
Is some gpio PIN not being read correctly?
Last edit: 26 Jul 2022 20:48 by muvideo.
The following user(s) said Thank You: svb

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

More
26 Jul 2022 22:03 - 26 Jul 2022 22:06 #248372 by svb

I see that you are using very high settings for stepgen times, step width and space at 5000.
Combined with a scale of 640 pulses per mm this will slow down you maximum speed.
Consider that the times are expressed in microseconds and not nanoseconds, so 5000=5ms.
This parameter Is internally clipped anyway, but maybe you intentions are for lower times.

Yes, i mean 5000ns. Change from 5000 to 5 and WOW!!! It's worked!!!!
Will try on real hardware!

About gpio I'm not getting the problem.
Is some gpio PIN not being read correctly?


I'm use binary coding switch DCRS-01J connected to GPIO IN.

# --- FO-INCR ---
net fo-incr-a <= [FABIO](CARD0).input.14.in
net fo-incr-b <= [FABIO](CARD0).input.15.in
net fo-incr-c <= [FABIO](CARD0).input.16.in
net fo-incr-d <= [FABIO](CARD0).input.17.in
net fo-incr-e <= [FABIO](CARD0).input.18.in

# connect feed overide increments - switches

setp halui.feed-override.count-enable true
setp halui.feed-override.direct-value true
setp halui.feed-override.scale .01
net feedoverride-incr => halui.feed-override.counts
net fo-incr-a => foincr.sel0
net fo-incr-b => foincr.sel1
net fo-incr-c => foincr.sel2
net fo-incr-d => foincr.sel3
net fo-incr-e => foincr.sel4
net feedoverride-incr <= foincr.out-s
setp foincr.debounce-time 0.200000
setp foincr.use-graycode False
setp foincr.suppress-no-input False
setp foincr.in00 0.000000
setp foincr.in01 2.000000
setp foincr.in02 4.000000
setp foincr.in03 6.000000
setp foincr.in04 10.000000
setp foincr.in05 20.000000
setp foincr.in06 30.000000
setp foincr.in07 40.000000
setp foincr.in08 50.000000
setp foincr.in09 60.000000
setp foincr.in10 70.000000
setp foincr.in11 80.000000
setp foincr.in12 90.000000
setp foincr.in13 95.000000
setp foincr.in14 100.000000
setp foincr.in15 105.000000
setp foincr.in16 110.000000
setp foincr.in17 115.000000
setp foincr.in18 120.000000


On start LinuxCNC, REAL state of this switch is not readed, and always set to 100%.
If I switch to any non-current position, then only the REAL switch position is read.

Link to video. Feedrate switched by my device.
Last edit: 26 Jul 2022 22:06 by svb.

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

More
26 Jul 2022 22:23 - 26 Jul 2022 22:24 #248374 by svb
Oh my god!
Not updated inputs on start LinuxCNC is a very old problems and not solved for a now!!!
github.com/LinuxCNC/linuxcnc/issues/139
Last edit: 26 Jul 2022 22:24 by svb.

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

More
27 Jul 2022 18:08 #248438 by svb

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

More
27 Jul 2022 21:06 #248467 by muvideo
Hi, unfortunately from that video I'm unable to understand what Is happening, I see some errors but are these due to some misbehavior from Lcnc?

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

More
27 Jul 2022 21:13 #248468 by svb
Dear Fabio.
What parameters should I monitor to understand if this is a bug in the Lcnc driver / firmware, or is it something else?

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

Moderators: PCWjmelson
Time to create page: 0.165 seconds
Powered by Kunena Forum