DANIEL LAWSON
Box Wrapper PLC
Disclaimer: This project was part of Udacity's "From Wire to PLC, A Bootcamp In Industrial Automation" course. I completed this project with help from the videos in the class and my final product was ultimately checked against the solution provided.
​
Link to Course: https://www.udemy.com/course/from-wire-to-plc-a-to-z-compilation/
​
I took Udemy's "From Wire to PLC, A Bootcamp In Industrial Automation" course because I became very interested in manufacturing after working at Tesla and wanted to learn more about it. The course covered topics such as:
​
-
Basic electrical concepts and components and how they operate
-
Traditional motor driving control circuits and modern motor driving equipment
-
Protection components and how to choose them
-
Wiring and cable sizing
-
Sensors and their utilization in real projects
-
Electrical Panel Troubleshooting
-
Schematics drawing and design
-
PLC programming using Ladder Logic, Structured Text, and Functional Block Diagrams
-
Allen Bradley - RsLogix 500, RsEmulate 500 and Rslinx Training
-
Human User Interface design and Animation

Completion Certificate
Box Wrapper Project
Goal: Design the control logic for a box wrapper machine and build an animated visual to simulate the machine.
Main Components
-
Motor 1: to move the wrap up and down
-
Motor 2: to rotate the platform under the box
-
High limit switch: to sense when the wrap is at the top
-
Low limit switch: to sense when the wrap is at the bottom
-
Rotation count proximity sensor: to count the number of box rotations
-
Wrap empty proximity sensor: to stop the machine when there is no more wrap

Example of a Box Wrapper
Choosing Power Components and Cabling
Motor 1
Given criteria:
-
0.37kW 380VAC 3-Phase
-
Speed control: 0.37kW VFD
-
Distance from the panel: 1m
Calculations:
-
I = W/(V*0.7*1.73) = 0.8A
-
Overload not required
-
From cable size table: 1.5mm diameter cable
Motor 2
Given criteria:
-
0.55kW 380VAC 3-Phase
-
Speed control: 0.55kW VFD
-
Distance from the panel: 1m
Calculations:
-
I = W/(V*0.7*1.73) = 1.2A
-
Overload not required
-
From cable size table: 1.5mm diameter cable
Total power = 0.37kW + 0.55kW = 0.92kW
Need 6m of 1x1.5mm cable
Choosing Sensors and their Cabling

Current = 12mA per PLC input = 12mA * 4 = 48mA
Power = 48mA * 24VDC = 1.1W
Need:
-
3m of 2x0.75mm cable
-
3m of 3x0.75mm cable

Current = 12mA per PLC input + 9mA per relay coil
Current = (12mA + 9mA) * 4 = 84mA
Power = 84mA * 24VDC = 2W
Choosing PLC and IO
Digital Outputs (12mA each)
-
Motor 1 (rotation)
-
Motor 2 (Up_Down)
-
Motor 2 (Down_Up)
-
Spare
Digital Inputs (12mA each)
-
High limit SW
-
Low limit SW
-
Wrap proximity
-
Count proximity
-
Motor1 OVLD
-
Motor2 OVLD
-
EMGC stop
-
Spare 1
-
Spare 2
Analog Outputs (12mA each)
-
VFD1 frequency
-
VFD2 frequency
Current = DOs + DIs + AOs + Relays + PLC Internal + VFD Internal
Current = (12mA * 4) + (12mA * 9) + (12mA * 4) + (9mA * 4) + 20mA + (5mA * 2) = 246mA
1A 24VDC power supply with shortcircuit protection is more than enough.
Choosing Circuit Breakers
Main Breaker
Total power = 920W + (PLC IO + PLC internal power + Relay) + 20% = 1.1kW
Total current = 1.1kW / (380 * 0.7 * 1.73) = 2.4A * 10 (worst case inrush current) = 24A
Cable length from power source to breaker = 10m
​
Is 1.5mm enough? In other words, is voltage drop less than 3%?
Voltage drop % = (1.73 * current * cable_imp._per_meter * cable length * 100) / voltage source
Voltage drop % = (1.73 * 24 * 0.0138 * 10 * 100)/380 = 1.5% < 3% -- 1.5mm is acceptable
MCBs
From cable size table, max current for 1.5mm cable is 25A. Main input MCB should be rated at 25A type C to account for inrush currents.

Since these are only for switching, any rating higher than the device max rating is enough.
Internal Panel Cabling
Follow US color coding
-
DC Control (Relays & PLC): 0.75mm
-
VFDs: 1.5mm
-
Main circuit breaker input: 1.5mm
Fuses
Since total PLC current is 246mA, choose next highest fuse which is 500mA.
Schematics

MCB Schematic

Control Schematic

Motors Schematic

Sensors and Button Schematic
CodeSys Demonstration
