Siemens S7 300 Timers and counters

usman

Member
Join Date
Oct 2008
Location
UAE
Posts
44
Hello friends I am new in this field I try to set and up counter in S7 300 station.Its count but counter not stop on the preset veluve.Can any one give me some help about that
 
Hello Usman;

I have got to admit that the S_CU instruction can be confusing. It is an old S5 left-over.
Here is the way Siemens explains the use of the S-CU counter up instruction:

  • S_CU (Up Counter) is preset with the value at input PV if there is a positive edge at input S.
  • The counter is reset if there is a "1" at input R and the count value is then set to zero.
  • The counter is incremented by one if the signal state at input CU changes from "0" to "1" and the value of the counter is less than "999".
  • If the counter is set and if RLO = 1 at the inputs CU, the counter will count accordingly in the next scan cycle, even if there was no change from a positive to a negative edge or viceversa.
  • The signal state at output Q is "1" if the count is greater than zero and "0" if the count is equal to zero.
So basically you are right, the counter never examines if CV=PV. You have to do that yourself. Here is one way you could do it (see attachment).
An easier way to implement counters can be found in the System Function Blocks, under SFB0. Have a look at the online help.
Hope this helps,
Daniel Chartier

S_CU.JPG
 
Hi d chartier its again me usman need more help about this S_CU give little more explanation because you know it is my first experience with PLC.

Thanks and regard
Usman
 

Similar Topics

Hello, I need to be able to write time directly to a Siemens TON SFB4 timer. How can I do that through Wonderware Intouch using DasSiDirect...
Replies
2
Views
4,749
Hi all, Hoping you can help me with this little problem in Ladder. I use Siemens S7-300 cpu’s for machine control. The process our machines have...
Replies
17
Views
23,470
Hello all. I have an ESA HMI that is connected to a Simatic S7-300 (CPU312). I have uploaded the program from the PLC which is written with Step7...
Replies
6
Views
1,451
Hello. There is a problem with Siemens S7 300. We got a replacement PLC but it does not run the program from the MMC. The new PLC is dated 2011...
Replies
3
Views
694
Hi to all, Our company does not usually use Siemens PLCs, but have a press with one in it. We are trying to change the IP address in our Simatic...
Replies
2
Views
1,070
Back
Top Bottom