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

One Shot Rising and One Shot Falling Instructions in PLC
PLC Program for Continuous Filling Operation
The Concept of Shift Register in Omron PLC with Example
Compare Modbus, Fieldbus, and Profibus
Omron PLC Online Training Course
CW and CCW Operation of Motor from Same Push button
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

Loop Check of 4-20mA or HART Transmitters
What is 21 CFR in SCADA and HMI Systems?
Tools Required for PLC Programmer to Carry at Site
#14 PLC Best Practices – Restrict Third-party Data Interfaces
What are High-Speed Counters and Fast Counters in PLC?
Contactor – Basics, Wiring, Connection with PLC
OPC in Old PLC Systems
Understanding Braking Theory in VFD

Keep Learning

PLC automation timers and counters

Medium-Level PLC Exercise for Students in Automation

Field Instruments

#11 PLC Best Practices – Instrument for Plausibility Checks

Wood Sawing and Blower System PLC Control Design

Wood Sawing and Blower System: PLC Control Design

System Architecture in Industrial Automation

How to Design a System Architecture in Industrial Automation?

Omron PLC Example

Design a Water Pump PLC Program using CX-Programmer

PLC Example on Switch Program with Timers

PLC Example on Switch Program with Timers

Single-Acting Cylinder Control Operation using Proximity Sensor

Single-Acting Cylinder Control using Proximity Sensor

Siemens PLC Programming OBs in Siemens TIA Portal

FC Function in Siemens PLC

Learn More

Basic Electricity Objective Questions and Answers

100+ Basic Electricity Objective Questions and Answers

Loop Diagram

15 Loop Diagram Questions

Turbine Control System

Turbine Control System

Electrical Machines Objective Questions

Electrical Machines MCQ Series 1

Siemens Industrial Laptop (Simatic Field PG)

Connect to the Siemens S7 PLC

Solar Pump

What is a Solar Pump VFD? – Advantages, Principle

Digital Control Systems

The Z-Transform

PLC Logic - Control Spray Nozzle, Fans, and Puncher

PLC Logic: Control Spray Nozzle, Fans, and Puncher

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?