Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Positive and Negative Edges using Statement List Language
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Positive and Negative Edges using Statement List Language

Positive and Negative Edges using Statement List Language

Learn the falling positive and negative edges instructions in the statement list (STL) language in PLC programming.

Last updated: September 28, 2022 2:23 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Hello guys and welcome back with another STL lesson, here is a series for you that illustrate basic knowledge for Statement list language that introduced for SIEMENS PLCs, and it is also the same as Instruction List language which is an IEC standard language.

Contents
Positive Edge InstructionNegative Edge InstructionFalling Negative using STLFalling Positive using STLApplication for Using FP & FN Instructions

 So, if you are interested in this language you can check the previous articles:

  1. Converting LAD Networks to STL Language
  2. SET, RESET and Assign Instructions

Today we will be more familiar with this language by learning another important instruction in PLC programming which is Negative and Positive edges.

How does these instructions work? and what it can make for us? and how to perform these instructions using STL language? that what we are going to discuss so please keep focus.

What is the function of Positive & Negative Edges?

First of all, we have to functionally define these instructions:

Positive Edge Instruction

Positive Edge Instruction detects and waits till the Monitored signal is changing from “false to true” then this instruction fires a bit to be true for just one scan cycle and returns to zero again.

Negative Edge Instruction

Negative Edge Instruction detects and waits till the Monitored signal is changing from “true to false” then this instruction fires a bit to be true for just one scan cycle and returns to zero again.

Positive and Negative Edges using Statement List Language

Falling Positive & Negative by STL Language

Falling Negative using STL

Format

A <Input Bit>

FN <Bit>

Description

FN <Bit> (Negative RLO edge) detects a falling edge when the RLO transitions from “1” to “0”, and indicates this by RLO = 1.

During each program scan cycle, the signal state of the RLO bit is compared with that obtained in the previous cycle to see if there has been a state change.

The previous RLO state must be stored in the edge flag address (<Bit>) to make the comparison. If there is a difference between the current and previous RLO “1” state (detection of falling edge), the RLO bit will be “1” after this instruction.

Falling Positive using STL

Format

A <Input Bit>

FP <Bit>

Description

FP <Bit> (Positive RLO edge) detects a rising edge when the RLO transitions from “0” to “1” and indicates this by RLO = 1.

During each program scan cycle, the signal state of the RLO bit is compared with that obtained in the previous cycle to see if there has been a state change.

The previous RLO state must be stored in the edge flag address (<Bit>) to make the comparison. If there is a difference between the current and previous RLO “0” state (detection of rising edge), the RLO bit will be “1” after this instruction.

Application for Using FP & FN Instructions

In the below video, we explained the basic example and application usage of falling positive and falling negative instructions using a conveyor simulation.

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Types of PLC Scan Time
  • Do’s and Don’ts in PLC
  • S7 Connection PUT & GET Instructions
  • Controlling of Tank Level with PLC
  • Isolators and Barriers in Electrical Panel
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !
Proper Earthing Practices Used for PLC Control Panel
Automatic Car Washing using PLC
PLC Data Comparison Instructions
PLC Logic for Analog Alarms using Functional Block Diagram
VFD Commissioning and Testing Procedure (Variable Frequency Drive)
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

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

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Siemens TIA Portal program blocks

Tia Portal – Optimized and Standard Data Block Access

How to Program Sequential Outputs in PLC

Timer-Based Sequential PLC Program with One Button

What is a Network Switch?

Network Switch Requirement in SCADA and DCS Architecture

Cybersecurity in PLC

Cybersecurity in PLC

Simulating Level Sensor and the Pump Logic in PLC

PLC Basics – Manual Control, Closed Loop, ON-OFF with Hysteresis

Multi Way Switches using PLC

Making Multi Way Switches using PLC

How to Prevent Ground Loops in Analog Circuits?

How to Prevent Ground Loops in Analog Circuits?

One Shot Rising PLC Example Program

One Shot Rising PLC Example Program

More Articles

What Do You Learn in Software Engineering

What Do You Learn in Software Engineering?

Transmitter Identification Codes

Instrument Identification Tags

Rotary Granulator Drive

Rotary Granulator Drive Root Cause Analysis (RCA)

DC Motor Action

DC Motor Speed

Hybrid Solar Power System

Difference Between Normal Inverter and Solar Inverter

Derivation-of-Ohms-Law

Basics of Ohm’s Law

Brushed DC Motor Working Animation

Brushed DC Motor Working Animation

Advantages and Disadvantages of Squirrel Cage Induction motor

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?