Areeb Posted March 21, 2019 Report Posted March 21, 2019 (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 March 21, 2019 by Areeb
Gambit Posted March 21, 2019 Report Posted March 21, 2019 Ok that's your encoder diameter, But you will need the distance traveled by the system per revolution of the encoder. 1
kaare_t Posted March 21, 2019 Report Posted March 21, 2019 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... 1
Areeb Posted March 21, 2019 Author Report Posted March 21, 2019 @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.
Areeb Posted March 21, 2019 Author Report Posted March 21, 2019 @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.
Areeb Posted March 21, 2019 Author Report Posted March 21, 2019 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.
glavanov Posted March 21, 2019 Report Posted March 21, 2019 (edited) So, is it rotary cutter or labeling application? What is the needed accuracy? Give us some hardware info like PLC, registration type... Edited March 21, 2019 by glavanov
Areeb Posted March 21, 2019 Author Report Posted March 21, 2019 (edited) Yes it is cutting and labeling machine. needed accuracy ? Edited March 21, 2019 by Areeb
Areeb Posted March 21, 2019 Author Report Posted March 21, 2019 I only need the strategy for calculating the distance through pulses PLC is mitsubishi FX 3U and I have Delta DVP ES2 for testing.
panic mode Posted March 21, 2019 Report Posted March 21, 2019 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. 3
Areeb Posted March 22, 2019 Author Report Posted March 22, 2019 Thanks Everyone, @panic mode I thing Your suggestion is really helpful for me. Thanks !
Xttian26 Posted December 3, 2021 Report Posted December 3, 2021 Thank you @panic mode, it helped me a lot too
panic mode Posted December 5, 2021 Report Posted December 5, 2021 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now