By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Automation CommunityAutomation Community
  • PLC
  • Automation
  • Instrumentation
  • Calibration
  • Electrical
  • Courses
    • Siemens PLC Course
    • Allen Bradley PLC Course
    • InTouch SCADA Course
    • WinCC SCADA Course
    • Siemens Tia Portal
    • Omron PLC Course
    • Advanced PLC Course
Search
  • Customize Interests
  • My Bookmarks
© Automation Community. All Rights Reserved.
Reading: PLC Instructions
Share
Notification Show More
Font ResizerAa
Automation CommunityAutomation Community
Font ResizerAa
  • PLC
  • Automation
  • Instrumentation
Search
  • PLC
  • Automation
  • Instrumentation
  • Calibration
  • Electrical
  • Courses
    • Siemens PLC Course
    • Allen Bradley PLC Course
    • InTouch SCADA Course
    • WinCC SCADA Course
    • Siemens Tia Portal
    • Omron PLC Course
    • Advanced PLC Course
Follow US
© 2023. All Rights Reserved.
Automation Community > Blog > PLC > PLC Instructions
PLC

PLC Instructions

Editorial Staff
Last updated: 2023/04/29 at 8:01 AM
Editorial Staff
Share
10 Min Read
SHARE

In this article, you will learn the types of PLC instructions such as input, output, timer, counter, data manipulation, and program control instructions.

Contents
Types of Instructions in PLCPLC Input InstructionsPLC Output InstructionsPLC Timer InstructionsPLC Counter InstructionsPLC Data Manipulation InstructionsPLC Program Control InstructionsPLC Communication Instructions

Programmable logic controllers (PLC) are used to automate a wide range of processes and systems in many different industries. PLCs contain a central processing unit (CPU) that reads input from sensors, performs logic operations based on a program stored in memory, and sends output to actuators to control processes or equipment.

Types of Instructions in PLC

PLC Instructions

There are many different types of instructions that can be used in a PLC program, including:

  1. Input instructions: These instructions read the status of input devices, such as sensors or switches, and store the data in memory.
  2. Output instructions: These instructions control output devices, such as motors or valves, based on the data stored in memory.
  3. Timer instructions: These instructions allow the PLC to perform a specific action after a certain time period has elapsed.
  4. Counter instructions: These instructions allow the PLC to perform a specific action after a certain number of events have occurred.
  5. Data manipulation instructions: These instructions allow the PLC to perform arithmetic operations, compare data values, or move data from one location in memory to another.
  6. Program control instructions: These instructions allow the PLC to branch to a different part of the program, skip over certain instructions, or repeat a section of the program.
  7. Communication instructions: These instructions allow the PLC to communicate with other devices, such as computers or other PLCs, over a network.

PLC Input Instructions

The input instructions typically used in a PLC program include:

  1. On/off input instructions: These instructions read the status of a single input point and store it in a memory bit as either a 1 (on) or 0 (off).
  2. Pulse input instructions: These instructions count the number of pulses received at an input point over a certain time period.
  3. Analog input instructions: These instructions read the value of an analog input, such as a temperature or pressure sensor, and convert it to a digital value that can be stored in memory.
  4. Encoder input instructions: These instructions read the position of a rotary encoder and convert it to a digital value that can be stored in memory.
  5. Data input instructions: These instructions allow the PLC to read data from an external device, such as a barcode reader or RFID reader, and store it in memory.

Input instructions are typically used at the beginning of a PLC program to read the status of input devices and store the data in memory for use in subsequent logic operations.

PLC Output Instructions

The output instructions typically used in a PLC program include:

  1. On/off output instructions: These instructions control a single output point and set it to either an on or off state based on the value of a memory bit.
  2. Pulse output instructions: These instructions generate a certain number of pulses at an output point over a certain time period.
  3. Analog output instructions: These instructions convert a digital value stored in memory to an analog signal that can be used to control an analog output device, such as a motor or valve.
  4. Encoder output instructions: These instructions convert a digital value stored in memory to an encoded signal that can be used to control a rotary encoder or another device.
  5. Data output instructions: These instructions allow the PLC to send data to an external device, such as a display or printer, based on the data stored in memory.

Output instructions are typically used at the end of a PLC program to control output devices based on the results of the logic operations performed by the program.

PLC Timer Instructions

Timer instructions typically include:

  1. On-delay timer instructions: These instructions start a timer when a specified input condition is met, and set a memory bit to 1 when the timer reaches a certain value.
  2. Off-delay timer instructions: These instructions start a timer when a specified input condition is met, and set a memory bit to 0 when the timer reaches a certain value.
  3. Retentive timer instructions: These instructions start a timer when a specified input condition is met, and store the elapsed time in a memory location when the timer is stopped.
  4. Pulse timer instructions: These instructions generate a pulse of a certain duration at a specified output point after a specified input condition is met.

Timer instructions are often used to introduce delays into a PLC program or to control the duration of an output signal.

PLC Counter Instructions

Counter instructions typically include:

  1. Up counter instructions: These instructions increment a counter value stored in memory each time a specified input condition is met.
  2. Down counter instructions: These instructions decrement a counter value stored in memory each time a specified input condition is met.
  3. Up/down counter instructions: These instructions can either increment or decrement a counter value stored in memory, depending on the specified input condition.

