sequential program implementing

abdel89

Member
Join Date
Mar 2015
Location
Brussel
Posts
16
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?
Replies
16
Views
5,472
Does anyone have any sample of Logix5000 Controllers Sequential Function program to share? I would appreciate very much. I read through the...
Replies
5
Views
3,279
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)...
Replies
0
Views
3,096
Hi there, We have a system at a water treatment plant where large raw water tanks feed into the plant that's all on the same level. At high tank...
Replies
18
Views
3,821
Hi, I started off my career in PLC programming doing water/wastewater on AB around 20 years ago, but then moved overseas a few years later and...
Replies
57
Views
12,208
Back
Top Bottom