In this video we introduce the concept of electrical schematics and control panel diagrams for industrial electronics and controls and automation engineering! We briefly discuss the field as a whole, then show examples, and then dive into hands on practical examples!
A PLC or Programmable Logic Controller is the staple of industrial automation and controls, and Arduino has made one of the most affordable ways to get into the industry! This micro-PLC has Relay outputs, and programmable digital or analog input and output channels as well.
It also supports Modbus OPC communications for easy integration into SCADAs or larger controls systems, RJ45 ethernet communications and wifi connectivity! Additionally there are no licensing fees to use the Arduino PLC IDE where you can program in Ladder, Structured Text, FBD, SFC or using the regular Arduino IDE/C++ based language!
This tutorial series aims to cover all the most important concepts of automation and controls including hands on examples, and code-along tutorials as well as a description of the industry as a whole!
Don't forget to leave a like, subscribe to the channel, and comment what you want to see next!
Hello and welcome back to LMaster Tech.
And today's video is going to be a
continuation in the introduction to
controls and automation tutorial series
we've been doing in the channel uh
recently. Today's video specifically,
we're going to take an introduction to
the world of wiring and electrical
schematics for controls and automation.
So this is a super important uh concept
and aspect of controls and automation
engineering. It's also kind of a tricky
one to figure out a good intro video.
Uh, so I want to start by briefly
telling you how we're going to attack
this sort of concept. So there's way
more just like all these concepts,
there's way more than you could possibly
cover in just one short uh introduction
video for the world of electrical uh
controls and automation. And so what
we're going to do is we're going to take
a look at some example control
schematics, not of panels that I
physically have here in front of me, but
then we're going to take a look at some
very basic schematics, create them from
scratch together, and then we'll also
take a look at the hands-on what that
actually means in the physical world. So
how every wire that you add to a control
schematic actually communicates and
translates into the real world. We're
going to do a few hands-on examples
together. So that's sort of the format
here. If you have basic understanding of
hobby electronics, like you've played
around with Arduinos or Raspberry Pies,
then this will be a cool way to see how
it translates into the world of
industrial automation and controls. And
then if you've been an electrician or a
maintenance technician or anything like
that, this will be a really good way for
you to see the controls and software
piece of it. But you're probably pretty
familiar with the hands-on piece
already. So, let's just dive right in.
In terms of visual aids, it's going to
be a little all over the place because I
have some like very highlevel bullet
points in a PowerPoint. Then we're going
to take a look super briefly at the code
we write. But then we're going to cut
over to physical wiring as well. And
again, the reason wiring is kind of a
broad topic and a hard one to cover is
because in the world of industrial
automation and controls, a control panel
schematic and a drawing package could be
things that call out your devices and
your actual sensor level connections to
a control panel. And then all the PLC
controller level connections. So from
your PLC to IO modules, input and output
blocks, relays, terminal blocks and
distribution. Uh as well as connections
to the devices and the sensors. And then
your power distribution, usually a high
power AC uh power feed into a control
panel and how it translates into DC or
step down transformers to be used inside
the control panel as well as power feed
to motors and VFDs and things like that.
And then often your networking would be
encompassed in that as well. So your
Profet or EtherCAT or Ethernet
connections as well. So obviously it's a
super broad concept, but the drawing
package for a control panel is maybe the
most important thing uh to correlate the
physical world to the software side uh
that are both so important for controls
and automation. Um, so super quickly in
an industrial control uh package, a
really good drawing package, you'll
usually have a view that looks like both
of these. So this is kind of two
different views. Um, I'll try to drop
myself in the middle here. This is kind
of two different views most of the time.
And what you've got is a physical
rendering of the panel on the left here.
So, this has uh these green covers are
usually plastic wireways called uh
panduitit or whatever sort of wire way
um that you have. It's just an
industrial way of keeping your wires
organized. As we'll see when we get to
my hands on examples, uh physical wiring
in the field looks really messy if
you're not zip tying or using cable
glands and conduit and stuff to keep
your uh cords really clean. So most of
the time these like gray or light green
rectangles will be in a material like
pandit and it'll be a wireway but then
uh it this physically will look almost
identical to the control cabinet when
you swing the door open. So you have
circuit breakers and power distribution
and VFDs and PLC components in a very
physical uh realistic rendering. And
then on the right you have what's kind
of called the wireframe which is usually
a uh slightly less but still precise but
slightly less precise physical rendering
of the panel but everything would be
labeled with however it's getting called
out in the drawing. So, if you see,
these are basically the same uh control
cabinet, but on the right there are a
lot of uh blue small text that's kind of
hard to read, but there's a lot of blue
labels calling these VFDs out as VFD
1070, 2070, 2190, um your switch in the
middle row, terminal blocks, PLC
components. And so this is a labeled one
that still uh has all of the physical
components in their correct physical
locations, but this one is correlating
uh a wiring label like VFD 1070 or
whatever some way that it's going to get
referred to in this control package. And
it's it's correlating that physical
component to a uh drawing package page
that we'll find. So, if we look in this
next page at an example page of an
industrial wiring package, um this is
actually a great example of the whole
drawing package once you get into the
line level schematics, which we'll talk
more about during this uh video. But to
highlight a few things here, it's very
common to have two columns side by side
that have these wire numbers that's kind
of hard to see, uh but these line
numbers from like 200 to 222. And often
the wires will get physically labeled
with whatever wire uh with whatever row
they're on in their drawing package. So
it's very normal to see a wire label
physically on a wire in a panel that
says 205 or 225.
It's also very normal to see their tag
name. So if you have like a solenoid
valve, it could say SV500,
whatever. But often the uh label will be
a combination of where it physically is
uh in the field and where it is in your
drawing package. But anyways, you'll get
these two columns side by side kind of
drawings just because most wires don't
merit a full uh page. Most schematics
don't need a full landscape page. So
they'll split into two columns. And then
the footer is actually where I want to
spend some time here because the uh
because the footer of the drawing
package contains an enormous amount of
information. Usually on the left side
you have revision notes which would be
the person who approved a revision, the
date it got changed, which revision
number or letter it is, and then uh
usually a brief note or comment about
the revision itself like what are you
adding, what are you deleting, what are
you changing. It's very normal to see
the latest revision or the newest
revision, have all the changes in like a
cloud or a bubble format on your
drawing, and then there's usually some
uh footer information about the company
that the drawings are for, like, hey,
this was for, you know, this chemical
plant uh prepared by this person, this
address, whatever. So, some physical
information about the drawing package.
And then over here is usually uh who
prepared it. So you'll have like the
engineer's name of who prepared it, who
installed it, who uh you know engineer
or designer that was kind of behind
that, more information about the
customer, and then usually in the
footer, you also have stuff on every
single page that tells you the name of
that page and then where within the
broader drawing package you are. So on a
huge control panel that has uh
individual motor and sensor and device
schematics called out, you could be on
page like 12 of 158. So the numbering
and the information in the footer is
very important. Um to talk super briefly
about some of the most common software
out there you have like DW like AutoCAD
um Autodesk are some of the more common
uh CAD software and then e-plan is one
of the more like software intensive uh
CAD packages as well. But there's also
some free ones online. Uh you can use
things like Keycad which is best known
as an electrical package uh for like
designing PCBs but you can do free
schematics as well. There's a lot of
online uh tools that are kind of free
but have less powers. So I think
Autodesk uh AutoCAD and basically um
eplan are like probably the two biggest
competitors in this space. But there's
plenty of companies that do this just
like any other piece of the industrial
automation and controls world. Okay,
where do you begin? If this is a
beginner intro to control panels and
schematics, knowing that the footer has
great information, knowing that there's
usually a title page, knowing what
software to download, that's all great.
Um, but briefly, some some talking
points. So, to remind you, this is an
introduction and not a comprehensive
lesson. Um, and then if you Google just
control package like electrical panel
wiring examples, there are some really
good ones out there that actually show
you physical ones in the field and they
talk you through what you're physically
looking at and everything else like
that. So, if this in particular is the
aspect of controls and automation that
you really want to become uh super
proficient at, I suggest you just do
some googling. this Solless PLC, another
great online company, uh, Real PARs, has
some other good examples, and they
actually talk about individual
components and schematics that you'll
see in the field. So, that's not a
copout. Uh, this is meant to get you,
uh, familiar with the basics, but it's
also just not a deep dive. So, if you
want to spend a lot more time studying
on this, I absolutely recommend uh, just
spend some time googling. Solless PLC
and real pars have some great examples
as well as some others out there. Okay.
But then I do think one thing that's
really important to talk about as part
of this video is who has standards in
this field. So if you're a drawing
designer or an electrician or an
instrumentation and controls engineer,
it's very important to be familiar with
NFPA70,
NFPA79
and UL508A.
Uh also sometimes called NEC70. But
basically these are industrial guides on
power requirements, power distribution
requirements, best practices for
installing and creating and developing
control cabinets. UL or underwriters
laboratory is a listing that like panel
fabrication shops and places that
develop controls equipment uh they want
to stamp their panel with a UL listing
because that means they've they've
adhered to a certain high standard that
gets validated by this company by the UL
organization. Those are like
thousandpage uh guidelines in books and
usually I think you have to pay for a
whole copy of them. Best practices of
those are found online. They talk about
wire gauges, power distribution
concerns, and a lot of other really
great things to keep in mind while
you're developing control panels, but uh
not really what we're going for in
today's video. So, those three standards
are great for looking into. Um, but
let's talk more practically. If you're a
hobbyist or an a field engineer who just
needs to know when I need information,
where can I go to get said information?
And uh it it's really the internet.
Anytime you buy a sensor or a switch or
a button or a motor, the manufacturer of
that component should be providing the
wiring schematic and information to you
uh via internet manuals, downloadable
manuals. Ideally, it would be included
with the component when you buy it, but
just a quick Google or if you're buying
components from Amazon, like I do for my
garage all the time, the Amazon listing
itself oftentimes has the wiring called
out as well. Um, and then control
components. These are actually a lot
more standard. So, if you're buying
Allen Bradley or Seammens or Beckoff or
even, you know, Arduino PLC like we're
using in this tutorial series, they have
really good pinouts and wiring
schematics. They can take a variety of
forms. So, they won't always look like
something you can easily drop into a
wiring diagram. And they won't always uh
have a 3D model that you can include in
your panel. Sometimes you just need to
make a little rectangle and say, "Hey,
this is, you know, this device or
anything like that." But the actual
wiring of how to wire a component comes
from the manufacturer you buy the
component from. So, you don't have to do
any guessing of how these things work.
And then why it's so important and why
it's worth a whole video during this
tutorial series just to talk about this
component is because in the world of
industrial automation and controls and
honestly in the tutorials that we're
doing just in this series, control
panels and control systems get very
large very quickly. And so manually
tracking down every wire and cable where
it came from in the field and where it
landed in the panel, it's not always
safe. It's not always feasible if you've
tucked things into conduit runs or
they're in, you know, an explosion proof
building, but your control cabinets on
the outside. Um, or even wireways inside
of Pandowit tends to get so full that
you can't just trace your wire
accurately. And it's also just faster.
If you're the person trying to hook up a
system and you're in the field and it's
2 in the morning and you've been on site
for 48 hours straight, uh you want an
accurate well doumented control panel
schematic rather than guessing trying to
find a spare channel on your PLC, trying
to look into the code and see if there's
a spare channel by like reverse
engineering the code. So understanding
the electrical schematic importance of
industrial automation controls is super
pivotal. Okay, so that was a lot of Pete
talking, which is my least favorite kind
of video. I really like to show you guys
things and do engineering together. So,
let's get into a practical example. And
let's just start because I really want
this to be a tutorial series that's low
to no barrier to entry, right? I'm going
to make all of the electrical schematics
today in this example for you in
PowerPoint. I don't want this to be
like, oh, as long as you have e-plan or
as long as you have AutoCAD, you can
follow along. So for an example, let's
take a look at a system that has a power
supply, a PLC, and one input, which is
just going to be a hand switch. Okay? So
a, you know, onoff hand switch, and then
a PLC and a power supply.
And I think I also when I prepared these
schematics, I had 12volt power supply
called out. I think I've got a 24volt
power supply on my drail right now. That
part doesn't matter too much because the
pinout's the same. And the Arduino PLC
can take between 12 and 24volt power
supply. But nobody yell at me in the
comments. If this schematic says 12volt
DC and the actual power supply says 24
volts, I will ignore your yelling. I
want to talk about what I have on sha on
the screen right now because like I
said, I'm making this in PowerPoint.
These are not uh you know shapes that
you download from the manufacturer,
anything else like this. This is
literally just I have a power supply
that takes wall outlet voltage and then
this power supply gives me two plus and
two minus. So two zero VDC and two
12volt DC channels. I need the Arduino
PLC to receive power. So it has two
positive terminals and two negative
terminals as well. And then it has eight
input channels and then it has four
relay output channels. So if you've been
following along with the tutorial
series, you've seen the the body of the
Arduino already. I'll have some pictures
of it uh on screen now as well, but this
is a uh simple rectangular
representation of the component that
we're dealing with. And then my hand
switch has two different sets of
terminals on the back labeled 11 12 uh
23 and 24. And it's just two different
strips that are made when it's in the
two different positions. So that's my
hand switch. Let's take a look at what a
notindustrial control cabinet schematic
for this system might be. Okay. So, this
again just in PowerPoint, no fancy
software or anything. I'm using a solid
blue line to show my DC positive power.
And then I'm using a kind of a white and
blue. White with blue stripe is very
common in the world of electrical uh
controls for 0 volts DC. Um or just
solid white is also very common. But
basically, I have black, white, and
green from the wall outlet into my power
supply. And then I'm providing power and
zero volts. So these two wires make up a
power loop to the Arduino PLC. And then
I'm using another positive lead off the
power supply to go into the hand switch.
And then when I turn the hand switch
into position one, uh or which is
basically connecting terminal 11 and 12,
then power will flow through this hand
switch and go to input 8 on my Arduino
PLC. Okay. So, it's a very simple
electrical schematic, and I'm going to
tie it to this structured text program
uh right here, which is just going to
turn the blue light on when the switch
is on. But then I'm going to use
switching logic. So, rather than just a
boring like, hey, turn the green light
on the body of this PLC on when the
switch is on, I'm going to actually do a
little bit of switching logic. So, every
time I turn the switch to the on
position, that's going to switch my
internal onoff variable. And then I'll
switch an output and a little green
light based on that. Um, that was
probably a a poor brief example, but the
structured text uh tutorial was two
videos ago. This is about wiring. Um, so
let's go ahead and take a look
physically at the wiring for this
system. And you can see the exact wires
that are called out in our schematic
show up on here. We have the black,
white, and green wires coming out of the
outlet. And then we have two blue wires
going into the power feed of the Arduino
PLC and onto terminal 11 of the hand
switch. And then on the outlet terminal
12 of the hand switch, it goes into
input 8 on the Arduino PLC. And then the
last wire we need is a V minus or 0V DC
return wire to the power supply from the
Arduino PLC. Every wire that we have on
this schematic shows up physically in
the world exactly as it's drawn here.
And let's take a look at a more
industrial example of this. So this kind
of looks more like you should expect to
see whoop in an industrial control
cabinet. Okay, I'll try to drop myself
in the middle where I don't block
anything. But this is sort of how you
would expect to see that show up in an
industrial control cabinet. You have on
the left you have your AC voltage in.
You have line one, neutral, and ground.
and then they go into a power supply and
you can see here like I put the actual
part number of the power supply that I
got from Amazon. Uh that's very common
too. So you'd see maybe PSU1 like power
supply unit one and then a part number
for it and then the pin out has ground
neutral L1 and then plus plus minus
minus. Typically these are grayscale
control uh panel drawings as well. They
don't have to be, but you saw in this
example a lot of color um where I was
kind of colorcoordinating matching
what's in the field with what's on the
schematic. I do actually really like
doing these sorts of schematics for
hobby circuits uh because I just think
it's clearer. But when you're in an
industrial setting, this is what you'll
be dealing with more frequently. So, you
have the same Arduino PLC here. Again, I
dropped the power supply or the part
number on it. Um, and then you have the
uh DC outlet power feed of zero volts
and 12 volts kind of becomes your new
power rail on the left edge of the right
half of my screen. And here you can see
the power coming into the PLC and then
going through a hand switch which is
represented again by the part number and
into input 8. Okay. So actually what's
important to know is that what you're
looking at here is very industrial and
what you're looking at here is sort of
hobby. Uh, but you'll see schematics
that look a lot like both of these
depending on your setting and the size
of your application. That's our first
practical example. We have one more
slightly more complicated practical
example and then we're going to wrap
this uh video up. Okay, so we have our
industrial/hobby
example. Let's add an output. So, we
have a digital input in this previous
example and that's our hand switch.
Let's go ahead and say we want to add an
out an output and it'll be an outlet.
So, we could hook any common household
appliance we want up to a standard
outlet. And to do that, we need L1,
neutral, and ground. So, we need that
same three wires that kind of come into
our power supply. We need those uh
hooked up to an outlet, but L1 needs to
pass through a relay. And a relay is a
super important uh controls component
which allows us to switch a wire between
multiple contacts. So you use low
voltage DC power to change the state of
a relay and then a separate electrical
connection is made on the other side of
the relay. So I think we'll probably get
more into relays as we continue doing
the tutorials in this series, but uh
it's arguably the most important
component in the world of industrial
automation and controls. So, let's take
a look at the hobby version of this
circuit now. Okay. And let's walk
through all the wires that have been
added. I also put in one new sort of
color convention, which is a wire that
ties directly into the PLC. I've changed
to orange. Uh where in the previous
example, I just left it as blue. So,
basically, the final uh PLC signal wire
is orange. L1 on this schematic uh is
represented in black. So that's going to
be your 120 volt hot. Neutral is going
to be kind of this light gray because
white didn't really look good on a white
background. Ground is green. And then
everywhere that's 0 volts DC is
represented by this like light blue,
white and blue striped uh wire. And then
dark blue represents your 12 volts,
which in my physical setup is actually
24 volts. Um, but what you can see here,
what's actually changed, nothing to do
with the hand switch or powering up the
Arduino PLC, but what we've done is
we've added a hot wire, so a 12 or
24volt DC wire from the second terminal
of the Arduino PLC out feed to side one
of the relay output on the Arduino PLC.
And if it seems silly to go from a relay
to a relay to control something, it is a
little bit silly. But actually, I wanted
to show you guys a Dmail, a D rail
mounted relay rather than just a relay
PLC uh output. Technically, there's an
extra component in here because I have a
relay output and then I go to a relay.
Let's just take a look at this practical
example. Okay, so so when the PLC
energizes that wire, this relay connects
the common to the normally open channel.
And then when the coil releases, the
common is connected to the normally
closed channel. That's a super important
concept, not just for relays, but for
sort of all of electronics. So if you
look up uh relays and common, normally
open and normally closed, you'll learn a
lot about sort of switching voltages.
But for now, just know that to control
the state of the outlet from our PLC, we
bring 120 volts hot into the common
channel of our relay. And then normally
open means it is the one that's not
going to be connected until we pull that
coil in. So you could technically
program the circuit to work in normally
open or normally closed. We're going to
use normally open, meaning the only time
that outlet will be energized is when
the relay is energized, which is when
the PLC tells that output it's true.
Okay, so that's the schematic. Let's
take a look real quick at what this
physically means on our uh bench setup.
And you can see just like I said, it's
the exact same wiring as before, but now
we've introduced this new relay. And we
have the uh additional power feed from
the Arduino coming into channel zero of
the output. And then we have the channel
one of the output going to the uh A1 and
A2 coil side of the relay. And then the
other side of the relay goes back to 0
volts DC. And then we have the
downstream power feed of our uh relay
switching the common wire between
normally open and normally closed. And
the normally open signal goes to the
outlet. So we actually didn't have to
modify our PLC program at all for this
one. All we did is we just said in
addition to having uh L1, which is the
light on the body of the PLC, we now
also want the outlet to turn on and off.
And we just tie our outlet. If we look
at relay outputs, we just tie our outlet
to the first output channel in the PLC.
So, if you've been following along with
the tutorial series, that whole PLC side
of it should look pretty trivial. Don't
worry too much because the uh this
purpose is to be hands-on and physical
and electrical uh rather than just um
rather than software heavy, but feel
free to ask any questions you have about
it in the comments below. Now, same as
before, let's take a look at how this
would get represented in like a physical
uh in a more industrial controls uh
package drawing. So, let's take a look
at what's changed. We still have the
power feed on the left going through our
24volt power supply, which I know I
called out as 12 volts uh in in here,
but it's 24 volts on my bench setup. Sue
me. Anyways, and then I did something
interesting that I think is useful to
call out on this channel or uh on this
tutorial is I labeled two wires with
numbers 01 and O2. And this is a massive
simplification from how like a large
control uh panel would do it. But it's
not always feasible to show every
physical connection in your drawing in a
continuous one nice clean view uh sort
of way. And if you look at the relay
which we've added to the top right, you
can see output uh channel one, wire zero
and wire one are pulling in the A1 A2
coil side of the relay just like we saw
uh before. But 01 and O2 which are
linked to these
are actually being physically
represented by a number that says hey
there's this disconnect between over
here and over here. And sometimes you
would want to link it with some
additional uh letters as well or
anything like that. But this is just a
way of calling out that the other side
of this wire shows up somewhere else in
your drawing package. And it's a way for
you to correlate and track down those
wires. Again, this is sort of a
nonsustainable way as you get into
bigger and bigger and bigger systems.
you can't just keep drawing this like
function block diagram of all the crazy
wiring schematics and the coloring
conventions can get out of hand and
they're sort of arbitrary. So you start
to see as systems get bigger and bigger
and bigger how essential having like a
standard format drawing is. So, this
industrial example, which honestly I've
already sort of deviated cuz I'm
building it in PowerPoint um from like
some common design choices, but I hope
the basics are clicking for you here of
what you're looking at, how the physical
world maps onto this sort of electrical
schematic software world, and then what
you're actually looking at in the field
and how that ought to be documented when
you go and grab a control cabinet. Okay,
so I know by far in this tutorial
series, this is the most talking that
I've done and the least uh showing you
things that I've done, but it is really
hard to demonstrate the world of
electrical controls uh drawings and
schematics and control panels without
like going into the field and walking
through one with you. And frankly, my
company would not be okay with me like
walking around the plant floor showing
you our control cabinets. So, you're
going to have to do with what I can show
you in the garage. Um, I hope it was
useful. As always, let me know with any
uh comments or questions on this one. I
also have a pretty deep uh library of me
talking about controls and automation
concepts, including wiring and hardware
and things like that on the channel. So,
be sure to check out L Master Tech for
more. Drop me a comment with any
questions that you had, anything that I
can try to clarify for you. And let me
know what you want to see more of on the
channel next time. Thank you so much for
watching and we'll see you next time.
Thanks. Bye.