RSlogix 5000 Sequence Control

james123

Member
Join Date
Apr 2019
Location
Local
Posts
1
Hi, I am new on RSLogix 5000 programming. Now I am starting a auto machine project and want to control machine process sequentially. I prefer to use a integer to save step number inside. Can anybody guide me through by showing me a sample program?
Thank you very much.
 
I do not have RSL, however, there is no difference to any other PLC in reality, I almost exclusively use an integer as a step sequence, I increment in steps of 10 or more this allows spare values should you need to add an extra step, one of the advantages of using a sequence variable is that you can jump forwards or back with ease.
Here is a sample of a simple sequence but it is done in FBD rather than ladder but should give you some ideas.
 
All sequencers consist of two basic parts: Actions and Transitions.

It's usually best to have some sort of "placeholder" to keep track of where the sequencer is at: an integer representing the current step is good for that, rather than merely driving outputs in some sort of sequential manner. You say you are using an integer, so that's good.

Your sequencer logic will then follow the basic format of:

-[On this step]-----{When these conditions are true}-----(Go to this step)-

Or, perhaps as a sample line:

+---- EQU --+ START_PB +---- MOV --+
---| StepTag |------| |-------| 10 |
| 0 | | StepTag |
+-----------+ +-----------+

Elsewhere, or here, you can also add some logic to drive the specific I/O.
   +---- EQU --+       Motor01
---| StepTag |----+---( )
| 10 | |
+-----------+ |
|
+---- EQU --+ |
---| StepTag |----+
| 20 |
+-----------+


For troubleshooting, I usually prefer to set a bit, "OnStep##", rather than use the EQU as my indicator of what step I'm on, and put all the
EQU StepTag OTE OnStep##
logic at the end.

This allows me to quickly find what happens on step 75 without having to sift through dozens of EQU statements to find what is holding up that step, and to find what I/O that step is driving. Everything I need to know about step 75 is crossreferenced by OnStep75.

But that's a personal preference.
 
Last edited:
I always use a Step_Number, and a Next_Step_Number.

Then on the last rung of code, If Step_Number NEQ Next_Step_Number - MOV Next_Step_Number to Step_Number.

That way I can hold or pause sequences easily, if for example there is a fault.

Cheers

Mark
 
Welcome to the forum.
i do not have an example program, but may i suggest the following.
try this example.
from your house, what are the steps necessary to get to work?
write down the basics, then expand, and expand again.
start.
1. did the alarm clock go off? yes, step 2
2. turn off alarm - step 3
3. get out of bed. - step 4
4. i am guessing here go to bathroom......

do you see my pattern?
each step details what you do, the next step requires a permission to be incremented.

other examples are going to the grocery store.
starting a car. - more to it than you think.
regards,
james
 
I always use a Step_Number, and a Next_Step_Number.

Then on the last rung of code, If Step_Number NEQ Next_Step_Number - MOV Next_Step_Number to Step_Number.

That way I can hold or pause sequences easily, if for example there is a fault.

Cheers

Mark

I do similar, except I have at the top, before the first step, so I have a one scan delay. That gives the ability to use a step in other programs if necessary.
 
Another often used way is a main sequence & a sub sequence but that can get a little messy for coders who are starting out.
 

Similar Topics

All, I've done a search on this but did not have any luck, but if I have overlooked a topic on this by all means let me know. I am a little...
Replies
11
Views
5,335
Hello all, I have not used many timers in logix and was wondering what is the best method to do the following? I would like to start an agitator...
Replies
5
Views
2,634
I am taking my first attempt at modifying a program on our little bottling machine. We need to automate a sequence to purge the tank on the...
Replies
2
Views
4,819
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
Back
Top Bottom