simatic S7 Help

sayahan2003

Member
Join Date
Jun 2006
Location
Calgary
Posts
185
Dear Friends,
Pls tell me what is the problem of the following ladder? it ask me to add some logic in network 4 but i dont want to do like this. i want to use MCR and just activate and deactivate some coil.
reza2.jpg
 
Last edited:
Hello sahayan;

Step 7 does not allow an unonditionnal coil assignment on a network:

Coil_Assignment.jpg


As Marshy point out, you need a preceding logic input on the network; minimum an "Always ON" bit will do. You can create this bit in OB100, for example.

Hope this helps,
Daniel Chartier
 
thank you for your help.
But can you tell me why i have to create this "always on" bit in OB100? i mean, i must create it in special OBs?
 
Hello sahayan;

Just a matter of covenience. OB100 is the cold restart OB, it is a good place to initialize your program variables if required. Setting the "Always ON" and "Always OFF" bits there means they will be set once, and remain in their initial state as long as I need them
You could use OB1, or use a FCx block to initialize them, but OB100 is easier.
Hope this helps,
Daniel Chartier
 
I prefer to put the Always_on and Always_off bits in some cyclically scanned code.
You risk that they gets messed up by some other error.
For example overlapping words (writing to MW10 writes to all bits M10.0 .. M11.7, MD10 writes to all bits M10.0 .. M13.7 etc).
Or if the bits are changed from an HMI.
Or some indirect adressing gone wrong.
 
Sorry for being unclear.

If you set the always_on and _off bits in one of the startup OBs, then they can be modified by some of the mentioned errors.
If you set the bits in some cyclically scanned code then they will be set back to the right values.
It is not a guarantee against problems, because the faulty code can be scanned later in the program. But it is better than just setting the bits once.

I hope that it makes sense.
 

Similar Topics

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,066
Hi all, Got a call from a client that has several small water systems, asked me to take a look at one I've never programmed, just troubleshot a...
Replies
22
Views
5,950
I had a system running WinCC v7.0 SP3 and SIMATIC Net V8.1 SP2. The WinCC Runtime project was reading symbolic tags (e.g. D435.HMIVars.Start) from...
Replies
1
Views
1,676
If anyone knows how to connect Wonderware to a Siemens S7-400 please let me know.
Replies
5
Views
2,004
Hello All, I have a system of 2 PLCs Siemens CPU 315 - 2PN/DP (with a program Simatic S7 V5.5) and PC station runs Siemens OPC server Simatic net...
Replies
20
Views
7,301
Back
Top Bottom