# Control of Drilling Machine PLC program

**URL:** <https://forumautomation.com/t/control-of-drilling-machine-plc-program/4016>\
**Category:** PLC (Programmable Logic Controllers)\
**Created:** [July 4, 2018, 4:50am UTC](https://forumautomation.com/t/control-of-drilling-machine-plc-program/4016 "2018-07-04T04:50:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![areejsidhik](https://forumautomation.com/letter_avatar_proxy/v4/letter/a/ee59a6/32.png) [@areejsidhik](https://forumautomation.com/u/areejsidhik)\
**Post date:** [July 4, 2018, 4:50am UTC](https://forumautomation.com/t/control-of-drilling-machine-plc-program/4016/1 "2018-07-04T04:50:02Z")

</div>

Let’s consider a **[PLC](https://automationforum.co/category/plc/)** program for drilling on a drilling machine. ![1](https://cdn.forumautomation.com/original/2X/1/193fc068b2ecf9ede061b96467a28b953f4a6566.jpg)

> ## I/O assignments

**Input** Stop button X000 Operation start button X001 Fall start button X002 (Consider this to be an auto-return type pushbutton.) Fall end limit switch X003 Rise end limit switch X004 **output** Drill rise output Y000 Drill fall output Y001 Drill rotation output Y003

> ## Explanation of operation

- When operation start button X001 is pressed, drill rotation output Y003 operates and the drill starts to rotate.
- When stop button X000 is pressed, drill rotation output Y003 becomes nonoperational, and drill operation stops.
- If fall start button X002 is pressed during drill rotation, drill fall output Y001 operates, and the drill starts to fall. When the drill finally reaches the position of the fall end limit switch, fall end limit switch X003 turns ON, and the drill fall operation stops.
- Three seconds after the drill fall operation stops, drill rise output Y000 operates, and the drill rises.
- The drill rise operation ends when rise end limit switch X004 turns ON after drill rise operation has begun.

> ## Ladder Diagram

 ![1](https://cdn.forumautomation.com/original/2X/0/0f3c11eeb5574d8cb37900909dd2209f703ffe95.jpg)

> ## Operation

(1)When input X001 is turned ON, output Y003 operates. When input X000 turns ON, output Y003 becomes nonoperational.

(2)If input X002 is turned ON while output Y003 is operating, output Y001 operates. When input X003 is turned ON, output Y001 becomes nonoperational.

(3)If input X003 is held in an ON state, timer T0 starts to count. After three seconds, the T0 contact turns ON.

(4)When timer T0 turns ON, output Y000 operates. When input X004 turns ON, output Y000 becomes nonoperational.

You can practice this plc program at a free simulator link in the below

**[Basics of Ladder Logic – PLC simulator tutorial](https://automationforum.co/basics-ladder-logic-plc-simulator-tutorial/)**

**[Control of Escalators -PLC program](https://forumautomation.com/clicks/track?url=https%3A%2F%2Fforumautomation.com%2Ft%2Fcontrol-of-escalators-plc-program%2F3992%2F1&post_id=4574&topic_id=4014)**

**[Continuous bottle filling system using PLC Program](https://forumautomation.com/clicks/track?url=https%3A%2F%2Fautomationforum.co%2Fcontinuous-bottle-filling-system-using-plc-program%2F&post_id=4574&topic_id=4014)**
