Remora - ethernet NVEM / EC300 / EC500 cnc board

More
31 Mar 2024 12:30 #297276 by peterling
Hi, thanks of the manual of Cold Turkey i was able to flash the board, but without success :-(
I erased the board with
(pyocd) cnc@raspberrypi:~/linuxcnc/Remora-RT1052-cpp-main/Firmware$ pyocd erase --chip --target mimxrt1050_quadspi
0000867 I Erasing chip... [eraser]
0009003 I Chip erase complete [eraser]
0009007 E Error during board uninit: [session]
(pyocd) cnc@raspberrypi:~/linuxcnc/Remora-RT1052-cpp-main/Firmware$

i got the same error as vpomerlo on page 166. I tried to ping the board -> no reaction, so somthing was done.
Next step was to flash the firmware with pyocd and a STLink V2 adapter. This worked well:
(pyocd) cnc@raspberrypi:~/linuxcnc/Remora-RT1052-cpp-main/Firmware$ pyocd flash remora-rt1052-3.1.2.bin --target mimxrt1050_quadspi
0000812 I Loading /home/cnc/linuxcnc/Remora-RT1052-cpp-main/Firmware/remora-rt1052-3.1.2.bin [load_cmd]
[==================================================] 100%
0043091 I Erased 393216 bytes (6 sectors), programmed 358656 bytes (1401 pages), skipped 0 bytes (0 pages) at 8.29 kB/s [loader]
(pyocd) cnc@raspberrypi:~/linuxcnc/Remora-RT1052-cpp-main/Firmware$

Result: one output pin was on
OK, now i was able to ping the board on 10.10.10.10
Next step loading a config on the board
(tftpy) cnc@raspberrypi:~/linuxcnc/configs/remora-rt1052-basic$ python3 upload_config.py ec500-rt1052.txt
Valid JSON config file, uploading to board
Config file length (words) = 1716
Config file length (bytes) = 6862
Remainder = 2
Padding added =  [0, 0]
Config file length with padding (bytes) = 6864
CRC-32 = 0x580751a8
(tftpy) cnc@raspberrypi:~/linuxcnc/configs/remora-rt1052-basic$

as a result all outputs are off and the "CONN" LED is now on.
Next step: i connected the serial interface, because on my old NVEM i was able to see some reactions on RS232. I directly connected a RS232 to USB vonverter to the board and looked with cutecom on the interface (115200;8;n;1) but i see no response? Is this normal?
Next step: i opened LinuxCNC
LINUXCNC - 2.9.2
Machine configuration directory is '/home/cnc/linuxcnc/configs/remora-rt1052-basic'
Machine configuration file is 'remora-ec500.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./remora-ec500.hal
Found file(REL): ./remora-nv-mpg.hal
note: MAXV     max: 125.000 units/sec 7500.000 units/min
note: LJOG     max: 125.000 units/sec 7500.000 units/min
note: LJOG default: 50.000 units/sec 3000.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
task: main loop took 0.751144 seconds
Bad payload = 0
Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

task: main loop took 0.271986 seconds
Bad payload = 0
task: main loop took 0.243142 seconds
Shutting down and cleaning up LinuxCNC...
task: 5535 cycles, min=0.000009, max=0.751144, avg=0.010250, 3 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime

I have a new board with a number "6" on a sticker on it. Its the new board layout with LEDs for input and output.
Any idea why it won't work?


 

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

More
31 Mar 2024 22:04 #297310 by scotta
Hi, which board? EC300 / EC500?

You should be seeing debug output on the serial output.

The CONN light should only be solid when LinuxCNC is connected to the board.

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

More
31 Mar 2024 22:43 - 31 Mar 2024 22:46 #297312 by Wiretap
Following up (have been discussing this on discord also with Cakeslob):

- Here's a video of it doing its thing. cdn.discordapp.com/attachments/970073318...ID20240401112425.mp4 . Please ignore the inappropriately small temporary monitor.

- It only affects the X axis, have tested Y and Z

- Loading the attached "ec500-rt1052.txt" example config stops the behaviour (this config does not use DMA Stepgen)

This makes me think there's a bug in the DMA stepgen. Though Cakeslob did also point out that the X reported position is bouncing around while this is happening.
Attachments:
Last edit: 31 Mar 2024 22:46 by Wiretap.

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

More
01 Apr 2024 08:49 #297348 by peterling
it is a EC500. Conn light is off. When I make a download via upload_config.py I see the conn LED short blinking.
I plugged an USB2serial converter directly on the plug on the EC500. I don't need any any pin layout changes?

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

More
02 Apr 2024 02:39 #297409 by Cold Turkey
Hey Peter,

When you run Linuxcnc and bring the machine out of software estop does the conn light come on? At the moment Linuxcnc must be out of software estop to establish a connection with the board, Scott has indicated he may change this in the future so that Linuxcnc stays connected to the EC500 even when an external estop is tripped.

If you can't get the conn light on make sure that you have the eth3.0 component installed and included in your hal.

The 6 sticker on the EC500 just indicates it had the 6 axis config loaded on it from factory. Same hardware as the others.

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

More
02 Apr 2024 12:50 - 02 Apr 2024 12:52 #297431 by nicnucan
Hello, I have HLTNC AC Servos and would like to use them with the EC500 on Remora. The question is, which config can I use as a base for this? Unfortunately, I can't find any information on this and would be very grateful if you could help me out or give me a tip.Here is the link to the motors used (z comes with a brake) and the link to the manual.

AC Servos --> de.aliexpress.com/item/1005006499016819....mend%7Cquery_from%3A


AC Driver Manual --> drive.google.com/file/d/1xr2uba-4ThCK9Vh...Qke/view?usp=sharing


 Thank you very much in advance.
Last edit: 02 Apr 2024 12:52 by nicnucan.

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

More
02 Apr 2024 18:15 #297451 by peterling
Halo Cold Turkey,
which is the estop-pin?
how does it needs to be connected? At the moment I have the naked board in front of me, only RS232 and 24V applied to IO and System. I miss any response on the RS232?
when I press emergency-off in LinuxCNC then I can see a short blinking of the CONN-LED.
Remora-eth-3.0.c is installed via sudo halcompile --install remora-eth-3.0.c.
Any ideas where is the problem?

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

More
02 Apr 2024 20:56 #297468 by Cold Turkey
You don't need a physical estop connected. Just need to have linuxcnc running and the estop button in linuxcnc disabled to establish connection.

I have not used the RS232 on the EC500 yet so can not help you there

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

More
03 Apr 2024 02:29 #297479 by cncmiljc
Scotta, could you clear this doubt for me? Regarding the stepgendma with the 407, it does not generate the pulses, I know that you did the programming so that the pulses were generated without using Linux CNC, only with testing, but even that is not working, could you tell me why? Or do you have any configuration that is working for a study basis?

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

More
03 Apr 2024 02:30 #297480 by Wiretap
Have you tried using the example configs? I have had no issues getting it to generate motion... I am however having some weird behaviour (as previously mentioned)

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

Time to create page: 0.987 seconds
Powered by Kunena Forum