12/2/2014 1:25 PM | |
Joined: 8/31/2005 Last visit: 11/13/2024 Posts: 2198 Rating: (328)
|
The (actual) S7-1200 CPUs can be programed in SCL. (Maybe the first ones with FW <2.0can't use SCL) |
|
|
12/2/2014 1:35 PM | |
Posts: 19 Rating: (0) |
How to enable SCL? I am getting just LAD/FBD option in TIA potal V12 I am seeing Firmware to be 3
|
Last edited by: Muhammad Haris at: 12/2/2014 1:38 PM |
|
12/2/2014 1:58 PM | |
Posts: 19 Rating: (0) |
Available Options are as in the picture |
12/2/2014 5:14 PM | |
Posts: 19 Rating: (0) |
Thank you. Worked but can't SCL be coverted back to LAD/FBD? |
12/2/2014 5:22 PM | |
Posts: 5225 Rating: (1197) |
Hi. Follow the direction given by Miami. What you need to do is create a new Function Block (FB) or Function (FC), then select what language you wish to use. Just remember to call the FC or FB in OB1 later on (I still forget to do that sometimes). Using SCL is not going to give you the solution. SCL will help if you are comfortable with coding in Pascal, C, Java, .. Working with LAD is still an option to you. eisenpferdreiter has a good option for you. It is a type of a counter with memory. For example you can have an update every 10 seconds and store the last 6 counts. Every 10 seconds you add a new value and take away the oldest value. Do you know how to work with arrays? Other alterantives exists. There is the option of measuring the time between pulses and project how many pulses you will get in a minute. The best way to make this work is to use a interrupting function on the triggering input. Then have a timer run between the triggers. The problem is the accuracy of the timer.. unless you use unconventional timing. (so better we ignore this one) The next option is to use the built in high speed counter (HSC) and use the frequency measurement option. With this option at least you are not bound to the cycle time of the PLC which will be a problem in other methods. Again you can build up a buffer of readings over the minute. Now I think you might have some questions.. please feel free to ask - someone should answer. Cheers. w |
12/2/2014 9:01 PM | |
Posts: 5225 Rating: (1197) |
@Muhammad Haris: I hope to direct your attention to: [LINK] Special attention to time stamps.. 5/31/2014, 10:42 PM 6/2/2014, 8:57 PM 6/2/2014, 10:57 PM You may find it useful in your quest. The first date stamp discusses the concept of moving average which may be helpful to you when you are measuring frequency of pulses. Also included is background information on how the rotary action of values in an array works. I hope this is of value to you. w |
Follow us on