Encoder mode for DG4s

This Section is for users to discuss hardware

Encoder mode for DG4s

Postby Derek » Wed Jan 26, 2022 5:40 pm

Looking for an explanation as to why you would want to run in 2X mode vs 4X mode. Does 4X give you more resolution?

Thanks
Derek
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Encoder mode for DG4s

Postby TroyO » Wed Jan 26, 2022 8:01 pm

I am a newb, so this may not be right, but I've been reading up on encoders in general and seen it mentioned that too high an encoder PPR count can exceed the motion controllers ability to register the pulses.

I'm not sure its relevant here, but maybe?
TroyO
 
Posts: 18
Joined: Sun Dec 12, 2021 5:14 am

Re: Encoder mode for DG4s

Postby cncdrive » Thu Jan 27, 2022 12:20 am

The microcontroller has to read all encoder edges (4x mode) anyways, but the microcontroller has a QEI (incremental encoder) module built in.
It can do 2x and 4x modes in hardware and so we gave the ability for the user to select it as it is only setting/clearing one bit in the microcontroller configuration.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Encoder mode for DG4s

Postby Derek » Thu Jan 27, 2022 2:20 pm

The microcontroller has to read all encoder edges (4x mode) anyways, but the microcontroller has a QEI (incremental encoder) module built in.
It can do 2x and 4x modes in hardware and so we gave the ability for the user to select it as it is only setting/clearing one bit in the microcontroller configuration.


I hope you realize anyone who understands that response wouldn't be asking the question in the first place:)

I need the "explain it to me like I'm five" answer. So I have US digital incremental encoders with 250 line wheels. I want the most resolution I can get out of it. Would being in 4X mode do that? If yes what possible issues may I run into.

I'm assuming you put time and expense into make it selectable. A better explanation would be great.

Thanks
Derek
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Encoder mode for DG4s

Postby cncdrive » Fri Jan 28, 2022 12:51 am

The only advantage to have this setting is if you have very low or very high resolution encoder.
With very low resolution 2x mode might not give enough counts per turn to make the motor running smooth enough.
And with very high resolution 4x mode might give too high frequency, higher frequency than what the drive can successfully read.

With your 250 lines encoder in my opinion both settings should work.
I would use 4x mode because that would give higher resolution, smoother running and for controllers like the UCCNC which can output several hundred kHz step frequency it should be not a problem to handle that high encoder counts even if your motor is running fast.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 12 guests