Remora - ethernet NVEM / EC300 / EC500 cnc board

More
3 years 1 month ago #282014 by chrstrvs
Nice, thanks so much, that did the trick!

Now on to the next part in this learning curve :)

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

More
3 years 1 month ago - 3 years 1 month ago #282019 by rbobey1989
Hello everyone here, for a few days I have been researching QDC and XBAR, to try to add a hardware encoder module to the Remora project for Scott's rt1052, I have to say that it was somewhat tedious to read the reference manual, I have reused part of the code for the remora QEI hardware encoder for STM32 but I have added the XBARA1 multiplexer, great the multiplexer allows you to connect many signals with peripherals in which IOMUX cannot do anything.
I have forked your project Scott, I have modified it and I have sent you a pullrequest, tell me what you think, I have not been able to test an encoder with an index because I do not have one, maybe I have one at work, I will look for one.
In the configuration file, a field must be added to the encoder and it is the number of the QDC module that must be used. I imagine that this can be done in many ways and omit this, for example:

     "Thread": "Servo",
     "Type": "QDC",
         "Comment": "QDC Encoder A-IN02 B-IN03",
         "PV": 0,
         "ChA Pin": "P4_13",
         "ChB Pin": "P4_14",
"ENC No": 3
},
I must also say that you can use encoders 1, 2, and 3, in the case of having an encoder with an index you could use 2 instances due to the lack of pins.
I leave the link to my repository in case anyone wants to try it. Greetings, everything is for LinuxCnC and Remora.
Last edit: 3 years 1 month ago by rbobey1989.
The following user(s) said Thank You: Murphy

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

More
3 years 1 month ago #282032 by scotta

The board is turned off and the cable is disconnected from the computer, let's say you turn on the board but the cable is disconnected, with the board already running, you connect the cable and open Linux CNC, when trying to run a program or use the jog, it comes a joint error, but if you turn off the board now with the cable connected and turn it on again, we no longer have the error, that is, from what I have seen, you cannot turn on the board without the cable being connected to the computer first , I noticed that we can't turn on the board before turning on the computer, I didn't quite understand why.
The first part of the Remora start sequence is to bring up the Ethernet. If you start without a cable and computer connected, it just sits there waiting. I'll need to see if there is a timeout in the LWIP, or retry. But simple thing is to have LinuxCNC computer running and then turn on the controller with Ethernet cable connected.

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

More
3 years 1 month ago #282033 by scotta

Hello everyone here, for a few days I have been researching QDC and XBAR, to try to add a hardware encoder module to the Remora project for Scott's rt1052, I have to say that it was somewhat tedious to read the reference manual, I have reused part of the code for the remora QEI hardware encoder for STM32 but I have added the XBARA1 multiplexer, great the multiplexer allows you to connect many signals with peripherals in which IOMUX cannot do anything.
I have forked your project Scott, I have modified it and I have sent you a pullrequest, tell me what you think, I have not been able to test an encoder with an index because I do not have one, maybe I have one at work, I will look for one.
In the configuration file, a field must be added to the encoder and it is the number of the QDC module that must be used. I imagine that this can be done in many ways and omit this, for example:

     "Thread": "Servo",
     "Type": "QDC",
         "Comment": "QDC Encoder A-IN02 B-IN03",
         "PV": 0,
         "ChA Pin": "P4_13",
         "ChB Pin": "P4_14",
"ENC No": 3
},
I must also say that you can use encoders 1, 2, and 3, in the case of having an encoder with an index you could use 2 instances due to the lack of pins.
I leave the link to my repository in case anyone wants to try it. Greetings, everything is for LinuxCnC and Remora.
Thanks so much for this, I quickly reviewed the code before reading the above, and noted in line 197 of the module you are getting the Revolution Value, maybe this should be the position value hold register?

I need to get myself a 24v encoder now.

In your work with the XBAR did you see which available inputs can be routed to the quad timers? These timers also have encoder counting capability. This might increase the number of possible encoders, but without the fancy glitch filtering circuity.

People wanting a spindle encoder will greatly appreciate your work, thank you!!

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

More
3 years 4 weeks ago #282074 by manager12345
Hello everyone I have an NVUM V2 USB board and it is configured for Mach3. But there was a need to switch to Linux CNC. I wanted to find out from experts if I could flash such a board on Remora for LinuxCNC and whether such a system would work at all?
In order for you to understand more, a simulator \ simulator for training is going to be built, and you need to make an operator panel and the movement of the machine and the compilation of its G\M code will be shown on the screen itself. The board is needed in order to perform the basic functions of the CNC machine in the form of a simulator.
Tell me, please, will such a system work? And are there any solutions to make it work?

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

More
3 years 4 weeks ago - 3 years 4 weeks ago #282079 by chrstrvs
Hi!

Please forgive my noobness, but I need some guidance, and I really hope that you guys will be able to help me out.

I'm completely new to LinuxCNC and have pretty much no knowledge when it comes to Linux besides copy/pasting commands, making simple changes in menus and editing text files. I know it's a bit backwards to start my LinuxCNC journey by using the NVEM board with Remora. Ideally I should use a board made for LinuxCNC, but the NVEM is what I have, and I would like to not spend money and the earth's resources if I don't have to.

Now, I have been able to install Raspberry Pi OS Legacy to my Pi 4b 4 Gb, as well as installing LinuxCNC and Remora and flashing my NVEM with the Remora firmware. When I start LinuxCNC with the sim.axis configuration the simulation works fine, but displays the error message "unexpected realtime delay on task 0..." when I start with remora-nvem-basic, and as soon as I try to move an axis I get the error "joint [0-2] following error".
I have not yet connected anything to the NVEM, it's currently sitting on my desk connected to the Pi, if that makes any difference.

I work as a automation engineer, and have a lot of experience with miscellaneous automation systems, but LinuxCNC is just too much at once for me :)

Am I supposed to Pncconf wizard to create a configuration even though I have the remora-nvem-basic? Or should I make a configuration based on the remora-nvem-basic by copy/pasting it and making changes there based on my setup?

Apparently I've missed something, done something wrong, done something in the wrong order, and I'm hoping that you guys could find it in your hearts to help a beginner out :)
What I'm basically asking for is guidance on what to do next that is specific to Remora and NVEM.

Thanks in advance!

Regards,
Christian
Last edit: 3 years 4 weeks ago by chrstrvs.

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

Time to create page: 0.357 seconds
Powered by Kunena Forum