sequential program implementing

Hi Experts,


I would like to ask about sequential programming in PLC and particulary in Step7, i know there is internal coils interlock methods in side and wich is for very simple programs, but there is also thd S7-Graph in the other side wich is non recommended from many plc programmers.

Actually i can use the two methods, but what if the program was long ? I've heared that there is also the jump distributor wich is based on a byte wich contains a number for specific step, and there is another method based on integer for step indicating with use of MOVE instruction to step forward the sequence.


Could any body put a simple program with only 3 steps to introduce me to the two last methods described above? I appreciate any comments or help to this thread.

Thanks in advance!
 
in STL like I do it like this

In STL I do it like this:

L #STEPNR
L 1
==I
JCN NO1

// ACTIONS
SET
= Q0.0

// TRANSITION
A I0.0
JCN NO1
L 2
T #STEPNR

NO1: NOP0


But instead of an integer #STEPNR, you can also make an array of bits...

Like this:

A STEP.index[1]
JCN NO1

// ACTIONS
SET
= Q0.0

// TRANSITION
A I0.0
R STEP.index[1]
S STEP.index[2]

NO1: NOP0
 
I don't think there's a real good reason to use any vendor specific sequencing instructions or methods. A simple move with the desired step number into an integer memory location usually works quite well and is easy to follow. Of course everyone has their own favorite methods.
 
If you have Step7 graph- why not use it? It's very easy
Go through the quick start guide installed with graph. Don't be scared :)
 
I don't think there's a real good reason to use any vendor specific sequencing instructions or methods. A simple move with the desired step number into an integer memory location usually works quite well and is easy to follow. Of course everyone has their own favorite methods.

I'm also a fan of the integer step method.

I would avoid something like a jump distribute. I try to avoid jumps when I can. I'd usually rather see the code execute as false than wonder why it is greyed out (because I jumped over it).
 
If you have Step7 graph- why not use it? It's very easy
Go through the quick start guide installed with graph. Don't be scared :)
I second this
Fault finding is a breeze when using graphcet (SFC). And it creates logical structure in a sequential program
 

Similar Topics

Which of the two types of PLC programs do you use more often at work?
16
Replies
7,143
Views
Does anyone have any sample of Logix5000 Controllers Sequential Function program to share? I would appreciate very much. I read through the...
5
Replies
3,931
Views
Can't Quite get my head round programing a sequence. For example I have a Cyclinder. It has say 3 positons. PX1 PX2 PX3 ( PX is for Proximity)...
0
Replies
3,557
Views
Hi.We have a program that uses three pumps operating sequentially. This program activates and deactivates the pumps sequentially as needed. We...
1
Replies
335
Views
This application assumes four motors represented by four pilot lights on the trainer unit. A pushbutton START switch is used to start a sequence...
3
Replies
1,180
Views
Top