0:03
In this video, I am going to show you
0:04
how I use AI to help me program an
0:06
AutomationDirect Click PLC.
0:09
We will describe a simple machine in
0:11
plain English, let the AI turn that into
0:13
a ladder logic plan and an address list,
0:15
and then build it in the free Click
0:18
And just as important, I will show you
0:20
where the AI gets it wrong because that
0:22
is the part you cannot skip.
0:26
You can follow the whole workflow for
0:27
free. The AI help, the Click software,
0:30
and prototyping the logic in a free
0:32
online ladder simulator all cost
0:35
When you are ready to test the real
0:36
program, you will need the Click PLC
0:38
itself, and that is one of the least
0:40
expensive PLCs you can buy.
0:45
Detailed information contained in this
0:46
video can be found at accautomation.ca.
0:50
A link has been put in the description
0:52
below. The website offers extensive
0:54
links, references, and coding samples,
0:56
making it a one-stop shop for all your
1:00
Once again, that is accautomation.ca.
1:05
What AI can and cannot do.
1:08
First, let me set expectations because
1:10
there is a lot of hype right now.
1:13
AI will not push a finished program into
1:17
It does not open the Click software. It
1:19
does not know your wiring, and it cannot
1:21
test itself against a real motor.
1:25
What it will do, and it does this well,
1:27
is act like an experienced programmer
1:32
You describe the machine and it hands
1:33
back an address list, a rung-by-rung
1:35
plan, and a plain English explanation of
1:40
Think of it as a knowledgeable helper,
1:44
You are still the programmer.
1:48
Getting the free tools ready.
1:51
I always start with the free tools.
1:54
Download the Click programming software
1:56
from AutomationDirect. The link is in
2:01
This is where we will build the ladder
2:04
For the AI side, I just use an assistant
2:06
in my web browser and type my request in
2:08
plain [music] English.
2:11
One thing to know up front, the Click
2:13
software does not have an offline
2:14
simulator, so you cannot run a program
2:16
without the PLC connected.
2:19
That is fine for learning. To prove out
2:21
the logic with no hardware, I prototype
2:23
it in a free online ladder simulator.
2:31
Then, to test the real program, I
2:33
connect the Click PLC, go online, and
2:35
use the data view window to force and
2:37
monitor the bits before it drives a real
2:41
Describing the machine to the AI. Here's
2:43
the most important lesson in the whole
2:45
video. The quality of what you get back
2:47
depends on how you describe the machine.
2:53
So, I give the AI the same information I
2:55
would give a co-worker. Watch what I
2:58
I want to start and stop a motor.
3:01
The start push button is normally open,
3:03
wired to input X1. The stop push button
3:05
is normally closed, wired to input X2,
3:07
so X2 is on when it is not pressed.
3:11
The motor contactor is on output Y1.
3:14
Give me the ladder rungs using Click
3:15
addressing, explain each rung, and tell
3:17
me the safe way to handle the stop
3:21
Notice how specific that is. Exact
3:23
addresses, how the buttons are wired,
3:25
and what the output drives.
3:28
That detail about the stop button being
3:30
normally closed is going to matter a lot
3:38
The first thing the AI gives back is an
3:40
address list, and this is [music] a
3:42
great habit to build.
3:44
X1 is our start push button, X2 is the
3:46
stop, Y1 is the motor.
3:48
I take those straight into the address
3:50
picker in the Click software and give
3:52
them the same nicknames so the program
4:00
A tidy address list is half of a good
4:02
program and letting the AI produce it
4:04
for you is one of the quiet time-savers
4:08
Building the ladder logic.
4:10
Now the useful part, the AI describes a
4:12
single rung and I build it one contact
4:17
A normally open contact for the start
4:21
In parallel with it, a branch
4:22
underneath, a normally open contact for
4:27
Those two go in series with a normally
4:29
open contact for the stop input, X2, and
4:32
the rung ends with the output coil, Y1.
4:35
That is the classic sealing circuit.
4:40
Press start, X1 closes, Y1 energizes,
4:43
the Y1 branch then seals the rung so the
4:45
motor keeps running after I let go.
4:48
Because the stop button is normally
4:50
closed, X2 is already on and lets
4:54
Press stop, X2 drops out, the rung
4:56
breaks, the motor stops.
4:59
Now the Click software has no offline
5:00
simulator so I connect the PLC, go
5:03
online, and open data view.
5:10
From there I force the start and stop
5:12
bits and watch the output turn on and
5:14
off with the motor disconnected before I
5:45
When the AI gets it wrong.
5:48
Here is the honest part and the reason
5:49
you never paste AI logic straight into a
5:54
The most common mistake I see is with
5:57
Sometimes the AI tells you to wire the
5:59
button normally closed and use a
6:01
normally closed contact for X2 in the
6:05
That is a double negative. At rest X2 is
6:07
on, a normally closed contact would be
6:09
open and the motor would never start.
6:13
Other times it assumes a normally open
6:15
stop button, which works on the bench
6:16
but is unsafe because a broken wire
6:18
would leave you unable to stop the
6:22
I catch these two ways every time.
6:25
First I ask the AI to explain the rung
6:27
back to me in plain English and I check
6:29
it against what I know about my wiring.
6:32
Second, I test it on the PLC with the
6:34
field wiring off, forcing the bits in
6:36
data view and watching the output before
6:39
it controls a real motor.
6:42
The AI is a fast helper, but you are the
6:43
safety check that never changes.
6:46
If you are enjoying this video, please
6:48
hit the like button below.
6:50
Keeping up with all the latest
6:51
automation innovations can be difficult,
6:53
so hit the subscribe button. Remember to
6:55
hit the bell beside your subscription to
6:57
receive the notifications.
7:00
Explaining and troubleshooting existing
7:04
The workflow runs the other way, too,
7:06
and this is where I get the most value
7:09
When I open an old program and cannot
7:11
remember why a rung exists, I describe
7:13
it to the AI and ask what it does and
7:17
It walks through the logic and often
7:19
points out an interlock I had not
7:20
considered. It is a second set of eyes
7:22
that never gets tired.
7:25
So, that is where AI fits with a CLICK
7:29
It will not replace you and it will not
7:31
program the machine for you.
7:33
But, it will help you plan faster, learn
7:34
the instructions more deeply, and catch
7:36
your own mistakes sooner, all while you
7:38
keep your hands on the free CLICK
7:40
software and prove the logic yourself.
7:43
The full written walkthrough, the
7:45
address list, and all the free download
7:46
links are on the blog, link in the
7:50
If you have any questions, drop them in
7:52
the comments and I will answer.
7:55
New tutorials every Monday, subscribe
7:57
and hit the bell and I will see you in