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: PLC SCL Program for Marking Machine
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 > PLC SCL Program for Marking Machine

PLC SCL Program for Marking Machine

Learn how to program a marking machine using SCL (Structured Control) language. Understand the components and logic behind this process.

Last updated: December 16, 2024 10:02 am
Viral Nagda
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

In this post, we will write a sample logic for a marking machine using SCL (Structured Control Language) language.

Contents
Marking MachineProgram InterlocksInputs and OutputsPLC SCL Program

Marking Machine

Let us first understand the case scenario. Refer to the below image. There are the following components used – start push button, stop push button, conveyor, bottle sensor, cylinder, cylinder up sensor, and cylinder down sensor.

The conveyor is a DOL starter. When the user presses the start button, the conveyor starts to run at a fixed speed (because there is no VFD). The conveyor is carrying bottles on it. When a bottle is sensed near the bottle sensor point, the conveyor stops.

The bottle comes just below the cylinder. When the cylinder up position is active, then the cylinder comes down till the down sensor is sensed. When the down sensor is sensed, after a time delay, the cylinder moves up until the up sensor is sensed. When the up sensor is sensed, the cylinder output stops. After a time delay, the conveyor starts again and the cycle continues.

Program Interlocks

Following are the interlocks for running the conveyor – the up sensor must be sensed, the conveyor must be healthy and not tripped, and the bottle sensor must not be sensed.

If any of the above conditions fails, then the conveyor will not run.

Following is the only interlock for operating the cylinder – the conveyor should be in stop condition.

Inputs and Outputs

Following are the PLC IO’s according to our requirement:

  1. Digital inputs – start PB, stop PB, conveyor run feedback, bottle sensor, up sensor, and down sensor.
  2. Digital outputs – conveyor and cylinder.
Marking Machine

PLC SCL Program

Let us write the logic now. We are using Rockwell PLC (Studio 5000) for practicing this. Refer to the below image. We will now study the logic line by line and see how it is in line with our requirements.

First, we will write the logic for interlocking the conveyor. As you can see, if the system is not running or there is no up sensor or the conveyor is tripped or the bottle is sensed, then the conveyor will not run.

Secondly, we will write the logic for interlocking the cylinder. As you can see, if the system is not running or the conveyor is on, then the cylinder will not operate.

PLC SCL Program for Marking Machine

Next, we start and stop the system according to the push buttons pressed. On pressing start, we latch the system running bit, and on pressing stop, we unlatch the system running bit.

Then, we start the conveyor. If there is no conveyor interlock, then the conveyor will turn on, else it will remain off.

Now, we have to stop the conveyor from sensing a bottle. So, as the bottle is sensed, we turn on a bit named bottle sensed and stop the conveyor written earlier. You can see in the first image the distance between bottle sensor and cylinder. This is because the conveyor will not stop immediately; it will take 2-3 seconds. So, the cylinder is placed in the position where the bottle will reach exactly after stopping the run command of the conveyor.

Now, we operate the cylinder in the down direction after a delay of 5 seconds. So, if there is no cylinder interlock present and the bottle is sensed and the down sensor is not active, then we take the cylinder down.

When the down sensor is sensed, then we turn on a bit named down sensed for turning off the cylinder down action.

Now, we operate the cylinder in the up direction after a delay of 5 seconds. So, if there is no cylinder interlock present and the bottle is sensed and the down sensor is sensed and no up sensor is sensed, then we take the cylinder up.

When the up sensor is sensed, then we turn on a bit named up sensed for turning off the cylinder up action.

With this action, after a delay of 5 seconds, we reset all the logic and restart the conveyor once again to mark the bottles by cylinder action.

In this way, we saw how to write a PLC program for a marking machine using SCL.

Read Next:

  • PLC Program for Sequential Motor Control
  • Sequential PLC Program Pneumatic Valve
  • PLC Program for Water Level Control Logic
  • Structured Text PLC for Sequential Process
  • Write a PLC Program for Selector Machine
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 !
VFD Simulator Download – Free Yaskawa V1000 Software
Edge Detection in PLC Programming
Batch Mixing with PLC Ladder Logic Program
Siemens S7-300 CPU Suffix Explanation
Concept of Interlocking in PLC
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

PLC Program to control level of parallel tanks

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial

Automatic Lamp Control in Storage Facility

PLC Program for Automatic Lamp Control in Storage Facility

CODESYS HMI Interface

CODESYS HMI Interface

0-10 VDC to 0-20 mA Conversion

How to Convert Voltage to Current using Resistor ?

4 TO 20 MA ANALOG CURRENT SIGNALS

Basics of 4 to 20 mA analog Signals

Quiz on Electrical Meters and Measurement

200+ Quiz on Electrical Meters, Measurement, and Troubleshooting

In this article, we will learn the difference between Machine Expert Basic and Machine Expert software in Schneider PLC.

Difference between Machine Expert Basic and Machine Expert – Schneider PLC

PLC Programmer Tools

Tools Required for PLC Programmer to Carry at Site

More Articles

The Importance of Supply Chain Collaboration

The Importance of Supply Chain Collaboration

How to Choose HMI

How to Choose a Suitable HMI for Your Application?

Feedback Characteristics of Control Systems

Feedback and Non-feedback Systems Objective Questions

Door Locking System - PLC Applications Examples

Door Locking System – PLC Applications Examples

Manchester encoding

Foundation Fieldbus Electrical Parameters

Deluge Valve Operation using Solenoid Valve Animation

Deluge Valve Operation

PRV

Direct-actuated Safety and Relief Valves

PLC Raw Count Calculation formula for Pressure Transmitter

PLC Raw Count Calculation for Pressure Transmitter

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?