s7 200 question

vinuvinod

Member
Join Date
Nov 2003
Posts
9
dear plc friends
i am in process of learning plc programming.can any one help me to make a small program to operate one out of two pumps alternately.With first start up pump1 should come on and pump2 off.during next start pump2 on and pump1 off.inputs available are ON and OFF push buttons.I hope someone out there will respond.type of plc is siemens s7 300 or s7 200
 
vinuvinod,

There are many way to do this. It is often called a "flip-flop", or an "alternator". Here is how to do it in two rungs using Siemens S7 (I0.0 = PUMPS ON PUSHBUTTON, I0.1 = PUMPS OFF PUSHBUTTON, MO.0 = PUMP 1 RUN, MO.1 = PUMP 2 RUN, Q0.0/1 = FLIP_FLOP

NETWORK 1:
LDN I0.1
LD I0.0
O M0.0
ALD
AN M0.1
= M0.0
S Q0.0, 1

NETWORK 2:
LDN I0.1
LD I0.0
A Q0.0
O M0.1
ALD
AN M0.0
= M0.1
R Q0.0, 1
 
Last edited:

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
73
We have a Simatic S7-200 6ES7 214-1B01-0XB0 (relay output) that has a bad output. I want to reprogram to use an open output. I still have an old...
Replies
6
Views
1,192
Hello all, I've been working on a siemens PLC system using an S7-1200 and a KTP400 Basic HMI. Essentially this system takes in some setup...
Replies
3
Views
1,379
[0]https://i.hizliresim.com/DVSyYd.jpg[/img] Can you write the ladder program of the time diagram?
Replies
8
Views
1,852
Hello, Looking at the paper version of a chinese S7 200 Smart program that I will need to manually convert I have a question about the use of...
Replies
0
Views
1,374
Back
Top Bottom