Back to tutorials
Beginner

PLC Programming Fundamentals – OSF | One Shot Falling | Instruction

By
Vladimir Romanov
|
July 20, 2018
Table of Contents

Introduction

The OSF, also known as One Shot Falling, instruction allows a programmer to create a scenario where an output is energized for a single scan when a transition from a logic HIGH to a logic LOW is detected on the input side of the instruction. The instruction allows an experienced programmer to capture key components based on such a transition and allow a one-time execution of particular bits of logic. This instruction can be found on the right side of a ladder logic rung and has two bits tied into it. One of these bits, labeled as “Output Bit”, can be used elsewhere in the code to energize other instructions when the OSF is enabled.

Example & Usage of OSF

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

  1. A Micrologix 1100 Allen Bradley PLC is used to control a process.
  2. A “Heating Process Start” status is tied to I:0/0.
  3. The F8:0 register is used to read the temperature of the process.
  4. The F8:3 register is used to store the final temperature of the process.
  5. An OSR Instruction is tied to the output of the“Heating Process Start” XIC instruction.
  6. The “Output Bit” of the OSF instruction is used on an XIC instruction in rung “0003”
  7. Once the I:0/0 is pulled LOW, the OSR is executed once.
  8. Once the OSF executes, the “Output Bit” is set to HIGH for one scan of the PLC.
  9. The MOV instruction moves the contents of the F8:0 register to the F8:3 register.

Programming example in RSLogix 500:

Outcome:
The OSF instruction is energized by the “Heating Process Start” condition transitioning from TRUE to FALSE. As soon as this condition is met, the “Output Bit” of the OSF is set to HIGH for a single scan of the PLC. During this scan, the bit allows the MOV instruction to energize through an XIC instruction. The MOV instruction transfers the contents of a register into another at the end of the process.

Data Types Allowed for OSF

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

  • Boolean – The OSF requires two bits to operate. One is called the “Storage Bit” and the other the “Output Bit”. The “Output Bit” should be the only one used outside of the instruction.

Important Notes

  • Note 1 – The OSF instruction requires two non-input boolean bit to function. The “Storage Bit” should not be used anywhere else in the program. The “Output Bit” should be used as a condition to execute other instructions.

Video Tutorial

Back to tutorials

Related Tutorials

Intermediate

PLC Programming Example Project - Batching Tank Ladder Logic PLC and HMI Tutorial

Generally speaking, there are two types of processes in manufacturing: discrete and analog. A discrete process is a manufacturing methodology that will produce separate widgets. In other words, a production line may output one item, two items, three items, etc. An analog production process is where the plant will create a quantity of product that is quantifiable by weight. Examples include the production of beverages, sauces, raw ingredients, etc. Although it is possible to design a flow that will continuously output the product, such production is often managed in batches. It is important to note that although batches are considered to be analog or continuous flow, most of them end up being packaged for consumption which converts them into a discrete manufacturing process.

September 14, 2020
|
By
Vladimir Romanov
PLC Programming Career

PLC Programming Certification - Complete Guide

You may choose to pursue a traditional college degree, learn through online tutorials, or take a course that will issue a plc programming certification upon completion. However, what is the best option, and what are the best PLC programming certifications?

August 6, 2020
|
By
Vladimir Romanov
Beginner

Opto 22 groov RIO Getting Started

The groov RIO module from Opto 22 has been released only a few months ago. The groov RIO is a feature packed piece of hardware that is easy to install, configure and deploy for many different field applications. The module comes pre-loaded with an array of software tools used across the industry and is ready to hit the floor running out of the box. Furthermore, the module is equipped with user configurable input and output nodes that have the capability unlike anything else on the market.

August 2, 2020
|
By
Vladimir Romanov