Difference Between STL and SCL

erdemsvri

Member
Join Date
Jul 2009
Location
Germany
Posts
172
Hi

I implemented a logging function in S7 STL and SCL both and both of them works as I wanted which is when I say log data, FC logs the number of data to a data block which has been created before.

My question is I used while loops in SCL to increase the index of the array in DB which helps me log the data.Does the CPU do all the logging in one cycle for SCL??

Generally if I implement a while or for loop in SCL or a use loop command in STL does the CPU finish the loops first or cycle???

Thanks
 
...

The CPU does it in one cycle...

Try FOR NEXT, 1000 times loop, and check the CPU cycle, it will be increased !!

So, watch out where you're going with loops !!

You can devide your loops so that the CPU is not slowed down too much.
It all depends how fast you want your result.


Hi

I implemented a logging function in S7 STL and SCL both and both of them works as I wanted which is when I say log data, FC logs the number of data to a data block which has been created before.

My question is I used while loops in SCL to increase the index of the array in DB which helps me log the data.Does the CPU do all the logging in one cycle for SCL??

Generally if I implement a while or for loop in SCL or a use loop command in STL does the CPU finish the loops first or cycle???

Thanks
 

Similar Topics

Hi dear enthusiasts;), I am taking a PLC course where we use Festo PLC (FC660). I did some LDR programming before and not until recently I...
Replies
9
Views
6,760
Hello, I have a problem with AO- and AA-Tags. When I use for example the tag AO_Test with the address 200 and type the value 1,2 in, the AA-Tag...
Replies
7
Views
1,432
As per the title. This might seem like a basic question to many, but I'm unclear about the difference between a coil ( ) and an application...
Replies
28
Views
4,076
Good Morning , I have 2 Frequency Drive panels to build and commission . It is for 2 pump systems . Just wondering , what is the...
Replies
4
Views
1,990
Hi Experts, Good day! What are the differences between PCS7 SIMATIC Batch and PM Control? Do you have any manual like "Getting Started "...
Replies
0
Views
826
Back
Top Bottom