10/31/2017 3:14 AM  
Posts: 5 Rating: (0) 
Hi, I would like to seek some professional help from you guys. First of all, im using TIA Portal V13 SP2 and im using a counter module, 6es71386aa000ba0 and i have this encoder with 1024 pulse per revolution. This encoder will be attach to a wheel to measure wire length, and Speed (m/min). For my counter module parameters (counting behavior) i change the high counting limit and low counting limit to 1024 and 1024 respectively and set "to start value" when counting limit is violated. i do this because i want to measure also the number of rotations. Is it right to adjust the high and low limit value to get number of rotation? Or is there any other way to calculate for this? to calculate the RPM, kindly confirm that the formula is (frequency*60)/1024. i have seen this formula while browsing the forum. My counter module measured value is set to frequency. is this the frequency that i need to multiply with 60 and divide by 1024? for speed(m/min) calculation, formula i use is wheel diameter(user input)*RPM*Pi. to calculate the wire length. client require to have this "KFactor" which is in m/rev. this "KFactor" is user input. As for my understanding i only need to multiply this KFactor (m/rev) to my number of rotation (rev) to get the length. Kindly advise me if there is a mistake that i need to change. Kindly download my logic in my dropbox link below since i can't attach file larger than 3MB. Deleted Link Thank you very much AttachmentCounter.zip (75 Downloads) 
Last edited by: Jen_Moderator at: 11/3/2017 9:15:58 AMAdded pictures as an attachment. 

10/31/2017 3:17 PM  
Joined: 6/24/2013 Last visit: 1/26/2023 Posts: 1500 Rating: (381) 
Hi do not set it to 1024..1024  counter works asynchronously to the plc scan if you have more than high speed counter card do the following 1. connect A and B from encoder to two high speed inputs 2. configure one counter to measure length and another to measure speed / frequency if you have just one counter you can measure speed by querying counter at fixed intervals and calculating speed 1. at each call of your OB Prev_Count:=Count; Speed := Scaling_Factor*Change/OB_Period [units] you need adjust scaling factor based on length per pulse, gearbox, required unit (m/s, m/min, ...) 
This contribution was helpful to2 thankful Users 
11/1/2017 8:36 AM  
Posts: 5 Rating: (0) 
Hi Sir, Thank you for your reply. It really helps me. Thank you again 
4/12/2018 11:57 AM  
Joined: 2/18/2013 Last visit: 3/23/2022 Posts: 10 Rating: (0) 
Hi, I have facing the same solution related to TM Count. Did you find the solution and if yes can u send me the sample backup to Deleted EMail 
Last edited by: Jen_Moderator at: 4/12/2018 1:45:04 PMDeleted EMail address. Doesn't comply with forum terms. 

Follow us on