9/9/2015 7:50 AM | |
Posts: 28 Rating: (0) |
Hi, I need some help with a 64 bit counter in a S7 -300 PLC. How do you design such a counter knowing that the limit is 999. Thank you |
9/9/2015 8:10 AM | |
Joined: 1/28/2009 Last visit: 5/20/2024 Posts: 6840 Rating: (1359) |
Hello ,
The fast and easiest way to increase your limit in SIMATIC Counters , you can use the IEC Counter that are system function blocks. Check SFB0(CTU) , SFB1(CTD) and SFB2(CTUD) from standard library-->system function blocks.Limits for this type of counter is INT(-32768 to 32768) , you can check oscat.de for more options you look for (such as counter in DINT or a bigger variable). also check this discussion in 2012 as a DINT sample: Counter resetI hope this helps, hdhosseini |
Last edited by: hdhosseini at: 9/9/2015 8:21:49 AM |
|
9/9/2015 8:27 AM | |
Posts: 28 Rating: (0) |
Sorry but i am using TIA Portal and cannot open the archive. |
9/9/2015 8:56 AM | |
Joined: 1/28/2009 Last visit: 5/20/2024 Posts: 6840 Rating: (1359) |
First, this is the migrated version for DINT counter, It is developed for test by one of the users here so you need to improve it before practical test.I have archived it with TIA V13.0 .AttachmentStation1.zip (119 Downloads) |
9/9/2015 10:50 AM | |
Posts: 28 Rating: (0) |
I managed to open it but i can't understand anything. Problem is i have only worked so far with LAD and FBD and never had the chance to work with STL or SCL |
9/9/2015 11:52 AM | |
Joined: 1/28/2009 Last visit: 5/20/2024 Posts: 6840 Rating: (1359) |
You don't need to check inside the FB2, simply use it with signal utillized in OB1 (attached file).Another point, if your counter high limit is less that 32767, use IEC counters that mentioned in the previous posts.In this manner, you can couple 2 or more counters to reach the higher limits.For that, you need a bit programming and it is possible even in LAD/FBD.
Attachmentcounter.zip (156 Downloads) |
4/4/2020 7:49 AM | |
Joined: 12/18/2014 Last visit: 6/5/2024 Posts: 33151 Rating: (4095) |
You must update the project before you can it open with V15. I updated for you to V14 SP1. Try this. AttachmentStation1_V13_SP1_V14.zip (50 Downloads) |
Follow us on