- Posts: 297
- Thank you received: 56
Remora - ethernet NVEM / EC300 / EC500 cnc board
- tuxcnc
- Offline
- Elite Member
-
Less
More
1 year 4 months ago - 1 year 4 months ago #330673
by tuxcnc
Replied by tuxcnc on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I feel like when I calling Microsoft customer's support...
"We dont know what is your problem, but it works with us..."
I know how Linuxcnc does the threading, and know why it is acceptable with LPT and not acceptable with devices using ethernet link.
LPT uses base_thread, ethernet uses servo_thread, so LPT can be ten times faster.
I told you few posts ago, the servo_thread=1000000 (1 ms period) can make delay that can produce 18 degrees positon error at spindle rotates 3000 rpm.
3000 rpm => 50 rps => 20 ms per revolution.
It is mathematics, everyone can make this calculations.
The solution is not send the extended index in hope the Linuxcnc see it, and resets position to zero when received it.
The solution is send raw_count latched at every real encoder's index edge.
We can restore encoder's index (if we need) from (old != new) at the component.
And we can reset position not to zero, but to real position captured at index edge.
We can be confused, because we use "index" word for different meanings (encoder's output, program variable, hal pin) but we can not change this.
Detailed explanation:
Let's assume the encoder's index edge occurs at 1000 raw_counts.
Time goes, counter counts A/B signals.
The component requests data.
At this moment raw_counts is 1050.
We send both values, counted and latched.
The component knows, the index was 50 counts ago and sets position to 50/scale not to zero. (of course only when hal index_enable pin is set)
What don't you understand?
I didn't want attached my project as offtopic, but I see I must.
"We dont know what is your problem, but it works with us..."
I know how Linuxcnc does the threading, and know why it is acceptable with LPT and not acceptable with devices using ethernet link.
LPT uses base_thread, ethernet uses servo_thread, so LPT can be ten times faster.
I told you few posts ago, the servo_thread=1000000 (1 ms period) can make delay that can produce 18 degrees positon error at spindle rotates 3000 rpm.
3000 rpm => 50 rps => 20 ms per revolution.
It is mathematics, everyone can make this calculations.
The solution is not send the extended index in hope the Linuxcnc see it, and resets position to zero when received it.
The solution is send raw_count latched at every real encoder's index edge.
We can restore encoder's index (if we need) from (old != new) at the component.
And we can reset position not to zero, but to real position captured at index edge.
We can be confused, because we use "index" word for different meanings (encoder's output, program variable, hal pin) but we can not change this.
Detailed explanation:
Let's assume the encoder's index edge occurs at 1000 raw_counts.
Time goes, counter counts A/B signals.
The component requests data.
At this moment raw_counts is 1050.
We send both values, counted and latched.
The component knows, the index was 50 counts ago and sets position to 50/scale not to zero. (of course only when hal index_enable pin is set)
What don't you understand?
I didn't want attached my project as offtopic, but I see I must.
Last edit: 1 year 4 months ago by tuxcnc. Reason: typos
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
- Murphy
- Offline
- Elite Member
-
Less
More
- Posts: 163
- Thank you received: 5
1 year 4 months ago #330767
by Murphy
Replied by Murphy on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
@scotta, I just tested the 3.1.4 unfortunately it's still the same no change. Spindle dips to nearly zero while in CSS
Please Log in or Create an account to join the conversation.
- nieyinsheng@gmail.com
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
1 year 4 months ago #330921
by nieyinsheng@gmail.com
Replied by nieyinsheng@gmail.com on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hello scotta, you are such a great programmer.
These days, my NVEM V5 RT1052 control card cannot connect to Mach3, and then I found your post on building linuxcnc on Google. The post shows how to flash Remora firmware on NVEM V2. I spent two days reading the entire post of 230 pages.
But since this is not my specialty, it took me two days to install debian12 linuxcnc.
I also want to revive my NVEM V5. I want to embrace linuxcnc and abandon Mach3. I need your help. I now have two ST-LINK V2, exactly the same. I changed how to flash Remora in the first step. After the V2 soldering pins are connected to ST-LINK, the control card does not light up the signal light as you showed on YouTube. It must be connected to 24V power supply.
I found that many people mentioned this problem in the 230-page reply. I hope to get your help. I want to record the whole process as detailed as possible and then show it to those who need it.
These days, my NVEM V5 RT1052 control card cannot connect to Mach3, and then I found your post on building linuxcnc on Google. The post shows how to flash Remora firmware on NVEM V2. I spent two days reading the entire post of 230 pages.
But since this is not my specialty, it took me two days to install debian12 linuxcnc.
I also want to revive my NVEM V5. I want to embrace linuxcnc and abandon Mach3. I need your help. I now have two ST-LINK V2, exactly the same. I changed how to flash Remora in the first step. After the V2 soldering pins are connected to ST-LINK, the control card does not light up the signal light as you showed on YouTube. It must be connected to 24V power supply.
I found that many people mentioned this problem in the 230-page reply. I hope to get your help. I want to record the whole process as detailed as possible and then show it to those who need it.
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 3
1 year 4 months ago #330982
by Thayloreing
Replied by Thayloreing on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
After a long time I managed to compile Remora for the cloud, but it does not enable the emergency button, I believe the manufacturing is correct, the ping is 10.10.10.10, I read a little and saw that I had to play the .tx file to the cloud, it gives a timeout warning for error traffic and does not play the file, reading a little more I saw that there is a short window to be able to play this file, I tried several times to turn it off and try to play the file as soon as it is turned on and reconnected, but without success, can someone help me?
Please Log in or Create an account to join the conversation.
- Murphy
- Offline
- Elite Member
-
Less
More
- Posts: 163
- Thank you received: 5
1 year 3 months ago #331162
by Murphy
Replied by Murphy on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Remora/Ec500 now running a Denford Triac Mill. Homing/limits/emergency stop/axis and spindle sorted. Need a relay to wire in the coolant pump.
I originally had this running on a cheap eBay BOB using the denford drivers. When I switched over to the EC500 I could not get the driver working correctly with the EC500. After many attempts with different IC and board configurations I gave up trying to use the denford drivers and bought DM556T drivers. Still on the denfords motors.
Monitor is a cheap Amazon touchscreen, worked without any messing around.
I originally had this running on a cheap eBay BOB using the denford drivers. When I switched over to the EC500 I could not get the driver working correctly with the EC500. After many attempts with different IC and board configurations I gave up trying to use the denford drivers and bought DM556T drivers. Still on the denfords motors.
Monitor is a cheap Amazon touchscreen, worked without any messing around.
Please Log in or Create an account to join the conversation.
- Murphy
- Offline
- Elite Member
-
Less
More
- Posts: 163
- Thank you received: 5
1 year 3 months ago #331284
by Murphy
Replied by Murphy on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I'm not to sure what you mean by the cloud ? You have to change the address to 10.10.10.10. once changed, ping the address and see do you get a response (and how long it took).
Please Log in or Create an account to join the conversation.
Time to create page: 0.315 seconds