Industry Online Support
Technical Forum
10/22/2012 1:54 PM | |
Posts: 11 Rating: (0) |
It is a S7-1200 PLC,. Please, someone help |
10/22/2012 5:45 PM | |
Posts: 327 Rating: (28) |
Greetings SCL would be a better choice for this. I don't have TIA Portal right now, but I'll try to describe the algorithm. In DB, make an array of 10 REALs. Also, make an INT counter. Create a cyclic OB than runs every second (or use clock memory to run in every second). In there, put a code that does next:
This is probably not a best algorithm, and it will be wrong for first 10 seconds, but it is usually good enough. If you really want to do it in LAD, you could use method described in here:/tf/WW/en/Posts/31072 Best regards
|
10/24/2012 11:25 AM | |
Posts: 11 Rating: (0) |
Thanks very much. I will try that today. will let you know. cheers |
Follow us on