How to use Rotary encoder with three outputs

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Ali Reza Danish
Posts: 8
Joined: Mon Aug 05, 2019 8:15 pm
Has thanked: 5 times
Contact:

How to use Rotary encoder with three outputs

Post by Ali Reza Danish »

I want to measure rotation angle. I have the encoder E6B2-CWZ6C P/R=360.[ I've never worked with any encoder.] It has 3 outputs OutA,OutB, and OutZ. In Flowcode8 there is only two outputs A and B. Will it be okay if I keep OutZ unconnected.

Thank you

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 44 times
Been thanked: 60 times
Contact:

Re: How to use Rotary encoder with three outputs

Post by viktor_au »

Hello Ali Reza Danish

What is Z output?
An index pulse, labeled as "Z", is added to the quadrature channels A and B.
The Index provides a single pulse once every 360 degrees of rotation.
This feature is typically used to allow a device to locate a home position.


If you don't need this index Z info, don't use it.

Ali Reza Danish
Posts: 8
Joined: Mon Aug 05, 2019 8:15 pm
Has thanked: 5 times
Contact:

Re: How to use Rotary encoder with three outputs

Post by Ali Reza Danish »

viktor_au wrote:Hello Ali Reza Danish

What is Z output?
An index pulse, labeled as "Z", is added to the quadrature channels A and B.
The Index provides a single pulse once every 360 degrees of rotation.
This feature is typically used to allow a device to locate a home position.


If you don't need this index Z info, don't use it.
Thanks Victor,
Since I'm using it as an angle sensor, suppose the encoder rotates 45 degree clockwise and again by rotating counter-clockwise returns to its home position. Will the index provide a pulse for returning to its home without completing a full 360 deg rotation.

Thanks again

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to use Rotary encoder with three outputs

Post by Benj »

Hello,
Since I'm using it as an angle sensor, suppose the encoder rotates 45 degree clockwise and again by rotating counter-clockwise returns to its home position. Will the index provide a pulse for returning to its home without completing a full 360 deg rotation.
Assuming you started from the index position then yes returning to this position will set the index signal high again.
You can purely rely on the encoder count if you don't want to bother with syncing the index signal.

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 44 times
Been thanked: 60 times
Contact:

Re: How to use Rotary encoder with three outputs

Post by viktor_au »

Hello Ali Reza Danish

Please have a look at some good examples provided by Matrix team:
https://www.matrixtsl.com/wiki/index.ph ... :_General)
Have a look at attached .pdf tutorial: "X Y Positioning and Rotation"
Please pay attention at page 3: Setting Up Your System For X/Y Positioning

Wish you the best.
Attachments
X Y Positioning and Rotation.pdf
(133.07 KiB) Downloaded 188 times

Post Reply