0:04
Discover the inner workings of PLC logic
0:06
and scan cycles and unlock a deeper
0:08
understanding of industrial automation.
0:12
We delve into the world of programmable
0:14
logic controllers, exploring the
0:15
intricacies of scan cycles and how they
0:20
Learn how PLC's process inputs, execute
0:22
programs, and update outputs in a
0:24
continuous cycle, and gain insights into
0:26
the programming and configuration of
0:31
Whether you're an experienced engineer
0:32
or just starting out in the field, this
0:34
video will provide a comprehensive
0:36
overview of PLC logic in scan cycles,
0:39
helping you to improve your skills and
0:40
knowledge in industrial automation. When
0:43
a PLC scans a rung with multiple series
0:45
contacts, it stops evaluating the rung
0:47
as soon as it finds a false condition.
0:49
This means that if you have a series of
0:51
five contacts and the first one is
0:53
already false, the PLC will not even
0:55
check the other four. Therefore, by
0:57
placing the contacts that are most
0:59
likely to be false at the beginning of
1:00
the rung, you can save valuable micros
1:02
secondsonds of scan time on every single
1:04
scan, which adds up to a surprising
1:06
amount of efficiency over time. At the
1:09
heart of PLC programming is the
1:10
execution of the PLC logic. The running
1:12
of the PLC controller is also known as
1:14
the scan. Scan and scan time are
1:17
essential to understand an automation.
1:19
Scan cycles run cyclically. This means
1:21
that they repeat continuously at a very
1:23
high speed which allows for real-time
1:25
control of your automation project.
1:27
There are many common misconceptions
1:29
about what happens during PLC scan
1:31
cycles. The PLC sees all inputs and
1:33
updates all outputs simultaneously.
1:35
Scan time is always constant or all
1:38
inputs and outputs are updated in the
1:40
same order as they appear in the
1:41
program. PLC scan cycles are critical to
1:44
understand for responsiveness and
1:46
timing, troubleshooting, and program
1:48
optimization. The concept of a scan
1:50
cycle is central to how PLC logic
1:53
operates. A PLC doesn't process its
1:55
logic all at once. It does so in a
1:57
continuous loop or scan. Each scan cycle
2:00
consists of three primary steps.
2:03
One, read inputs. The PLC checks the
2:06
status of all its input devices. It
2:09
first reads all inputs and stores their
2:10
status in an input image table. If an
2:12
input changes during this time, the
2:14
input image table will not update until
2:16
the next scan of the input.
2:19
Two, execute logic. It runs the
2:22
userdefined program from the beginning
2:23
to the end using the input image table
2:26
data it just gathered. If we look at
2:28
ladder logic, the logic is solved left
2:30
to right, top to bottom. The output
2:32
image table is updated as the logic is
2:34
solved. These changes are available for
2:36
the next rung of ladder logic to use. As
2:39
mentioned, when solving the logic, if
2:41
any of the series inputs result in being
2:43
negative, then the output is immediately
2:44
updated in the output image table. This
2:47
execution creates the fastest possible
2:49
time to update and so the scan is not
2:54
Three, update outputs. It writes the new
2:56
status to all the output devices based
2:58
on the output image table results of the
3:02
This entire process repeats continuously
3:04
and at very high speeds which allows for
3:07
real-time control of the automation
3:08
system. The PLC reads all inputs before
3:11
executing the program logic and then
3:13
updates all outputs after the logic is
3:15
complete. The order of instructions
3:18
within the program itself can affect the
3:19
internal logic, but the physical IO is
3:22
handled in a set sequence during each
3:23
scan. The PLC scan cycle is a sequential
3:27
process. It first reads all inputs and
3:29
stores their status in an input image
3:31
table. It then executes the program
3:33
logic using the data from this table,
3:35
not the live inputs. Finally, it updates
3:38
the physical outputs based on the
3:40
results of the program execution. This
3:42
means there is a slight delay between a
3:43
change in a physical input and the
3:45
corresponding change in a physical
3:55
Understanding this concept of PLC scan
3:58
is critical for you to enhance system
3:59
responsiveness, increase reliability and
4:02
predictability and improve
4:03
troubleshooting of your system.
4:18
Let me know your thoughts and comments
4:20
below. There are many different PLC
4:22
manufacturers with their own hardware
4:24
and software. All programmable logic
4:26
controllers share similar basic
4:28
features. To learn how to approach
4:29
learning about basic PLC's, click here.
4:33
Click here to learn more about how PLC
4:36
simulators can be used to help your