Remora - ethernet NVEM / EC300 / EC500 cnc board

More
04 Jan 2025 20:02 #318119 by cakeslob
Ok, zelo, do a quick test to see if the speed doubles if you reduce the scale by half


Murphy, were you one of the guys modding the board for better encoder signals?
500rpm @ 2400cpr isnt very fast, does it continue counting if you lower speed?
You will probably need to halscope it. I dont know how many people are using encoders with the rt1052

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

More
04 Jan 2025 22:18 #318126 by Murphy
Yes I was , yes it counts if I lower it. I bench tested a 360ppr and I noticed when I moved it with fast acceleration with my hand it would stop. I then hooked it up to the machine with a 600ppr. It starts counting again if I lower it. When I bench tested it and the PV stopped counting , the pulses where still ok on the oscilloscope. I'll try and see can I see the pulses in halscope.
These are Chinese encoders , supposed to be rated for 100khz

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

More
05 Jan 2025 21:54 - 05 Jan 2025 22:20 #318174 by Murphy
Hooked the scope up while the motor was running. And it's interference that seems to be causing the loss of counting. Pulses look terrible .I'd imagine it's the motor is causing it. I have filters and coils on the AC lines and motor lines from the VFD. The encoder is mounted in a 3D printed mounting so it's not touching the case. When I ground the outer encoder case to a ground it helps a little but not much. Any ideas to mitigate the noise. Should I get another encoder with differential outputs and single end it close to the ec500? Or use the existing encoder and put a differential IC close to the encoder and Rx IC single end close to the ec500?
Last edit: 05 Jan 2025 22:20 by Murphy.

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

More
06 Jan 2025 14:04 - 06 Jan 2025 14:05 #318224 by Murphy
Hi can someone help me with the spindle. I have it working on a basic level 0-10v through a VFD, but want to add the encoder. I'm getting confused with the PRUencoder and linuxcnc encoder. I have no spindle speed displayed. I think I need to add the phaseZ pulse somewhere. Pv and raw count is counting in both directions. I have no index enable , is this a physical output pin connected to something? phaseZ is coming in on remora.input.13.

Attachments:
Last edit: 06 Jan 2025 14:05 by Murphy.

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

More
06 Jan 2025 15:34 #318234 by cakeslob
Murphy, here is how I have done my spindle

github.com/cakeslob/RRW_LAB/blob/main/Li...t/remora-xyz.hal#L95

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

More
06 Jan 2025 16:50 #318240 by Murphy
Thank you Cakeslob, with your encoder scaling, you have it set to ENCODER_SCALE for position to be rpm. I have mine set to the ppr of the encoder which is 2400. When I rotate it by hand and it gets to 2400 counts after one rev encoder position is set to 1 in halshow. So it seems to be scaled right. PhaseZ is triggering in halshow also. I have a separate Z pulse coming from the emco encoder wheel on the spindle which triggers around 1400 counts(I don't think this matters?)but when z triggers nothing resets, is this normal? tried deleting the ppr scale number and putting ENCODER_SCALE but it won't start with it, dosnt recognise it. Am I missing something on the ini file for encoder position to be rpm ? 

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

More
06 Jan 2025 18:47 - 06 Jan 2025 18:48 #318249 by cakeslob
Nothing should reset until you flip the index enable pin, then when you rotate, it will reset the revs(i think) pin when it hits z index pin
Last edit: 06 Jan 2025 18:48 by cakeslob.
The following user(s) said Thank You: Murphy

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

More
06 Jan 2025 22:02 #318266 by Murphy
Thanks Cakeslob I entered some of your hal file in mine for the spindle rpm. The spindle seems to be working a lot smoother than before. I also have the rpm displaying now.
Iv ordered a Chinese clone differential line encoder. So I'll single end it with an AM26ls32 IC. Hopefully that will get rid of the noise

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

More
07 Jan 2025 15:32 - 07 Jan 2025 16:34 #318304 by zelo

Ok, zelo, do a quick test to see if the speed doubles if you reduce the scale by half

Velocity doubles until 79, when set to 80 it will give error.

Actually up to 79.7 works.
Last edit: 07 Jan 2025 16:34 by zelo.

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

Time to create page: 0.196 seconds
Powered by Kunena Forum