Skip to content

This repository contains a PLC program developed using Siemens SIMATIC Manager Step 7 that demonstrates a fundamental control logic: toggling an output state using a single push button. This "one push on, one push off" logic is achieved using positive edge detection to reliably register each button press.

License

Notifications You must be signed in to change notification settings

Krishnaelectrovoltz/One-Push-on-One-Push-off-BASIC-PLC-LOGIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

PLC Logic: One Push On, One Push Off Using Positive Pulse

This repository contains a simple PLC logic project developed using Siemens SIMATIC Manager Step 7. The project demonstrates a basic control logic where a single push button alternates the state of an output (e.g., a light or motor) between ON and OFF with each press, utilizing a positive edge detection (positive pulse).

one.push.on-off.plc.mp4

one push on-off

Key Features

  • Push Button Control: A single push button (input) is used to toggle the state of an output device.
  • Positive Edge Detection: The logic uses a positive edge (rising edge) trigger to detect each push of the button.
  • Toggle Functionality: On the first push, the output turns ON; on the next push, the output turns OFF, and this cycle continues with each subsequent push.

Getting Started

  1. Requirements:

    • Siemens SIMATIC Manager Step 7.
    • Siemens S7-300/S7-400 PLC hardware or PLCSIM for simulation.
  2. Installation:

    • Download Simatic-Manager
    • Open the project in SIMATIC Manager.
    • program the PLC logic or simulate using PLCSIM by using the logic given above.
  3. Usage:

    • Connect the push button to a digital input (e.g., I0.0) and the output device to a digital output (e.g., Q0.0).
    • Run the program and observe the toggling action with each button press.

Project Structure

  • Main Program Block: Contains the logic for positive edge detection and toggling.
  • Documentation: Includes comments and documentation within the code for clarity and understanding.

Contributing

Contributions are welcome! Feel free to fork this repository, make improvements, and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains a PLC program developed using Siemens SIMATIC Manager Step 7 that demonstrates a fundamental control logic: toggling an output state using a single push button. This "one push on, one push off" logic is achieved using positive edge detection to reliably register each button press.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published