Remora - ethernet NVEM / EC300 / EC500 cnc board
19 Nov 2024 11:58 #314836
by LabOuest
Replied by LabOuest on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I remember seeing Scott's post about the max velocity, I forgot to bump it up, now it's set to 2x the max gui velocity, thanks.
Increasing the base frequency did not result in any mesurable improvement, still fails at about 38KHz.
I've tried 60KHz 80KHz and 100KHz, updating each time with the command sudo halcompile –install remora-eth-3.0.c
Increasing the base frequency did not result in any mesurable improvement, still fails at about 38KHz.
I've tried 60KHz 80KHz and 100KHz, updating each time with the command sudo halcompile –install remora-eth-3.0.c
Please Log in or Create an account to join the conversation.
19 Nov 2024 12:49 #314839
by royka
Replied by royka on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Now I see that setting that frequency was unnecessary indeed. Are you using the DMA config?
github.com/scottalford75/Remora-RT1052-c...ec500-rt1052-DMA.txt
github.com/scottalford75/Remora-RT1052-c...DMA/remora-ec500.hal
github.com/scottalford75/Remora-RT1052-c...ec500-rt1052-DMA.txt
github.com/scottalford75/Remora-RT1052-c...DMA/remora-ec500.hal
Please Log in or Create an account to join the conversation.
19 Nov 2024 13:00 #314842
by LabOuest
Replied by LabOuest on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Understood, I'm using the basic config.
What does DMA stands for ?
What does DMA stands for ?
Please Log in or Create an account to join the conversation.
19 Nov 2024 14:14 #314845
by royka
Replied by royka on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Direct Memory Access, as far as I understand is that with DMA the frequency is 500kHz and it seems that it's limited in the firmware to 40kHz otherwise. Somewhere in this topic Scott explained how it works.
The following user(s) said Thank You: LabOuest
Please Log in or Create an account to join the conversation.
19 Nov 2024 18:13 - 19 Nov 2024 18:22 #314865
by LabOuest
Replied by LabOuest on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
That's it, I'm now able to generate steps up to 125KHz !
You were right, using the DMA version did the trick !
I'll check the posts talking about DMA.
Again, thank you royka
EDIT:
For those wondering, the 125KHz limitation comes from the step length and step space both set to 4us. F=1/T so F=1/8us=125KHz everything works out !
The limitation comes from my JMC Integrated Servo, they don't work is I lower the step length.
That's kind of weird because the datasheet claims they can go down to 2.5us...
I'll check the signal with an oscilloscope.
You were right, using the DMA version did the trick !
I'll check the posts talking about DMA.
Again, thank you royka
EDIT:
For those wondering, the 125KHz limitation comes from the step length and step space both set to 4us. F=1/T so F=1/8us=125KHz everything works out !
The limitation comes from my JMC Integrated Servo, they don't work is I lower the step length.
That's kind of weird because the datasheet claims they can go down to 2.5us...
I'll check the signal with an oscilloscope.
Last edit: 19 Nov 2024 18:22 by LabOuest.
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
19 Nov 2024 20:03 #314870
by scotta
The nvmpg component does the communication for the screen updates and button press receptions. The nvmpg LinuxCNC component needs to be enable in the ini file to use the remora-nv-mpg.hal file. Encoder pulse counting is done in software on the LinuxCNC side. So slow speed counting.
Encoders require the QDC module to be enabled in the config.txt file.
eg Remora-RT1052-cpp/LinuxCNC/ec500-rt1052-DMA-ENC.txt at main · scottalford75/Remora-RT1052-cpp
Example encoder hal file
Remora-RT1052-cpp/LinuxCNC/remora-ec500-DMA_closed_loop/remora-ec500_closed_loop.hal at main · scottalford75/Remora-RT1052-cpp
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hi, are you using the nvmpg or just an encoder?Does this look ok to get the encoder PV1 counting? PV1 should be the MPG socket. I don't know if I have a hardware issue or code issue. Also does the nvmpg.so need to be compiled first? I'm using an adum1200 to bypass the opticouplers. PV1 does not count when I move the encoder in Halshow
The nvmpg component does the communication for the screen updates and button press receptions. The nvmpg LinuxCNC component needs to be enable in the ini file to use the remora-nv-mpg.hal file. Encoder pulse counting is done in software on the LinuxCNC side. So slow speed counting.
Encoders require the QDC module to be enabled in the config.txt file.
eg Remora-RT1052-cpp/LinuxCNC/ec500-rt1052-DMA-ENC.txt at main · scottalford75/Remora-RT1052-cpp
Example encoder hal file
Remora-RT1052-cpp/LinuxCNC/remora-ec500-DMA_closed_loop/remora-ec500_closed_loop.hal at main · scottalford75/Remora-RT1052-cpp
Please Log in or Create an account to join the conversation.
20 Nov 2024 08:30 - 20 Nov 2024 10:41 #314888
by Murphy
Replied by Murphy on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Thanks Scott, it's a spindle encoder I'm trying to get working. Its just the first step to get the PV1 counting in Halshow so I know at least the hardware is working. I'll look at my wiring again. Config setup for the encoders. No not using the MPG , just needed to rule out I didn't need that .so installed for the encoders to work. I have everything else working the lathe with this controller, axis ,spindle and tool changer
Last edit: 20 Nov 2024 10:41 by Murphy.
Please Log in or Create an account to join the conversation.
20 Nov 2024 18:15 - 20 Nov 2024 18:20 #314932
by LabOuest
Replied by LabOuest on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Looking at the oscilloscope I found out that my timing is wrong.
There isn't any Dir Hold or Dir Setup in my signal as is required by my drivers.
(Yellow: Step pin Blue: Dir pin)
Following Scott's post I edited and uploaded my config.txt
Unfortunately, looking at the scope, there still isn't any Dir Hold or Dir Setup in my signal !
I made sure my config was updating properly by changing the timing and looking at the scope, which it does.
I made sure the dir signal was wired correctly to the scope by moving the axis back and forth, which it is.
I reinstalled remora ethernet component by downloading the repo and doing sudo halcompile --install remora-eth-3.0.c inside Remora-RT1052-cpp-main/LinuxCNC/components/Remora-eth/
Is there a bug, did I overlook something ?
There isn't any Dir Hold or Dir Setup in my signal as is required by my drivers.
(Yellow: Step pin Blue: Dir pin)
Following Scott's post I edited and uploaded my config.txt
Unfortunately, looking at the scope, there still isn't any Dir Hold or Dir Setup in my signal !
I made sure my config was updating properly by changing the timing and looking at the scope, which it does.
I made sure the dir signal was wired correctly to the scope by moving the axis back and forth, which it is.
I reinstalled remora ethernet component by downloading the repo and doing sudo halcompile --install remora-eth-3.0.c inside Remora-RT1052-cpp-main/LinuxCNC/components/Remora-eth/
Is there a bug, did I overlook something ?
Last edit: 20 Nov 2024 18:20 by LabOuest.
Please Log in or Create an account to join the conversation.
20 Nov 2024 19:40 #314935
by scotta
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Are you sure the blue trace is the Dir pin. It should only change from high to low on a direction change. I doubt you are changing direction every step pulse.
The LinuxCNC component does not control the setup and hold times. This is done in the firmware.
The LinuxCNC component does not control the setup and hold times. This is done in the firmware.
Please Log in or Create an account to join the conversation.
20 Nov 2024 20:02 - 20 Nov 2024 20:12 #314937
by LabOuest
Replied by LabOuest on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Yeah, that's what I though, the direction signal going to 0 at every step is dubious at best. Especially looking at your older posts which clearly show a logic analyser graph with the expected step dir behavior.
I made a short video so we can all better understand what's happening, would you mind taking a look ?
(Keep in mind, these are differential signal, the dir pulse is not going in the other direction between step pulse, it's just going to the mid point, 0v)
I made a short video so we can all better understand what's happening, would you mind taking a look ?
(Keep in mind, these are differential signal, the dir pulse is not going in the other direction between step pulse, it's just going to the mid point, 0v)
Last edit: 20 Nov 2024 20:12 by LabOuest.
Please Log in or Create an account to join the conversation.
Time to create page: 0.289 seconds