0:01
did you know that understanding edge
0:03
triggers can drastically improve your
0:05
PLC understanding how oneshots work
0:07
within the PLC scan is vital in
0:09
programming PLC's in this post we'll
0:11
dive into the world of programmable
0:13
logic controllers and explore the
0:14
techniques and strategy secrets you need
0:16
to know to trigger your edges precisely
0:18
and accurately We will demonstrate the
0:20
secrets with the free doour designer
0:22
software and PLC simulator Whether
0:25
you're a seasoned PLC programmer or just
0:27
starting this post has valuable insights
0:29
and practical tips to take your edge
0:31
triggering skills to the next level So
0:34
what are you waiting for let's unlock
0:35
the secret to oneshot edge triggers in
0:39
scanning Introduction to PLC inputs and
0:43
triggers The fundamental operation of
0:45
programmable logic controllers PLC's
0:48
Scan refers to the cyclical process
0:50
where the controller reads inputs
0:52
executes the control logic and updates
0:54
outputs This scan is the heartbeat of
0:57
automated systems ensuring seamless
0:59
operation and precise control Inputs to
1:01
the PLC are like the eyes of the control
1:04
system They let us see what the system
1:06
or machine is doing All PLC's will have
1:08
input filters This is the minimum time
1:11
required to register that an input is on
1:13
Edge triggers a key concept in PLC
1:16
programming are essential for capturing
1:17
specific events or conditions in your
1:19
PLC program Positive and negative edge
1:22
triggers detect changes and input
1:24
signals triggering actions based on
1:25
these transitions Harnessing the power
1:28
of edge triggers within PLC programming
1:30
you can optimize control systems
1:31
streamline operations and elevate the
1:33
performance of your industrial
1:36
processes PLC scan read input filters
1:40
Start the Do More Designer programming
1:43
software This entirely free fully
1:45
functional package includes a PLC
1:48
simulator It will program the entire Do
1:50
More series of controllers like the BRX
1:52
H2 and T1H Start a new project by
1:55
selecting the new offline icon on the
1:57
main page This can also be done using
1:59
the main menu ashar file new project
2:03
harsh offline Alternatively you can also
2:06
use the shortcut combination of cotrol
2:08
plusn We can select the controller we
2:11
wish to program when the new offline
2:13
project window appears In our case we
2:15
will select the BXD1ME 18813 controller
2:19
Leave the title of our project as the
2:20
default as we are just demonstrating
2:23
Select okay Call up the system
2:25
configuration window from the main menu
2:27
gates PLC This can also be called up by
2:30
selecting system configuration under
2:31
tools in the project browser window Each
2:34
PLC software differs regarding the
2:36
filters location or whether they can be
2:38
set See the documentation for your
2:39
controller Select the BRX local IO on
2:43
the left hand side of the system
2:44
configuration window Then select filters
2:47
under the input filter
2:52
heading The setup discrete input
2:55
response time window will be displayed
2:57
Here we can adjust the filter time of
2:58
the inputs I like to view this screen in
3:01
time nanoseconds because I do not have
3:03
to calculate frequency based on the 75
3:05
MHz clock We can have input responses
3:08
from 1 microcond to 100 milliseconds or
3:11
0.001 seconds to 0.1 seconds If the
3:15
actual input signal is shorter than the
3:17
filter time the PLC will disregard the
3:18
signal When the input is on longer than
3:20
the filter time then the PLC will send
3:22
this to the CPU This input will be
3:25
recognized as being on When the input
3:27
turns off the filter time is added to
3:29
the signal to the CPU As mentioned
3:32
previously all PLC's will have input
3:34
filter times You may have to review the
3:36
specifications for your controller to
3:38
determine what minimum frequency or time
3:40
is required to send the input to the CPU
3:42
so it can be used in your
3:44
program PLC can execute
3:47
program ladder logic is the most common
3:50
of the five recognized PLC programming
3:52
languages Our do more designer software
3:55
will only program in latter logic The
3:56
cyclic nature of the PLC scan allows
3:58
your program to be scanned rapidly We
4:01
will demonstrate this with the do more
4:03
designer PLC simulator Start a new
4:05
offline program using the
4:15
simulator A normally open contact X0
4:18
will input an increment D0 instruction
4:32
Connect to the simulator Download and
5:11
When we turn on X0 the increment
5:13
instruction will add one to D0 Since we
5:16
have a cyclic scan this will happen
5:17
every time X0 is on If we need to do
5:20
this only once then this is where our
5:22
leading or trailing edge one shots come
5:25
in Note that our simulator works
5:27
independently of the do more designer
5:30
programming software It must communicate
5:32
with the simulator So there is a slight
5:34
lag in the numbers within
5:36
D0 ladder logic and oneshot
5:40
implementation Leading edge detection is
5:42
known by several different names within
5:44
PLC programming one shot positive edge
5:46
negative edge differentiate up
5:48
differentiate down etc Please refer to
5:51
your PLC manual for the terminology used
5:53
in your PLC controller We will insert a
5:55
new rung and add a leading edge oneshot
5:57
contact for input X1 This will increment
6:00
the D1 register The third rung will have
6:02
a trailing edge oneshot contact for
6:04
input X2 This will increment the D2
6:16
Accept the changes to the program and
6:18
write them to the PLC simulator
6:42
Turn on X1 and X2 D1 register has now
6:45
been incremented just once This is
6:46
because we turned on X1 which changed
6:48
the input from off to on The instruction
6:50
in the scan cycle detected this leading
6:52
edge and activated the output
6:54
incrementing D1 Note that D2 did not
6:56
increment This is because X2 is looking
6:59
for the trailing edge or transition from
7:00
on to off Turn off X1 and X2 The D2
7:04
register has now been incremented just
7:06
once This is because we turned off X2
7:08
which changed the input from on to off
7:11
The instruction in the scan cycle
7:12
detected this trailing edge and
7:14
activated the output incrementing D2 D1
7:17
did not increment again because X1 only
7:20
looks for a leading edge or transition
7:21
from off to on The power of one shot
7:24
triggers capturing specific events or
7:26
conditions with precision and
7:28
accuracy Multiple inputs one shot
7:33
PLC's will often have oneshot
7:34
instructions built into specific
7:36
instructions One of the most common
7:38
instructions is the counter In the do
7:40
more designer programming software the
7:42
leading or trailing edge is represented
7:44
by a triangle on the input leg of the
7:46
instruction This example will increment
7:48
the counter only on the leading edge of
7:50
the input conditions Please refer to
7:51
your controller manual for specific
7:53
instructions on the input signal
7:55
conditions So far we have just looked at
7:58
individual contacts for our leading and
7:59
trailing edge oneshots PLC's also have
8:02
output instructions that can set one
8:04
shots within your program These are
8:06
usually used with internal memory bits
8:08
because they are only on for one scan
8:10
cycle at a time Add a positive
8:12
differential PD leading edge oneshot and
8:15
a negative differential ND trailing edge
8:17
oneshot output instructions We will set
8:20
the exact parallel and series contacts
8:26
We can now utilize our program's
8:28
internal contact bits C 0 and C1 This
8:31
integration enhances the responsiveness
8:33
of control systems and opens up a world
8:36
of possibilities for fine-tuning
8:37
automation processes to meet your
8:39
diverse industrial needs By mastering
8:42
these triggers you not only enhance your
8:44
technical skills but also contribute to
8:46
the advancement of industrial control
8:48
systems Embrace the power of oneshot
8:51
edge triggers to revolutionize your
8:52
approach to PLC programming For those
8:54
looking to expand their knowledge in
8:56
industrial automation and control
8:57
systems exploring additional resources
8:59
and further reading can be
9:01
invaluable Whether you are a beginner
9:04
seeking to grasp PLC basics or an
9:06
experienced professional aiming to
9:08
enhance your skills the right
9:09
educational materials can make a
9:11
significant difference in your
9:12
understanding and proficiency To review
9:15
our PLC guide and approaches to creating
9:17
PLC programs click here Click here to
9:20
learn more about the Do More Designer