We will add some logic to “Program File 3”.
This file will be used to execute logic for scaling analog inputs.
To scale an analog input, we will call on “Program File 3” to execute. We can say that “Program File 3” acts as a subroutine.
We will “call” or “jump to” the subroutine logic from other parts of the ladder program, whenever we need to scale an analog input.
In “RSLogix”, program files other than the “Main Program” do not execute on their own. They must be “called” from the main program using a “Jump to Subroutine”, or “JSR”, instruction.
We want to call JSR instruction every time the main program executes, so we do not add any input logic which wou...
In the previous section, we showed you how to document addresses, rungs, and program pages and how to generate a simple report.
There are other documentation features that are very powerful.
In the project tree,
“Rung Comments/Page Title” Editor: Each of the entries that we entered in the pr...
We will introduce three new bit instructions and how a logic branch is executed.
We will program a couple of rungs to demonstrate some common bit functions that will be used in the next example program.
These instructions can be found in the “BIT” tab of the instruction selection window.
One...
2 Comments