Advanced Search

Search Results (Searched for: )

  • meister
  • meister
16 Apr 2025 09:10
Replied by meister on topic Custom interface board questions

Custom interface board questions

Category: General LinuxCNC Questions

why something new again ?

there are now enough projects, why not bundle the work?


- encoder scaling: where is it applied with a Mesa board? In the FPGA (did not find anything in the VHDL) or the hostmot2 driver or in LinuxCNC main software?

RIO calculate the offset and scaling inside the hal_component


- motor acceleration and max speed: the same question :)

and this inside LinuxCNC and the PID controller
  • tommylight
  • tommylight's Avatar
16 Apr 2025 09:10
Replied by tommylight on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Always use --show at the end of latency histogram, it will show the number of excursions that are not inside the visible area of the histogram, but they can be seen as multicolored columns on both sides of the histogram.
Also, use --nobase if there is no need for the base period, it adds more timing strains to CPU that will mess with the servo period latency results.
For both periods
latency-histogram --show
For servo period only
latency-histogram --nobase --sbinsize 1000 --show
  • tommylight
  • tommylight's Avatar
16 Apr 2025 09:02
Replied by tommylight on topic Custom interface board questions

Custom interface board questions

Category: General LinuxCNC Questions

Now to my questions:
- encoder scaling: where is it applied with a Mesa board? In the FPGA (did not find anything in the VHDL) or the hostmot2 driver or in LinuxCNC main software?
- motor acceleration and max speed: the same question :)

 

In LinuxCNC, in the ini file.
  • Grotius
  • Grotius's Avatar
16 Apr 2025 08:02
Replied by Grotius on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Hi,

Before starting to change kernels etc. I thought maybe first do the latency-histogram test.
I did this on 2 different pc's.

From what i read here : max us > 100 = is bad.
Is this value both the same for base- & servo-thread?
Or maybe i am reading the histogram not correct.

 
 
 
  • ajar171
  • ajar171
16 Apr 2025 07:55 - 16 Apr 2025 08:41
Custom interface board questions was created by ajar171

Custom interface board questions

Category: General LinuxCNC Questions

Hi everyone!

Long time lurker here :)

Being fed up with the random avaiability of Mesa hardware in the EU, I decided to start designing an open source interface board. The schematics and PCB designs are almost finished, the firmware works so far, that I have communication between a development board and LinuxCNC and can control digital and analog inputs and outputs, read encoder inputs, etc.. So far so good...

Now to my questions:
- encoder scaling: where is it applied with a Mesa board? In the FPGA (did not find anything in the VHDL) or the hostmot2 driver or in LinuxCNC main software?
- motor acceleration and max speed: the same question :)

Thanks in advance!



 
  • Aciera
  • Aciera's Avatar
16 Apr 2025 06:16 - 16 Apr 2025 06:30
Replied by Aciera on topic Remap M6 in python

Remap M6 in python

Category: General LinuxCNC Questions

The task check to avoid execution on load can also be put into the ngc remap like this:
o<g123remapwrapper>sub
o100 if [#<_task> EQ 1]
M66 L0 E0           ;force sync, stop read ahead    
(call your python remap here)
M66 L0 E0
o100 endif
o<g123remapwrapper>endsub
m2


Also, as you have already found out, the 'print()' statements are actually executed during read ahead. If you want messages from the command queue you could use something like this:
    self.execute('(msg,your debug message here)')
Displaying 17176 - 17181 out of 17181 results.
Time to create page: 0.470 seconds
Powered by Kunena Forum