What is RSLogix 5000? RSLogic 5000, PLC programming tutorial for beginners

What is RSLogix 5000

The RSLogix software is programming software that can be used with all the Logix controllers. This software helped many programmers to reduce the cost of development and the ability to reuse the codes. In this software, tags are used as reference memory locations and there is no physical address in this software, instead, it uses tags. It is the major difference from the previous ones and tags are pure textbase addressing schemes. So in order to use this software, we must understand the tag database.

image

In the controller organizer, there are many important components for the PLC programming. We can see the controller tags, so in RSLogix 5000 the tags are used to refer the memory location and there is a fault handler that will execute in case of faults. The task is an important part that is used to create a PLC program. So there is multiple tasks in it like the main task, ST routines, etc. These tasks could be periodic or scheduled. We could know it by checking the properties of the task. Some task would be periodic and there would be time shown in it like 15ms that means it would restart after the 15ms.

To add a new program right click on the main task then we would be able to add a new program and we can also add a new equipment phase. As the sub of the main task, we can see the main program so we could know if it is scheduled or unscheduled by checking its properties. So the scheduled program will run and the unscheduled won’t. The execution of the program will be sequential. If we click on the main program then we can see different tasks and we can add routine as we need, routine is a code for the program.

image

We can select different types of programming languages in this as you can see in the image. So we can create a ladder diagram which is our main program. So we can select the ladder diagram and click OK then click on the routine then a new page will appear which shows END, on its left side which you can see in the below image. This END is the default state of the last rung. We can delete the rung if we need and this is the important part of the ladder logic program. The Rung can connect the input side to the output side

1. Start 2.Task 3. Routine 4. Programming language type 5.Rung

In the tag section, it shows as undefined so we need to right-click the input tag and specify the tag. Select the data type that you need for the program.

image

According to the instruction type we need to select the data type. Select the scope according to your program. The tag would be specific to a program or it could be a PLC scope. So if it is specific to a program, then the tag must be specified within the four-loop instruction, so it can only be used in the four-loop. If it is specified at the global level then it can be used on the PLCs. After doing all this click the create button and we must do the same for the output tag. After that test the configuration of the rung by clicking the accept pending program edits then a pop-up would appear on the screen. After that click, the main on the top left side and we can see the main routine is scheduled on the main task. Then double click on the main then we can see certain instructions that specify the routine names

After that add the test routine to the rung, so in order to do that select the bottom rung and after that copy the instruction and paste it on the rung. So by doing this we can test the routine. By clicking the tabs on the bottom we can test the routine and the bars would be green that shows that this instruction is being executed by the PLC, and this is shown in the below image.

image

We can change the boolean value of the input tag so that it could influence the output tag. By clicking the parameters and local tag which can be seen below the main program. Then we can see all the program scoped tags in the specific program. So if we change the input the out will change too. So if we change the input tag then it will influence the output tag.

So during the execution, if the main routine is called then it will execute the rungs step by step until it reaches the end rung. After that, it will go the next instruction and the rung execution takes place just like before, and that’s the way the PLC will execute the logic.

What are the features of RSLogix 5000

• It is really flexible and easy to use, it has editors which are very capable of drag and drop editing

• Integrated process control

• Robust specialized instruction set

• Integrated motion capabilities

• It has powerful data editor and superior diagnostic capabilities

• For programming multiple languages can be used and it can also be connected to RSMACC

• It can be used to program different control disciplines and we can also reuse the program