0:03
instruction list IL in PLC programming
0:06
is a textual programming language
0:08
similar to assembly code where the
0:10
program is written as a series of
0:11
instructions executed sequentially this
0:14
is a low-level language used to control
0:16
programmable logic controllers or plc's
0:19
instruction lists are considered one of
0:20
the five standard PLC programming
0:22
languages defined by the I
0:27
standard we will program our first
0:29
instru C list IL IEC in our LS electric
0:33
xgb PLC xgb I programming is commonly
0:37
used when the programmer is familiar
0:39
with programming in assembly code ilil
0:42
can execute quickly making it suitable
0:44
for time critical applications and where
0:48
required using instruction list
0:50
programming we will explore the
0:51
fundamentals of programming an xgb PLC
0:54
we will be programming our lighted push
0:56
buttons to control a start stop circuit
0:58
the initial code will be created cre
1:00
using regenerative AI this will show the
1:02
basics of the IEC programming language
1:06
started detailed information contained
1:08
in this video can be found at ACC
1:27
automation.com software for the LS
1:29
electri PLC controllers under the main
1:32
menu project select new project this can
1:35
also be selected using the shortcut
1:37
combination of control+ n there's also a
1:41
new project icon on the main
1:43
screen the new project window will now
1:46
displayed give the project a name the
1:49
directory where this program is to be
1:51
stored can also be set under the PLC
1:54
section select the PLC that we will be
1:56
programming the CPU series is an xgb i
2:01
the typee is it XM dxxx H2 and we will
2:05
leave the default name LS
2:08
PLC under the program heading we will
2:10
name the ilil program and select I IEC
2:16
language a project description can also
2:18
be put into the new project window to
2:20
document where what we were trying to do
2:22
select okay the new program that we name
2:25
will now be displayed this is where we
2:28
will program our instruction list I code
2:31
if we expand the programming name under
2:33
the project window we will see the local
2:37
list as we program ensure that you save
2:40
often this can be done with the main
2:42
menu icon or main menu project
2:51
summary instruction list programs are
2:54
portable and compatible with all text
2:56
editors iil executes one command per
2:58
line and can be applied applied to
3:00
simple PLC programs programming is
3:03
simple for someone familiar with the
3:04
assembl language but we will use a
3:08
method The Help menu in chapter 17 for
3:11
the IL instructions in the XM PLC lists
3:14
all of the commands and provides
3:17
examples here is the basic operator
3:20
table for instruction list
3:23
programming comments in ilil can take
3:26
two forms on line non-executable
3:29
statement use the backslash and are
3:32
executed until the end of the line block
3:35
non-executable statements process
3:37
characters between the uh forward
3:39
bracket star and the star back
3:43
bracket one of the easiest ways to learn
3:46
or expand on your knowledge of
3:47
instruction list ilil is to use
3:49
artificial intelligence
3:54
AI artificial intelligence AI for
3:56
programming IL PLC instruction list code
4:03
regenerative artificial intelligence AI
4:05
can be used to create programs using I
4:07
this is because IL is a text based
4:10
language that follows rules and
4:11
guidelines making it an ideal candidate
4:13
for machine learning algorithms chat GPT
4:16
is a powerful AI tool that can generate
4:18
code in I for a start stop circuit we
4:23
gpt2 create an i PLC program with green
4:26
normally open and red normally closed
4:28
push buttons when the green push button
4:31
is pressed and not the red push button
4:33
the green LED light will latch on and
4:35
the red LED light will be off if the
4:38
green LED light is on the red LED is off
4:48
versa here's an i instruction list PLC
4:51
program that meets your requirements
4:52
logic explanation the green push button
4:54
pbor green is normally open the red push
4:57
button pbor red is normally closed when
4:59
the green push button is pressed and the
5:00
red push button is not pressed the green
5:02
LED ledore green will latch on the red
5:05
LED ledore red will always be the
5:07
inverse of the green LED breakdown of
5:09
instructions LD pbor green loow the
5:11
state of the green push button andn pbor
5:14
red ensure the red push button is not
5:15
pressed since it is normally closed or
5:17
ledore green latch the green LED if it
5:19
was already on St ledore green store the
5:21
result to the green LED output LD ledore
5:24
green load the current state of the
5:25
green LED not invert the state to ensure
5:27
red LED is the opposite of green LED St
5:30
ledore red store the result to the red
5:32
LED output this logic ensures white
5:34
heavy check mark green LED latches on
5:35
when the green push button is pressed
5:36
while the red push button is not pressed
5:38
white heavy check mark red LED is always
5:40
the inverse of the green LED one is on
5:42
the other is off let me know if you need
5:44
modifications chat GPT did a good job we
5:47
can now copy this I program and paste it
5:49
into the coding Block in the xg5000
5:54
software the code uses a semicolon for
5:56
comments but ilil and the xgb PLC uses a
6:00
backslashes we will substitute the
6:09
program create the variable
6:13
list we have the instruction list code
6:15
but not have defined the variables we
6:17
are using under the project window in
6:19
the lslc double click local
6:22
variables this will call up the local
6:24
variables windows in our program we can
6:26
now enter the physical inputs and
6:28
outputs previously wired to our LS
6:32
PLC our sample I program will control a
6:35
start stop circuit when the start push
6:38
button is pressed the green LED will
6:40
light up and the red LED light will be
6:43
off when the stop button is pressed the
6:45
red LED will light up and the green LED
6:48
light will be off initially the red LED
6:51
will be on at the start of this IL
6:54
program save the program
7:04
program select main menu online
7:12
settings select Network browsing and
7:14
then expand the ethernet option this
7:16
will search our Network for LS electric
7:20
PLC click on the IP address found and
7:23
select okay returning to the connection
7:26
settings window we can now select
7:28
connect the bottom of of the xg5000
7:30
programming software window will be read
7:33
this tells us that we are communicating
7:34
with our xgb PLC which is in stop
7:37
mode transfer the xgb iil program to the
7:41
xgb PLC by selecting right from the main
7:43
menu online the right to PLC window will
7:46
be displayed we will leave all the
7:48
settings as their default and select
7:50
okay our program will now be transferred
7:53
to the PLC the right complete message
7:55
can be acknowledged by selecting okay
7:58
the PLC connection will then be stopped
8:00
which is the blue bar at the bottom of
8:02
the xg5000 programming software select
8:05
connect from the main menu online we
8:07
will once again be connected to the
8:15
PLC if you're enjoying this video please
8:17
hit the like button below keeping up
8:19
with the all the latest automation
8:21
Innovations can be difficult so hit the
8:23
Subscribe button remember to click the
8:25
Bell beside your subscription to
8:26
actually receive those notifications
8:34
program select the Run icon on the main
8:37
menu select yes to verify that we want
8:40
to change to run mode the bar at the
8:42
bottom of the programming software is
8:43
now green indicating that we are
8:45
communicating with the PLC and the code
8:49
running select the monitor icon on the
8:52
main menu this will show us the status
8:54
of our program as it executes in the
8:57
PLC operate the red R and green push
9:00
buttons verifying the program's
9:02
operation this xgb instruction list ilil
9:05
program was written with the assistance
9:07
of AI but the logic doesn't seem to work
9:10
let's see if we can determine the cause
9:12
and correct the start stop circuit
9:14
select the start online editing control+
9:17
Q icon the blue bars on the programming
9:19
window for the line numbers indicate
9:21
that we are programming
9:23
online we will change the and not
9:26
instruction to the and instruction this
9:28
is because the stock push button is
9:32
closed once a modification is detected
9:34
the entire program area becomes blue
9:36
indicating that a modification from the
9:39
occurred select the right modified
9:42
program contrl plus W icon the change
9:45
program will then be transferred to our
9:49
PLC select the End online edit contrl
9:52
plus u select yes when the confirmation
9:54
dialogue window box displays test the
9:57
logic again for the start stop
10:01
circuit it is still not working as
10:04
expected the LED green light will not go
10:07
off it helps to follow the logic and
10:09
think about how it is operating I can
10:12
quickly translate into lad logic
10:15
format load push button green and push
10:18
button red this is then ored with the
10:20
LED green light the output is the LED
10:24
light we can see that the start stop
10:26
push button input is inside the ceiling
10:29
contact from the LED green light we must
10:32
move this outside the ceiling contact
10:37
circuit start online editing
10:40
again we will change the an instruction
10:43
to after the or instruction in a logic
11:12
write the modified program and test the
11:22
circuit test all the different
11:23
possibilities for the inputs
11:46
working we can monitor the inputs and
11:49
outputs by selecting them from the local
11:50
variable list right click the right
11:52
Mouse button and select add to variable
11:55
monitor we will use variable monitor 1
11:59
returning to our xgb program we can end
12:04
programming select the monitor one
12:06
values we can Now operate or push
12:08
buttons and watch the input and outputs
12:13
function programming an xgb PLC using
12:16
instruction list a language offers a
12:19
powerful and flexible approach to design
12:21
control Logic for Industrial Automation
12:24
applications we can develop robust and
12:26
reliable programs for xgb plc's with
12:29
continuous learning and adaption to new
12:31
technologies you can leverage I
12:33
programming to create Innovative
12:35
Industrial Automation and control
12:38
Solutions the xg5000 programming
12:40
software allows you to troubleshoot with
12:42
visual cues and quick
12:46
AIDS now that you know I programming
12:48
click here to learn more about
12:50
programming and structured text
12:52
St click here to see all the available
12:54
information for the xgb PLC from LS