small prog.writing with S7-300 plc

tulip

Member
Join Date
Oct 2005
Location
ist
Posts
236
I want to make a small prog.with S7-300.There is an elevator.Upstroke output is a Q4.0 and downstroke is Q5.0.Normally elevator is up and down one time.But if I want two times up and down move for elevator ( I will use a selector key for this )How can I success very simply?Thanks is advance..

Old prog.is;

A M3.3
=Q4.0 // Elevator is upstroke

A M3.3
A I2.7 // Limit switch spiral carriage up
S M3.4
R M3.3

A M3.4
=Q5.0 // Elevator is downstroke
 
Response

the simplest way, in my opinion, is to create a loop for the program displayed above, at the end of the program you select a variable V that is incremented any time the program in the loop is executed. In the front of this you put an equal comparation: V and 2, if =, then the loop is stopped, else run the loop.
in extension, for a given number of repeats you modify only the input of comparator.
 
Thanks a lot for response.I solved problem.I used a down counter for this.the M3.3 set counter with value 2. When the elevator go down than count is decrease one .Until the counter is zero elevator will go up and down.When the counter is equal to zero than program skips to next step.
 

Similar Topics

...and I agree. Context: TIA Portal/HMI = KTP1200 (12" screen) In the attached redacted image, the values in the white boxes are entered by the...
Replies
10
Views
678
Hi all, I’m new to programming and want to write a simple routine. Push start button, turns on sensor. 2 second delay before anymore logic read...
Replies
1
Views
325
Hi! I'm wondering if PLCs are used for small-scale production. I've got four machines doing different things with textiles, and I'm exploring the...
Replies
16
Views
1,326
I am looking at an application where I will need to detect small hairline cracks in stamped metal parts. The sensing will need to be done in the...
Replies
10
Views
1,115
Anyone know what the little green triangle on SCREEN 3 means ? See picture Thanks
Replies
2
Views
447
Back
Top Bottom