0:01
unlocking click PLC and machine
0:03
simulator integration a game Cher for
0:05
Industrial Automation
0:07
Professionals in increasing
0:09
sophisticated Industrial Automation
0:11
error seamless integration between
0:13
paramal logic controllers PLC and
0:15
simulation tools is more critical than
0:17
ever machine simulator by narch is a
0:20
sophisticated yet simple software for
0:22
creating virtual simulations of
0:24
industrial machinery and processes it
0:26
enables you to visualize and test your
0:28
systems in Virtual environment before
0:30
implementing them in the real
0:32
world click plc's have been a long
0:35
staple for automation Engineers offering
0:37
a reliable and userfriendly solution for
0:39
various control processes however
0:42
integrating click plc's with machine
0:44
integrator unlocks a whole new level of
0:47
potential this post will explore the
0:49
benefits and methologies of unlocking
0:52
click plc's and machine similar
0:54
integration we will be using the machine
0:56
simulator test conveyor example this
1:00
practical example we utilize The Click
1:01
PLC modbus TCP Communications to the
1:04
simulator modbus server driver let's get
1:08
started detailed information contained
1:10
in this video can be found at ACC
1:31
machine simulator by narac is
1:32
sophisticated yet uncomplicated software
1:34
that is part of a price competitive
1:36
machine simulator Suite easy
1:38
PLC it can create virtual simulations of
1:41
industrial machinery and processes
1:43
enabling engineers and automation
1:45
professionals to visualize and test
1:47
their systems in a virtual environment
1:49
before implementing them in the real
1:51
world the latest modbus server driver
1:54
lets you place the machine simulator
1:56
scene on your network multiple devices
1:58
such as plcs and HMI can access and
2:01
control the system this contrasts
2:04
traditional machine simulators which can
2:05
only act as a modbus client
2:07
communicating with just one device
2:09
machine simulator by narch gives you the
2:14
option machine simulator modb server
2:20
machine we will use a pre-built scene in
2:23
the machine simulator Ms start the
2:25
machine simulator and select machines
2:27
icon on the top menu you can also select
2:30
open machine start simulation on the
2:33
page all of the pre-built machines will
2:35
now be displayed they have been program
2:38
so you can immediately start learning
2:40
package we will use the zero first test
2:45
example selections will be displayed As
2:47
you move your mouse over the machine
2:49
icon select the explanation point in the
2:55
corner this will display the machine
2:57
description of what you need to program
2:59
the the object is to move the pallet on
3:01
the roller conveyor first to the right
3:03
PLC digital output one until the photo
3:05
sensor on the right activates the
3:07
digital input zero to the
3:09
PLC then the rotation of the conveyor
3:12
rollers is activated so the Box moves to
3:14
the left PLC digital output one until
3:17
the photo cell on the left side is
3:18
activated PLC digital input one then
3:21
reverse the rotation of the rollers
3:28
close the demo mode will will
3:29
demonstrate how the machine
3:55
start the machine simulator will now
3:57
load the conveyor example
4:01
in the bottom left corner you will see
4:05
connection select IO drivers on the top
4:10
menu under the driver name you will see
4:12
that this easy PLC is selected by
4:14
default select easy PLC to call up the
4:18
machine simulator drivers select modbus
4:21
server driver the modbus server driver
4:24
uses tcpip protocol on ethernet to
4:26
communicate with other modbus devices
4:34
button we can now assign the machine
4:36
simulator's digital inputs and outputs
4:38
to the two different mod bus memory
4:39
areas in our case the plc's coil outputs
4:45
inputs the PLC digital inputs will be
4:49
outputs Although our machine does not
4:51
use any analog inputs we can still use
4:53
set this up modbus PLC holding registers
4:56
be used as analog inputs and the PLC
4:59
analog input registers will be the MS
5:02
outputs the machine simulator uses
5:05
analog scaling and subtraction factors
5:07
to represent negative numbers since
5:08
modbus analog is a 16-bit
5:16
okay our PLC inputs and outputs are now
5:18
displayed we can assign the inputs and
5:20
outputs to our machine simulator IO this
5:23
can be done by direct clicking and
5:24
dragging the PLC input to the machine
5:26
simulator input and the PLC output to
5:28
the machine simulator output however you
5:32
can select automatic assignment from the
5:34
driver menu this will automatically
5:37
assign the inputs and outputs in the
5:38
order they appear saving you time select
5:46
assignment under the exit menu select
5:51
exit our test conveyor example is now
5:54
ready for communication the green driver
5:56
connected indicated on the bottom of the
5:59
screen indicates Ates
6:00
this select view iio to show the ms's
6:03
inputs and output status since this is a
6:06
modbus server setup we can use multiple
6:08
modbus clients to communicate to our
6:13
simulator IP address of machine
6:17
Simulator the IP address of our MS
6:20
conveyor example will be the IP address
6:22
of the local computer running the
6:24
software if you are unsure start a
6:26
command prompt on your Windows computer
6:29
type the command ip config space SL all
6:32
and press enter you will now see the IP
6:35
address listed we will need this
6:37
information to configure the modbus
6:38
client device which in our case is the
6:43
PLC the realistic simulation environment
6:46
is now on the network as a modbus TCP
6:49
ethernet server we can now test or
6:51
create multiple control programs for our
6:54
selected simulation scene integrating
6:57
with multiple plc's or program logic
6:59
controllers including the click PLC is
7:01
easy as the PLC now acts as the modbus
7:05
client this costeffective training tool
7:07
reduces the cost and risk of working on
7:14
machines what is Click
7:17
PLC click PLC is a compact and
7:20
affordable controller designed by coil
7:22
electronics and sold through its
7:23
subsidiary automation direct it is ideal
7:26
for small to medium-size automation
7:28
projects its intuitive design Rich
7:31
features such as high-speed counting and
7:33
variety of IO make it a favorite among
7:36
Engineers however the need for
7:38
integration simulation tool becomes
7:39
apparent as projects become increasingly
7:42
complex integrating click PLC with
7:45
machine simulator creates a robust
7:46
testing environment Engineers can
7:49
simulate process flow monitor system
7:51
behaviors and troubleshoot potential
7:53
issues in a virtual setting before
7:55
deploying actual systems this can
7:57
significantly reduce the time and cost
7:59
associated with the on-site
8:04
troubleshooting setting up the click PLC
8:06
configuration and communication
8:09
ports we can install and start this
8:12
package on our computer using the free
8:14
click PLC programming software the
8:16
entire click PLC series can be found
8:20
here once the click programming software
8:22
starts you will see the startup
8:25
window select start a new project
8:30
the select a CPU module window will now
8:32
be displayed scroll down and select the
8:37
programming select c2-05 CPU for a click
8:41
PLC that we will program and select
8:45
okay the user account setup window will
8:48
appear select disabled password
8:50
requirement and then press
8:52
okay we can select system configuration
8:55
on the Home tab under CPU or on the
8:57
function tab of the navigation window
9:00
configuration the system configuration
9:03
allows us to specify the inputs and
9:04
output PLC cards we have or will
9:09
install when the syst configuration
9:11
window is displayed it shows a picture
9:12
of the CPU and the current system I/O
9:15
the software will determine the power
9:17
available and required for configuring
9:19
The Click PLC as part of the
9:20
configuration this is located under
9:22
power budget under the power supply PS
9:28
c-018 AC unit this will provide 1,300
9:32
milliamps of power which is more than
9:34
enough for anything we can install on
9:39
okay under slot zero select the select
9:42
button we will add the C 0- 08 dr-4 VC
9:48
card for the slot on the
9:51
CPU select module configuration The
9:54
Click PLC has an automatic scaling for
9:56
the analog input and output points enter
9:59
the data register df1 to automatically
10:05
okay selecting okay again will bring us
10:08
back to the system configuration window
10:10
where we can now see our click PLC and
10:15
assigned at the top of the window we can
10:18
PLC enter a name and select okay the
10:21
name will appear on the network
10:22
indicating which PLC we want to
10:24
communicate with using the click
10:27
software we can now examine the the
10:29
communication port settings on our click
10:31
PLC while still on the function tab of
10:34
the navigation window we can select comp
10:37
setup the comp Port setup details window
10:40
will now be displayed under the port
10:42
setting we can choose all the different
10:43
ports available on this PLC
10:46
model Port one is our ethernet port
10:48
settings this port's wiring and system
10:51
addresses can be seen in the middle and
10:53
right side of the window we will set a
10:55
static IP address for Port one and
10:57
ensure its location on our Network we'll
11:00
also set the DNS server addresses for
11:02
the ethernet port select
11:06
okay under the CPU selection on the Home
11:09
tab we will select the modbus TCP setup
11:12
this will show the modbus client and
11:14
server enables and default
11:16
selections we will leave everything as
11:18
your default and select
11:21
okay let's also set up the wireless Port
11:24
setting on our click PLC under the CPU
11:27
on the Home tab select wire less Port
11:30
setup once again our comp Port setup
11:33
details window will be displayed we can
11:35
enable the wireless lay and assign a
11:37
static IP address and DNS server
11:51
port the SSID and password for the
11:53
existing wireless network must be
11:59
we can now save our program with a
12:07
name we are now ready to begin
12:10
programming our communication to the
12:16
simulator click PLC modbus TCP client
12:21
routine a separate sub routine will
12:23
handle the modbus TCP client
12:25
communication to machine simulator
12:26
conveyor example to start a a new sub
12:29
routine right click on the sub routine
12:31
program under the program tab of the
12:34
navigation window then select add new
12:37
sub routine program or control
12:40
U we can now enter the name of this new
12:43
routine select okay our new sub routine
12:47
appears on the sub routine program
12:49
heading in a navigation window a sub
12:52
routine quick guide is displayed select
12:56
okay our communication sub team will
12:58
have a send and receive instruction on
13:00
leading and trailing edges of the 100
13:05
bit the send command will be modbus out
13:08
of port one enter the server or slave IP
13:12
address that we obtained
13:14
previously we will leave the server port
13:16
number as the default 502 and use the
13:18
slave ID 1 the modbus function code will
13:22
be 15 to write multiple
13:25
coils our addressing will be modbus 984
13:29
four and the starting slave address will
13:31
one C1 will be the starting Master
13:34
address and we will send three bits of
13:37
information the status Flags will be set
13:39
for internal bits to use later in our
13:45
okay the receive command will be the mod
13:48
bus out of port one enter the server or
13:50
slave IP address that we obtained
13:52
previously we will leave the server port
13:54
number as a default 502 and use the
13:57
slave ID 1 the modbus function code will
14:00
be o02 to read the input
14:02
status our addressing will be modbus 984
14:06
and the starting slave address will be 1
14:12
0000001 c101 will be the starting Master
14:16
address and we will read three bits of
14:19
information the status Flags will be set
14:21
for internal bits to use later in our
14:27
okay insert wrong at the beginning of
14:30
the sub routine when the first bit SC2
14:32
is turned on we will set an internal bit
14:35
c1899 to indicate that communication
14:38
reset is required this will also turn
14:40
off our internal communication bit
14:44
c1900 Rong two will have a negative
14:47
communication bit and not the sending
14:48
bits for both send and receive
14:50
instruction this will also have the
14:52
Leading Edge of the 100 millisecond
14:54
clock bit flag in series to reset the
14:56
communication reset bit and set the
15:01
using the address picker under the
15:03
program tab of the navigation window we
15:05
can document all the internal bits we
15:22
program rung five will add a
15:24
communication timeout circuit if the
15:27
received success bit is not turned on in
15:29
1 second a timer expires and an output
15:32
y1 will be turned on this will indicate
15:36
that Communications have been lost Rong
15:38
six will set the output after the timer
15:41
expires Rong s will reset the output on
15:44
the receiving success bits Leading
15:48
Edge use the address picker to document
16:07
Rong 8 will have the return this marks
16:10
the end of the program for the sub
16:12
rutine returning to the main program of
16:14
the navigation window we can use the
16:16
first rung to call up the communication
16:18
sub rutine save the program
16:32
on the Home tab select the connect
16:34
button in the connect to click PLC
16:37
window select our PLC and choose
16:40
connect select don't read the project
16:43
from the PLC and select
16:45
okay on the Home tab select right
16:48
project this will compile the program in
16:50
the click programming software and then
16:51
transfer it to the plc
17:02
once the click PLC program is
17:03
transferred we can put the PLC in run
17:19
mode our communication is now working
17:23
from the navigation window call up the
17:25
data View Window enter the inputs and
17:27
outputs for the machine simulator
17:40
example returning to the machine
17:42
simulator we can now change the outputs
17:45
in the data view window and watch the
17:49
function we can now move on to creating
17:53
conveyor if you are enjoying this video
17:56
please hit the like button below keeping
17:57
up with the latest automation
17:59
Innovations can be difficult so hit the
18:00
Subscribe button remember to click the
18:03
Bell beside your subscription to
18:04
actually receive those
18:17
notifications click PLC control Logic
18:23
example we will write the latter logic
18:25
program to control the conveyor example
18:27
using the five steps for developing a
18:30
program since this is a simple circuit
18:33
we have two inputs and outputs from our
18:35
machine Simulator the modbus TCP
18:38
communication from the outputs is C1 and
18:41
C2 the inputs are c101 and
18:44
c102 using the description from the
18:47
conveyor example in the machine
18:48
simulator we know the sequence of
18:51
operation the last steps are writing and
18:55
logic under the call to the sub rutine
18:58
we will a couple rungs on the main
19:00
program when neither output is on we
19:03
will set C1 and reset C2 moving the box
19:07
right the next rung will have C1 on and
19:11
when the right sensor turns on we will
19:13
reset C1 and C2 sending the box to the
19:18
left returning to the previous rung when
19:21
C2 is on and sensor c102 comes on we
19:25
will also set C1 and reset C2
19:30
using the address picker we can document
19:50
outputs save and transfer the program
20:10
testing and operation of the
20:13
system we can now call up the data View
20:16
Window like before and watch our program
20:18
in action on the conveyor
20:20
example machine simulator allows us to
20:23
conduct extensive testing of our system
20:26
we can evaluate the performance of our
20:27
PLC in the simulated environment
20:29
identifying any discrepancies and
20:31
rewrite the logic as needed to refine
20:33
both the PLC program and a simulation
20:37
model unlock the integration between
20:39
click PLC and machine simulators
20:41
presents many benefits for automation
20:45
professionals integration enhances
20:47
testing environments improves design
20:49
validation provides real-time monitoring
20:51
and facilitates training enabling
20:53
Engineers to create safer more efficient
20:56
systems overall Nar Tex machine
20:59
simulator is an invaluable tool for
21:00
optimizing automation processes
21:03
enhancing training and ensuring system
21:04
reliability through effective design
21:08
testing to learn more about machine
21:11
simulator and how to create the Ultimate
21:12
Machine learning package click
21:15
here click here to see the entire
21:17
machine simulator series