7/2/2006 10:13 PM  
Joined: 1/25/2006 Last visit: 7/3/2019 Posts: 254 Rating: (45) 
Hello, I have shaft encoder and counter module and I want to measure speed of one chain. Is it exist some function in Step 7 where I can parameterize and perform scalling? My encoder have 500 pulse per revolution and I want speed in meter per minute. Is it possible or I have to make mathematics in my program for that. Thank you in advance. Zoran 
7/3/2006 10:25 PM  
Joined: 1/7/2006 Last visit: 12/7/2019 Posts: 2705 Rating: (299) 
[quote user="zognjanovic"]I have shaft encoder and counter module and I want to measure speed of one chain. Is it exist some function in Step 7 where I can parameterize and perform scalling? My encoder have 500 pulse per revolution and I want speed in meter per minute. Is it possible or I have to make mathematics in my program for that. Hi Zoran, So extremly difficult is that not, please give me the formula and i made a block for you that scales what you want.... [:P] For example: I presume you have only three inputs, the value to scale {In}and the distance for 1 puls or for one rotation(here 500) {Distance}and need also a time constante, say every 1 seconds {TimeInterval},on the block, and one output {Scaled}. You may also call the block every 1 second from a timeOB [OB3x]. So you may do internallyV = (Delta S / Delta t)m/min [Scaled = In(m) / Time(min)] When you scan every second then the Scaled value have to be calculated to one minute by multiply the value with 60. If the Distance is in mm or cm then the Scaled value have to be divided by 1000 or 100. [:o] Consider that the Inparameter have to be in the same value as the Distance.... [:blush:] 
I hope that the answer will help, if you have still questions, don't hesitate to ask me. 

7/4/2006 8:28 AM  
Joined: 1/25/2006 Last visit: 7/3/2019 Posts: 254 Rating: (45) 
Hi Late, the first, thank you for your help. This forum is the best thing. The right manual. Ok. Periphery of circle is 315mm, that is mean 315/500 mm/pulse. And I agree with your mathematics. So, can I get function block according your suggestion. And one more thing. Velocity is small, about 45 met/min, I suppose and maybe time it should great than 1 sec (I mean on calling OB 3x). Once again, thank you for help. BR, Zoran 
7/6/2006 12:10 AM  
Joined: 1/7/2006 Last visit: 12/7/2019 Posts: 2705 Rating: (299)

Hi Zoran, The first version is ready, see the attachement. [:P] I presume that the parameter "In" is the pulsdifference in 1 second. If the block have to be also calculate the difference then please let me know. AttachmentScale.zip (47 Downloads) 
I hope that the answer will help, if you have still questions, don't hesitate to ask me. 