Counter instructions are often used to keep track of the number of events or cycles that have occurred in a process, or to control the frequency of an output signal.

PLC Data Manipulation Instructions

Data manipulation instructions typically include:

  1. Arithmetic instructions: These instructions allow the PLC to perform basic arithmetic operations, such as addition, subtraction, multiplication, and division, on data stored in memory.
  2. Data move instructions: These instructions allow the PLC to move data from one memory location to another, or to transfer data between the PLC’s memory and an external device.
  3. Data compare instructions: These instructions allow the PLC to compare the values of two memory locations and set a memory bit to 1 if the values are equal, or 0 if they are not.
  4. Data search instructions: These instructions allow the PLC to search through a series of memory locations and set a memory bit to 1 if a specific value is found, or 0 if it is not.

Data manipulation instructions are often used to manipulate data stored in the PLC’s memory or to perform calculations based on input data.

PLC Program Control Instructions

Program control instructions typically include:

  1. Jump instructions: These instructions allow the PLC to jump to a different part of the program based on the value of a memory bit or the result of a comparison.
  2. Call instructions: These instructions allow the PLC to execute a subroutine or block of instructions that is stored at a different location in the program.
  3. Return instructions: These instructions allow the PLC to return to the main program after executing a subroutine.
  4. Repeat instructions: These instructions allow the PLC to repeat a block of instructions a certain number of times, or until a certain condition is met.

Program control instructions are often used to create conditional statements or loops in a PLC program.

PLC Communication Instructions

Communication instructions typically include:

  1. Network instructions: These instructions allow the PLC to send and receive data over a network, such as Ethernet or Modbus.
  2. Serial instructions: These instructions allow the PLC to send and receive data over a serial communication link, such as RS232 or RS485.
  3. File instructions: These instructions allow the PLC to read and write data to a file, such as a CSV or XML file, stored on an external device.
  4. Database instructions: These instructions allow the PLC to read and write data to a database, such as MySQL or Oracle, stored on an external device.

Communication instructions are often used to exchange data with other systems or devices or to store data for later analysis.

Read Next:

  • Troubleshooting Relay
  • PLC and DCS Systems
  • Yokogawa Centum DCS
  • History of Automation
  • PLC Software Details

You Might Also Like

DNP3 Communication – Distributed Network Protocol 3

Instrumentation Insights: Exploring Safety Integrity Level (SIL)

Safety PLC Interview Questions and Answers

PLC Hardware Questions and Answers – Automation Systems

Electrical Circuit Breaker Questions and Answers

TAGGED: PLC, Programmable Logic Controller

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn
Share
Previous Article Difference Between PLC and DCS Systems Difference Between PLC and DCS Systems
Next Article H2S Gas Detector Calibration Procedure H2S Gas Detector Calibration Procedure
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

120.5k Followers Like
10.1k Followers Follow
90.6k Subscribers Subscribe

Latest Articles

SNMP_question_and_answers
SNMP Questions and Answers
Automation August 25, 2023
Zigbee_question_and_answers
Zigbee Questions and Answers
Automation August 24, 2023
Z-Wave Questions and Answers
Z-wave Questions and Answers
Automation August 23, 2023
konnex_questions_and_answers
KNX (Konnex) Questions and Answers
Automation August 22, 2023
USART Protocol Questions and Answers
Automation

USART Protocol Questions and Answers

USART stands for Universal Synchronous/Asynchronous Receiver/Transmitter. It's a kind of protocol used…

Padmini Devi By Padmini Devi August 9, 2023
How to Troubleshoot a Relay
PLC

Relay Circuits – How to Troubleshoot a Relay?

In this article, you will learn the basic relay circuits and how…

Editorial Staff By Editorial Staff January 12, 2023
Instrument Calibration Questions and Answers
InstrumentationCalibration

Instrument Calibration Questions and Answers

In this question-and-answer guide, we will explore some common questions related to…

Editorial Staff By Editorial Staff May 1, 2023
Ethernet Questions and Answers
AutomationElectricalElectronicsInstrumentationPLC

Ethernet Questions and Answers

Discover valuable insights into Ethernet with our comprehensive collection of questions and…

Editorial Staff By Editorial Staff June 7, 2023
Poka-Yoke Assembly Table
PLC

PLC Programming for Poka-Yoke Assembly Table

In this article, you will learn the PLC programming for Poka-Yoke assembly…

Sharique Anwar By Sharique Anwar March 14, 2023
Difference Between PLC and Personal Computer
PLC

Difference Between PLC and Personal Computer

In this article, you will learn the difference between PLC and personal…

Editorial Staff By Editorial Staff January 18, 2023
Show More
//

We provide resoucres to million users and we are the number one business and industrial automation news network on the planet

Quick Link

  • Customize Interests
  • My Bookmarks

Top Categories

  • PLC
  • Automation
  • Instrumentation

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”847″]

Follow US
© 2023 All Rights Reserved. Supported by Inst Tools.
login
Welcome Back!

Sign in to your account

Lost your password?