9/4/2015 4:38 PM | |
Posts: 5225 Rating: (1187) |
Just as further reference follow the discussion here: Defining the tag.... 2. Add tag.. 3. Start using in coding.. w |
9/4/2015 5:03 PM | |
Posts: 47 Rating: (0) |
|
9/4/2015 7:11 PM | |
Posts: 5225 Rating: (1187) |
Brilliant observation!! Not many people understand that problem. It is a tough one to crack though. You are going to get that variation no matter what you do - there is nothing you can do to synchronise the pulsing to the measurement time interval. The bigger the measurement time, the better the performance. What you have to do is to build a type of filtering. You can have an algorithm calculating the moving average using arrays... but that becomes complicated very quickly. There is an alternative. Thereafter follow the recent thread: When reading through the thread, concentrate only on the filtering technique being discussed there as well as the way to import SCL code into a project. ---- What I mean is - - get the structuring of the solution to your project in place first. Then go through it again and fill in all the detail.Ultimately it is in your hands to set the pace. ---- |
9/5/2015 8:19 AM | |
Posts: 5225 Rating: (1187) |
A strange statement you are making. Working out the link between pulses and belt distance is maths not programming. There is some ratio between rotation of the encoder and movement of the belt. It is that ratio that you can use. I do not know how your encoder is connected to the belt.. So I cannot help to tell you what formula you need. If you tell me (us) and what formula you think to use, someone may double check. There are many threads on this theme in the forum - I encourage you to search in this forum. I will help you with two threads.. + https://support.industry.siemens.com/tf/ww/en/posts/65734/ + https://support.industry.siemens.com/tf/ww/en/posts/114409/ w |
Follow us on