Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

LAB NO.

03

AUTOMATION AND ROBOTICS

SET AND RESET FUNCTIONS


The set command allows this input to energize an output, and keep it energized even if the input is
turned off.
The set command also allows you to energize multiple outputs from a single input as shown in the
example above, but multiple outputs are not necessary with this function. Once an output is energized
with the "SET" command, it will remain on until it is reset.
The reset function will reset, or turn off the outputs or variables as shown in the example.
In the example, when the input "X1" is turned on, the outputs: Y5-Y22 will reset to the off position.

END
The end is basically what it says. It's the end statement. It doesn't really do anything except to say,
well, youre done programming. However, no program will work without an end statement and the
PLC will ignore any code put in after an end statement.
The end statement can be used in debugging by ending the program early and disabling commands
that fall after the end statement.
In this simplest of examples a digital input (like a button connected to the first position on the card)
when it is pressed turns on an output which energizes an indicator ligt.

IM-023
Rohit Wadhwani

LAB NO.03

AUTOMATION AND ROBOTICS

LAB TASK CIRCUITS


Consider a
including 5
.When man
room light
when leave
light will
using SET
command
system.

IM-023
Rohit Wadhwani

program,
lights
enter
in
will on and
the room
off.
By
& RESET
on
plc

You might also like