Contents
Beginner

PLC Programming Fundamentals – OTL Instruction

By
Vladimir Romanov
|
July 17, 2018
Table of Contents

Introduction

The OTL, also known as the Output Latch, instruction will force a single bit of logic into a high state if all the conditions leading to it are true. It’s a basic instruction which is powerful but can cause programmers a lot of grief if used improperly or too frequently. This instruction is found on the right side of a ladder logic rung and will switch a bit to a HIGH state once it executes. Unlike the OTE Instruction, the OTL will never turn the bit LOW. In order to make that happen, you can leverage other instructions which accomplish exactly that. That being said, the most common pairing with an OTL is an OTU (Output Unlatch).

Example & Usage of OTL

Here’s a real-world scenario of an OTL instruction:

  1. A Micrologix 1100 Allen Bradley PLC is used to control a process.
  2. A motor contactor is connected to Output 0 (O:o/o of the PLC).
  3. A normally open push button (“System Start”) is connected to Input 0 (I:0/0 of the PLC).
  4. An operator presses the start button.
  5. The XIC instruction is tied to I:0/0.
  6. The OTL instruction is tied to O:0/o.
  7. The OTL instruction energizes the output (O:0/0) while the XIC is TRUE.
  8. The output (O:0/0) remains HIGH when the XIC is released.

Programming example in RSLogix 500:

OTL Output Latch Instruction RSLogix 500

Outcome:
The OTL instruction will energize the output of the PLC which will allow the motor tied to the starter to run. The bit which was energized by the OTL instruction will remain energized after the release of the start button or any other condition tied to the input of the OTL.

Data Types Allowed for OTL

The OTL instruction will work with the following data types within the RSLogix 500 environment:

  • Boolean – The OTL may only set TRUE or 1 or HIGH.

Important Notes

  • Note 1 – The OTL instruction was initially used to set the status of miscellaneous outputs landed on the PLC. However, it may be used on any boolean within the program. In other words, it can energize any boolean within the program. Through this property, programmers can utilize the OTL instruction for a wide range of applications.
  • Note 2 – Although it may seem like a good idea to introduce OTL and OTU instructions for every bit, there’s a catch. Depending on how the code is executed, you may run into scenarios where the logic will depend on the position of your rungs within the program. Avoid using OTL & OTU instructions unless absolutely necessary for the application.

Video Tutorial

Got a question or comment?

Related Tutorials

Beginner

Photo Eye Sensor | How to Wire a Photoelectric Sensor into a CompactLogix Allen Bradley PLC

Learn how to work with photoelectric sensors, understand the basics, how to wire them, how to tie them into various PLCs and field devices and lastly how to troubleshoot them.

April 24, 2020
|
By
Vladimir Romanov
Beginner

PLC Programming | How to Read Ladder Logic

Learn the basics of Ladder Logic, one of the top 5 most popular types of PLC programming languages used in manufacturing environments.

April 7, 2020
|
By
Vladimir Romanov
Beginner

Ladder Logic Symbols | PLC Programming in RSLogix 5000 Studio Allen Bradley

A step-by-step introduction to Ladder Logic symbols. Ladder Logic symbols are foundational elements that are memorized by every plc programmer. They’re essential to know if you plan to do any work with this PLC programming language.

April 8, 2020
|
By
Vladimir Romanov