O'Reilly logo

Instant PLC Programming with RSLogix 5000 by Austin Scott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code generation (Advanced)

Often, there is a need to duplicate the same logic many times, but with different variable tags. This can be easily accomplished in Logix5000 using Notepad and a simple code generation trick (of the true Logix5000 masters).

Getting ready

In order to complete this recipe, you will need to have completed the previous recipe on Functional Block Diagrams.

How to do it...

  1. First, we will open our existing Ladder Logic Routine using Controller Organizer and double-clicking on the VALVES routine.
  2. Select both the valve rungs and copy them to the clipboard by clicking on the numbers 0 and 1 while holding Ctrl and then right-clicking on the rung and selecting Copy Rung (or pressing Ctrl + C).
  3. Next, open Notepad and paste the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required