- Posts: 74
- Thank you received: 6
As the response time becomes worse it changes the amount of pre-anticipation the linuxcnc software has to take in the algorithm hence PGain in order to make up for it. High ping time can cause ferror, but also can not having enough response time from the cpu on linuxcnc itself. I highly recommend you make sure your linuxcnc setup is correct and your following all recommendations by linuxcnc, also older kernels are slower and have worse response time in the real time kernel, so if linuxcnc has a timer thats supposed to go off every 1ms and the raspberrypi cpu timer goes off at 1.1ms and then the response time on the board is 0.3ms or up to 0.6ms now you are 1.13 to 1.16ms out of sync.
Hey, Scott (or any volunteer)!
Have you had the time to look at my config files that are causing the following errors? I use the remora-nvem-basic config from github.com/scottalford75/Remora-NVEM/tree/main/LinuxCNC , also attached to this message.
Hi, I've had a look at your config files and they are identical to mine, and I can run with a 1000% feed override without following errors....
Now I'm really scratching my head to understand what could be going on. Do you have the serial debug output connected? It would be interesting to see if there are any issues on the board.
Let me explain exactly what I have done. Maybe you can spot something that I've done wrong.
- Full chip erase on NVEM using STM32 ST-LINK Utility
- Flash NVEM with Remora-NVEM-STM32-1.0.0.bin from github.com/scottalford75/Remora-NVEM/tree/main/Firmware using STM32 ST-LINK Utility
- Install Raspberry Pi OS (Legacy) 32 bit
- Install LinuxCNC and realtime Kernel according to forum.linuxcnc.org/9-installing-linuxcnc...n-raspberry-pi-3b-pi
- Copy github.com/scottalford75/Remora-NVEM/tre...es/remora-nvem-basic to /home/pi/linuxcnc/configs
- Copy github.com/scottalford75/Remora-NVEM/tre...Components/Remora-nv to /home/pi/linuxcnc/components
- Install remora-nv component using[/code][/code]Code:sudo halcompile --install remora-nv.c - Install pyocd using [code]pip3 install pyocd - Write config to NVEM using [code]python3 upload_config.py config.txt And that's it I think. Can you spot anything I might have done wrong? I do not have the serial debug output connected, but I can do that if there is a guide I can follow. Do you happen to have one? [img]/media/kunena/emoticons/smile.png[/img]
[/code][/code]Code:[code][code]Ping response times are longer than I'm getting though, averaging around 0.17ms. Do you have a router in between the NVEM and computer? No router. 2 meter cable directly from the Pi to the NVEM. Is the response time high enough to cause these errors you think?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I dont believe we have FF2 in the algorithm inside remora, unless FF2 is a linuxcnc variable and not remora specific? Remora Hal only has PGAIN and FF1 GAIN I believe not FF2, maybe i can look at that.If the step generator works like the Mesa step generator
(basically a velocity command servo loop), you can compensate
for the time between position read and new velocity write
with the PID loops FF2 term (you set it to the time between
read and write in seconds, so if you have 100 usec between
read and write, you set FF2 to 0.0001)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.