Remora - ethernet NVEM / EC300 / EC500 cnc board

More
3 years 7 months ago #267106 by scotta
Ok, so I've watched your screen captures and simulated the same scenario. The overshoot is occurring during high speed moves. The default Pgain is 1. The pgain is available as a pin and can be set manually or in HAL. Increasing this value to 10 or 100 tightens the response and eliminated the overshoot.
The following user(s) said Thank You: tommylight, cakeslob

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

More
3 years 7 months ago - 3 years 7 months ago #267517 by frayja2002
Hi all

I have been playing with a NVEM RT-1052 box that I received & have been trying to flash the firmware. (My previous one was an STM32)

For the benefit of all who follow I thought I would post a summary of how I did it.

I was finding it a bit of a challenge & at one stage thought I might have blown the board. The DAPlink method didn't work for me either.

Thanks to fintech who posted the working command earlier in the thread.

So....
I used an ST-link programmer.
On a new install of Linuxcnc (Buster) install python-pip (not python3-pip)

sudo apt install python-pip

This will allow you to install pyocd....

sudo python -m pip install -U pyocd

You can then connect you ST-link via USB & connect that to your NVEM. Power on the NVEM.
I ran the following command as root because I wanted to be sure that there would be no per mission problems. If some-one would like to test this as a normal user, that would be good.

sudo pyocd flash ./remora-rt1052.bin --target mimxrt1050_quadspi

The file remora-rt1052.bin is located in the downloaded repository at Remora-RT1052-main/firmware. Make sure you are in the right place.

Set you IP address to 10.10.10.9 & try pinging 10.10.10.10
I have attached I file which shows all of the gumf you can expect to see on the screen & hope this helps someone comming in cold.
I have also attached some photos to help.

Alex

NB I Followed the pic for an EC300 board but I believe the pin connection is the same.
    In my pics the purple wire is the ground & the black is not used.
 
Last edit: 3 years 7 months ago by frayja2002.
The following user(s) said Thank You: Cold Turkey, cakeslob, FCS Industrial

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

More
3 years 6 months ago #268101 by zmrdko
hello,
does anybody have a working hal & ini config for open loop motors? I'm still getting Joint 0 following error. I'm using default configs from Scott's Remora NVEM github.
 

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

More
3 years 6 months ago - 3 years 6 months ago #268149 by frayja2002
Here is a zip flle of my setup, however I found that when I had that problem the cure was to re-flash the firmware.

If you are using a STM 32 board you need to upload the config file (as per the video on Scotts youtube channel)
I just uploaded the full config as I didn't see any good reason not to.

If you are using an RT-1052 based board you don't need to up load that config file.
This should just work if you drop it into you home/xxx/linuxcnc/configs directory.It was my "play around file" for an auto tool changer so if you try to use it, it will never ask you for the next tool.

Hope this helps
Alex

PS apparently 2.2 Mb is to big a file size so you only get the hal & ini files.
If you need more let me know.

 
Last edit: 3 years 6 months ago by frayja2002.

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

More
3 years 6 months ago - 3 years 6 months ago #268154 by zmrdko
Thanks.
I have RT-1052 based EC500 board.
I tried to pick settings for X axis and joint 0.
Slowing down did help a little, but I still get random following joint 0 errors.

I don't understand, if I don't need to set base period. (in default config its 0 as well as in yours)
EC500 should be capable of 460kHz stepping rate.
I'm trying to set up JMC servo with 5000 steps per rotation on 5mm pitched screw with max speed of 100mm/s.
That would make an stepping rate of 100kHz.
My current PC latencies are ~80000 for servo thread and ~80000 for base thread while playing some 4k video and 5glxgears.
(intel i5 6500, 16GB Ram, onboard GPU)
Does it even matter, since the stepping should be done on the EC500 board? (is this why base thread is 0 in default ini file?)

also there is some weird behavior: the axis moves with correct velocity. But it never reaches the exact target, only slowly crawls close to it. (See attached video
)
Somebody here described similar issue. If I recall correctly, it has to do something with deadband?


 
Last edit: 3 years 6 months ago by zmrdko. Reason: Added video

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

More
3 years 6 months ago #268251 by frayja2002
If you have a look in the .ini file from the previous post, on line 144 at the end of the [AXIS_X] section you will see the pgain value that I put into mine to cure this.

There is a corresponding line required in the .hal file on line 66 in this case. This sets the appropriate remora hal pin.

This worked for me using stepper motors using a 4mm pitch lead screw. You'll have to play with this to see what works for you.

If you are feeding the encoders back into the EC500 you might want to have a look at one of the earlier posts in this thread for the other remora pins that affect the PID tuning & you might have to do some proper PID tuning (which I have never done)

Alex

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

Time to create page: 0.495 seconds
Powered by Kunena Forum