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