3
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, you’re 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. IM-023 Rohit Wadhwani

A & R PRAC 4

Embed Size (px)

DESCRIPTION

set reset and end comand

Citation preview

Page 1: A & R PRAC 4

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, you’re 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

Page 2: A & R PRAC 4

LAB NO.03 AUTOMATION AND ROBOTICS

LAB TASK CIRCUITS

Consider a program, including 5 lights .When man enter in room light will on and when leave the room light will off. By using SET & RESET command on plc system.

IM-023 Rohit Wadhwani