0:02
we will now program our pneumatic Pusher
0:04
simulator with the click plus PLC the
0:07
machine simulator or Ms is a valuable
0:09
component of the machine simulator
0:11
software suite it offers a range of
0:13
built-in machines including the
0:14
pneumatic pusher machine which
0:16
effectively demonstrates various
0:18
programming techniques we will use the
0:20
click PLC programming software to
0:22
Showcase a sequencer application for
0:23
this example in this scenario two boxes
0:26
on a cyor belt are pushed onto a loading
0:28
dock with anomatic push
0:30
when eight boxes are accumulated on the
0:32
dock loading a second numatic Pusher
0:34
will move them into a crate a logical
0:36
sequence of steps will be implemented
0:38
with a counter controlling the
0:40
progression this fundamental approach to
0:43
programming sequences apply to all
0:46
plcs we will use the free click
0:48
programming software and a click plus
0:50
PLC to program the machine simulator
0:53
simulator communication between a
0:55
software and a PLC will be established
0:57
using modbus TCP or ethernet
1:00
the program sequencer offers a
1:02
convenient and efficient means of
1:03
controlling the automated system we will
1:06
follow the five program development
1:07
steps to guide you these steps will
1:09
provide a clear and structured approach
1:11
to programming the sequencer with that
1:13
said let's dive in and begin our journey
1:15
into the world of pneumatic pushing PLC
1:18
development detailed information
1:20
contained in this video can be found at
1:22
automation.com put in the description
1:24
below if you have not watched the other
1:26
videos yet there'll be links in the
1:27
description below that will start you a
1:28
video One the that will links the rest
1:30
of the videos in the series as
1:34
well step one Define the
1:37
task the first step of a click or any
1:40
PLC program development is determining
1:42
what must be done start the machine
1:44
simulator Ms select the machines button
1:47
on the main page or select machines from
1:49
the main menu at the machine simulator
1:56
window all of the available machines
2:09
move your mouse over the pneumatic
2:13
machine this is the machine that we will
2:17
programming three items will be
2:18
displayed click the information button
2:20
on the top right of the screen this will
2:22
show you a description of the pneumatic
2:30
the pneumatic pushing machine simulator
2:32
has a demo mode this will allow you to
2:33
watch the operation of pneumatic Pusher
2:35
so that we can understand the basics of
2:37
how this needs to function select the
2:39
demo mode for the pneumatic pusher
2:42
machine when two boxes are collected at
2:44
the end of the small conveyor the
2:46
conveyor will stop both capacitive
2:49
sensors will be on indicating that the
2:50
boxes are present the cylinder one
2:53
pneumatic Pusher will advance for some
2:55
time or until the Piston one Advanced
2:58
sensor comes on when cylinder one
3:00
retracts all the way the small conveyor
3:02
will start loading two more boxes
3:12
again when the loading dock has eight
3:14
boxes the open cover will open after the
3:18
cover is open cylinder 2 pneumatic
3:20
Pusher will advance until the Piston 2
3:22
Advance sensor comes on this ensures all
3:25
the boxes are pushed into the
3:27
crate when cylinder 2 retracts all the
3:29
away the open cover will close the cycle
3:37
again move around this 3D
3:41
environment the icons on the top of the
3:44
window will allow you to move around
3:45
this 3D environment the first icon is
3:47
the default selection this will allow
3:50
you to move around without bumping into
3:52
components the last icon will
3:54
automatically show you around this
3:56
virtual environment the first person
3:58
mode will M make a person in your 3D
4:00
learning world the third person will
4:02
show you an operator in a relationship
4:04
to the pneumatic pusher machine once we
4:07
understand what must be done we can move
4:08
on to the next step in developing our
4:14
program step two Define the inputs and
4:19
outputs at the top of the pneumatic
4:21
pusher machine simulator window the viio
4:23
will display the inputs and outputs
4:25
required for this example the outputs
4:27
are on the left hand side and the inputs
4:29
are on on the right hand
4:32
side while still in demo mode you can
4:34
see the operation of the inputs and
4:37
outputs the pneumatic pusher machine
4:39
simulator will require six digital
4:41
outputs and eight digital inputs if you
4:43
are unsure of what the input or output
4:45
is doing start the pneumatic pusher
4:48
machine in start mode
5:17
select viio at the top middle of the
5:19
pneumatic pusher machine simulator
5:21
window you can manually run the
5:23
pneumatic Pusher without control like a
5:28
connection clicking the outputs will
5:30
allow you to turn them on manually you
5:32
can then monitor the inputs and see
5:34
their operation the restart button on
5:37
top of the pneumatic pusher machine
5:38
simulator window will reset the scene
5:41
start the following table will Define
5:44
the inputs and outputs or IO and modbus
5:46
addresses in the click PLC will be used
5:55
program step three develop a logical
5:58
sequence of operation
6:02
a flowchart or sequence table is used to
6:04
understand the process that must be
6:05
controlled thoroughly it must also
6:08
answer questions like this what happens
6:11
when an electrical power or pneumatic
6:12
air is lost what happens when inputs and
6:15
output devices fail do we need
6:19
redundancy this step is where you'll
6:21
spend most of your time understanding
6:23
everything about the operation will save
6:25
you time it will help prevent you from
6:26
continuously rewriting your PLC program
6:30
knowing all these answers up front is
6:31
vital in developing the PLC
6:35
program our click PLC pneumatic Pusher
6:38
program example can be broken down into
6:41
steps our sequence table for the
6:43
pneumatic Pusher will show the input
6:45
signals on the left and the output
6:46
signals on the right the value of the
6:49
counter is shown with each step each
6:51
step will show the conditions that need
6:53
to occur for the next step to
6:55
operate we will load two boxes at a time
7:00
we will load eight boxes on the table
7:02
using the first pneumatic Pusher after
7:05
the cover opens the second pneumatic
7:07
Pusher will push the boxes into the
7:08
crate when The Pusher Returns the cover
7:11
closes and the sequence starts
7:14
over a programmer must know everything
7:16
about the sequence and operation of the
7:20
programming ask questions or review
7:22
existing documentation to ensure you
7:24
know the logical steps of the machine's
7:31
step four develop the click PLC
7:35
program the next step in our program
7:37
development will be writing the latter
7:39
logic code for the click PLC example we
7:42
will use the free click programming
7:43
software with a click plus
7:45
PLC The Click series will install the
7:48
program communicate the instructions and
7:51
controller using the address picker
7:54
enter as many address names as you can
7:56
think of that we will use in the program
7:58
as you write the program we can
8:00
continuously document and add additional
8:04
addresses to access the address picker
8:06
selected from the main menu program
8:08
address picker this can also be assessed
8:10
in the navigation window in the program
8:12
tab under the ladder program
8:22
heading the first run will control the
8:24
start stop bit for the sequencer this is
8:26
an internal bit C1 this bit will be used
8:29
as is a condition in the entire program
8:31
a counter is used as the primary control
8:33
for the steps in the sequencer we
8:35
compare the steps and input conditions
8:37
that will move the program to The Next
8:40
Step the reset of our sequencer or
8:43
counter will come from the first scan of
8:45
the PC are when Step 13 of our program
8:49
happened our start stop bit and a
8:51
sequence number will control the outputs
8:53
for our program conditions for the PLC
8:56
outputs can be placed on this rung for
8:58
the conveyor be turned on piston 1 must
9:03
back cylinder 1 control Advanced output
9:07
must also have a timer this is because
9:09
the cylinder may not extend when
9:10
multiple boxes are on the table so the
9:13
extend sensor may not signal we also may
9:16
require a quick 500 millisecond timer to
9:18
ensure separation in the advance and
9:20
return signals within the
9:28
sequence sequence numbers will determine
9:30
when outputs will activate as we go
9:32
through all the physical outputs the
9:35
advantage of using a counter is the
9:36
control for the sequencer is that we
9:38
when we program we can test our logic
10:54
this is the end of the lad Logic for our
10:55
pneumatic Pusher program
11:27
select the comp port on the setup
11:30
selection on the main menu the available
11:33
ports on the click PLC are displayed
11:34
using modbus TCP ethernet we can set up
11:38
either the WL Wireless local network or
11:41
the port 1 ethernet select setup for
11:46
one if you want to go directly to the
11:48
comport setup details window select
11:50
comport one setup under the CPU
11:52
configuration of the function tab on
11:57
window a static IP IP address will be
11:59
used for a click PLC this ensures the IP
12:02
address on a network can always be found
12:05
note that the IP address we are using
12:07
this will be used later for a Pneumatic
12:09
pusher machine simulation
12:13
connection under the setup menu on the
12:15
main screen we will also see modbus TCP
12:17
this will show us the default parameters
12:19
for our ethernet port and allow us to
12:21
enable the modbus TCP server this is
12:24
enabled by default on the controller we
12:26
will leave everything as its default
12:30
our click PLC plus is now set to
12:32
communicate to our machine simulator
12:36
server download The Click ladder logic
12:39
program to The Click plus PLC ensure
12:41
that the PLC is in run
12:45
mode if you're enjoying this video
12:47
please hit the like button below keeping
12:49
up with all the latest automation
12:50
Innovations can be difficult so hit the
12:52
Subscribe button remember to click the
12:54
Bell beside your subscription to
12:56
actually receive those notifications
13:03
program we will now use modbus TCP on
13:06
our click plus PLC to communicate with
13:21
simulator call up the pneumatic pusher
13:23
machine simulator in start mode
13:36
the status of the machine simulator will
13:37
be at the bottom left corner of the
13:40
screen currently we have no PLC
13:43
connected select iio drivers on the top
13:47
screen the machine simulator IO number
13:50
will be displayed ensure we select more
13:52
IO than required for pneumatic pusher
13:56
machine the easy PLC driver is
14:00
default under the driver pull down menu
14:02
select modbus driver this driver will
14:04
communicate modbus TCP ethernet and
14:06
modbus rtu serial select the down arrow
14:14
name select the configure
14:17
button we can now enter the information
14:19
of our modbus driver select TCP IP this
14:22
means the ethernet port on our computer
14:24
will communicate with the click
14:26
PLC the digital inputs from MS to The
14:29
Click PLC will be c101 to
14:32
c106 this will start at address
14:35
16484 due to the offset of one digital
14:39
outputs from Ms to The Click PLC will be
14:41
C 20101 to c208 this will begin at
14:45
address 16584 due to the offset of one
14:52
button you will now see the inputs and
14:54
outputs specified for our modbus driver
14:56
we can manually assign the driver
14:58
outputs to the PLC inputs and the driver
15:03
outputs however the automatic assignment
15:06
works well and will save you time select
15:08
automatic assignment from the driver
15:10
option in the main menu this will
15:13
automatically assign the PLC iio to the
15:16
iio select start driver and exit from
15:24
menu at the bottom left side of the
15:27
window the driver communicates with the
15:29
click plus PLC select VI iio to know the
15:31
input and output status of the machine
15:35
simulator ensure that the click PLC is
15:37
in run mode we can see the operation of
15:39
our pneumatic pusher
15:56
machine please select the first switch
15:58
on your click p PLC to start the
16:00
sequencer the digital inputs and outputs
16:03
of the MS will correspond to the PLC
16:07
controller using the data View Window of
16:10
the click programming software we can
16:11
watch the inputs and outputs
16:15
operate using a machine simulator Ms to
16:18
test the program will ensure that our
16:19
program works troubleshooting is quickly
16:21
done without damage to any physical
16:24
Hardware you can practice your
16:26
modification debug by modifying
16:28
pneumatic pusher operation in the
16:29
following ways add a start stop control
16:33
machine add a jog button to the control
16:36
panel to sequence through the
16:38
steps calculate the rate of the
16:40
pneumatic pushers per hour this can be
16:42
used later on to create a maintenance
16:45
program let me know how you made out in
16:52
below to learn more about using five
16:54
steps to PLC program development click
16:57
here click here to to learn more at the