Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC SCL Program for Marking Machine
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
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 !

Continue Reading

PLC Counter Instructions
Instrumentation Engineer Activities & Documents – Detail Design Phase
Elevator PLC Ladder Logic
Steps in PLC System Design
Toggle Switch & Sensor: Conveyor and Puncher PLC Program
What is a Tower Lamp? – Light Tower in Industrial Automation
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Basic PLC Ladder Programming Example
Pulse Generation using Timer in Siemens PLC
DeMorgan’s Theorems using Ladder Diagram
What is Profinet and How to Configure in Siemens PLC?
PLC Alarm and Trip Documentation
What is Human Machine Interface (HMI) ?
1 to 8 Demultiplexer PLC ladder diagram
PLC Analog I/O and Network I/O

Keep Learning

Cybersecurity in PLC

Cybersecurity in PLC

How to Update the Firmware Version of your PLC

How to Update the Firmware Version of your PLC? – TIA Portal

PLC Program using START & STOP Buttons

PLC Program using START and STOP Buttons

Code Simulation of Safety Circuit

Feedback Monitoring in Safety PLC

Delta HMI and VFD Control with Modbus

Delta HMI and VFD Control with Modbus

Real-time and historical SCADA Trends

What are Trends in SCADA?

How to Create DFB in Schneider PLC? – Derived Function Block

Most Asked Questions on SCADA

Most Asked Questions on SCADA with Answers

Learn More

Squirrel Cage Induction Motor vs Slip Ring Induction Motor

Field Instrument 4-20mA Calculation

How to do 4-20mA Conversions Easily

How to Select a Flow Meter

How to Select a Flow Meter

Types of Heat Exchangers

Types of Heat Exchangers

Overview of Resistor

The Information About Resistor Color Code You Should Know

What is a Servo Valve?

What is a Servo Valve? – Principle and Advantages

field-mounted thermocouple

Thermocouple Extension Wires

Sample Schematic Template for Systems Architecture Diagram

Design Document for Project Systems Architecture

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?