Jump to content

Distance in milimeter from Encoder pulses


Recommended Posts

Posted (edited)

Hi everyone! I need to calculate the distance in millimeter by using encoder pulses. Basically I need to give the signal from PLC to stepper motor at the desired length to cut the paper.  Following is the information 

Encoder= 1000 PPR

Encoder shaft diameter= 80mm

 

Edited by Areeb

Posted

It's easy: Just setup an interrupt in your selected PLC (which you haven't specified either) on xx number of pulses, and setup the equation that equals that number of pulses... Reset your counter whenever you want to reset the traveled distance...

  • Like 1
Posted

@Gambit Yes I need to calculate the distance traveled by encoder, actually I used 1000 PPR encoder so wanted to used its pulses to calculate the distance so that I can give the signal to my motor at the desired length.

Posted

@kaare_t U are absolutely right but I need the distance (mm) also to give the signal to my motor so that It can cut the paper at exact desired length. All I need to know is the distance in millimeter so that one can easily set the distance by using HMI.

Posted

I can explain my problem in this way. Suppose there is paper whose length is 300 mm and I need to label the tag  in the middle of the paper say 150 mm after every 1 rotation (360*/ 1000PPR) of the encoder. so here I need the distacne in millimeter from encoder to give the signal to my motor for label the tag.

Posted (edited)

So, is it rotary cutter or labeling application?

What is the  needed accuracy?

Give us some hardware info like PLC, registration type...

Edited by glavanov
Posted

I only need the strategy for calculating the distance through pulses PLC is mitsubishi FX 3U and I have Delta DVP ES2 for testing.

Posted

first determine correct ratio or scale factor:

    reset position
    move whatever your encoder is tracking certain distance (257mm for example)
    look at the encoder value (5103514 counts for example).
    then divide the two values to get travel in pulses per mm (19858.03112840)

 

now that you have scale factor, divide whatever encoder pulses are by that factor and you will get traveled distance in millimeters.

 

 

  • Like 3
Posted

very good. btw thanks for the feedback. i recall almost not posting it because i though anyone would get it if they just though about it...

but then, we all have moments when exhaustion clouds judgement so i decided to post it anyway. glad it helped.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...