Remora - ethernet NVEM / EC300 / EC500 cnc board

More
2 years 11 months ago #286990 by rbobey1989
I don't think the QDC module has many problems to deal with high speeds, for example let's take 12000mm/min (if it is possible for the machine to physically reach this speed)
With a direct coupling to a 5mm spindle, we would obtain:
1- 12000mm/min / 5mm = 2400rpm
2- 2400 rpm -> 40rps
3- 40rps * ENC_COUNTS = 40rps * 1000 = 40kHz pulse frequency channels A/B, I could add here that this is not a very high frequency.
  All of the above would be for one axis, and we have calculated it for an encoder with 1000 pulses, that is, enough resolution, we could always lower the resolution of the encoder and lower the frequency of the pulses.
Of course all this is thinking about software, then we have such """beautiful""" images of optocoupler outputs as I published a moment ago.
Greetings.
The following user(s) said Thank You: Murphy

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

More
2 years 11 months ago #286993 by scotta
Bug fix v3.1.1 is released in the main repo. The has fixed (hopefully...) the direction not always being correct on restart in the DMA stepgen. TFTP upload issue resolved as well.

github.com/scottalford75/Remora-RT1052-c...ora-rt1052-3.1.1.bin
The following user(s) said Thank You: oficinerobotica, Murphy, hanskuster, cnc-phil

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

More
2 years 11 months ago #286995 by scotta

Hi, changing the direction of the DMA axes shift is frequent, it happens without turning LinuxCNC off and on. I have an XYYZ configuration, when homing it happens that the HOME switch Y1 is turned on (physically it is not), I have to turn linuxcnc on and off several times for it to start working. sensor, cable and input changed. It behaves the same way in fw. remora-rt1052-3.0.0.bin and fw.remora-rt1052-2.1.0.bin. Couldn't it be related to the change in dma direction?
Please try the latest firmware with the bug fix for this.

github.com/scottalford75/Remora-RT1052-c...ora-rt1052-3.1.1.bin

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

More
2 years 10 months ago #287003 by cakeslob

This is the error I get when trying to start linuxcnc.

Debug file information:
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
remora-eth: dlopen: /usr/lib/linuxcnc/modules/remora-eth.so: cannot open shared object file: No such file or directory
./remora-eth.hal:7: waitpid failed /usr/bin/rtapi_app remora-eth
./remora-eth.hal:7: /usr/bin/rtapi_app exited without becoming ready
./remora-eth.hal:7: insmod for remora-eth failed, returned -1
74582
Stopping realtime threads
Unloading hal components
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime


Sorry 0jw, I didnt see this post before. have you resolved the issues in this log? Where are you right now?
Code:
remora-eth: dlopen: /usr/lib/linuxcnc/modules/remora-eth.so: cannot open shared object file: No such file or directory ./remora-eth.hal:7: waitpid failed /usr/bin/rtapi_app remora-eth ./remora-eth.hal:7: /usr/bin/rtapi_app exited without becoming ready ./remora-eth.hal:7: insmod for remora-eth failed, returned -1

this one alone would probably mean the component isnt installed, but the error before that may be related if you did install the component
Code:
Debug file information: iopl() failed: Operation not permitted cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed Note: Using POSIX realtime remora-eth: dlopen: /usr/lib/linuxcnc/modules/remora-eth.so: cannot open shared object file: No such file or directory

so follow up questions
how did you install linuxcnc? premade image or manually?



if you installed remora-nv-3.0 , you need to change your halfile from remora-nv to remora-nv-3.0

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

More
2 years 10 months ago - 2 years 10 months ago #287051 by rbobey1989
Ok Guys, today I can say that I feel a little better in spirit because I have achieved interesting things.
Firstly, searching through some boxes I found our ADUM1200 level shifters that I bought on Aliexpress a while ago from 5V to 3.3V, I downloaded the datasheet and the first thing I read """""High data rate: dc to 25 Mbps"""" "WoooooW just what I need to improve the encoder pulses, so I decided to do some DIY, I have made a simple but illustrative sketch of how the schematic turned out, I also attached a capture of the waveforms for the A/B signals 3V3, I honestly didn't expect to have such clean signals.
After this I was able to change the 50cpr disk again for the 1000cpr one in the encoder, the first test was carried out in open loop at 7500mm/min to verify that counts were not lost, which happened before from 1500mm/min with the 1000cpr disk, the first results were satisfactory, the count was correct so I went on to configure the closed loop and adjust the PID controller, after several tests I leave you a of one of the execution tests, sorry for the audio I performed the video with my phone, also the table where I have the motor is decorative hehehe vibrates beautifully (the motor runs like silk).
It would be interesting to look for some 5V-differential-inputs to 3V3-single-ended-output driver and make a small pcb with 12 channels, of course I would have to do some DIY but not the madness that I have right now on my EC500 hahaha.



 

 

 


Scott I have to update a couple of minor changes in the qdc module since the WHA and WHB pins were incorrectly multiplexed towards XBAR1 file qdc.cpp lines 87 to 98:
Code:
    case 7:         IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_04_GPIO3_IO16, 1U);         IOMUXC_SetPinConfig(IOMUXC_GPIO_SD_B0_04_GPIO3_IO16, 0x10B0U);         XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputIomuxXbarInout08, kXBARA1_OutputEncInput);         break;     case 8:         IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_05_GPIO3_IO17, 1U);         IOMUXC_SetPinConfig(IOMUXC_GPIO_SD_B0_05_GPIO3_IO17, 0x10B0U);         XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputIomuxXbarInout09, kXBARA1_OutputEncInput);         break; Change them to: [code]    case 7:         IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_04_XBAR1_INOUT08, 1U);         IOMUXC_SetPinConfig(IOMUXC_GPIO_SD_B0_04_XBAR1_INOUT08, 0x10B0U);         XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputIomuxXbarInout08, kXBARA1_OutputEncInput);         break;     case 8:         IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_05_XBAR1_INOUT09, 1U);         IOMUXC_SetPinConfig(IOMUXC_GPIO_SD_B0_05_XBAR1_INOUT09, 0x10B0U);         XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputIomuxXbarInout09, kXBARA1_OutputEncInput);         break;  
[/code]
Last edit: 2 years 10 months ago by rbobey1989.
The following user(s) said Thank You: oficinerobotica, Murphy

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

More
2 years 10 months ago #287055 by frayja2002
Hi all

I have flashed the latest updated firmware 3.1.1
I have recompiled remora-eth-3.0
I have re uploaded my config file, all apparently with no problem.
I am able to ping the board

However when I try to take it out of estop I get the message...
Bad payload = 0
on_abort executing

Does anyone know what this means & how to fix it.

Thanks in advance
Alex

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

Time to create page: 0.492 seconds
Powered by Kunena Forum