Reset (res) – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 146

Advertising
background image

Chapter 8
Using Basic Instructions

8–27

Use a RES instruction to reset a timer or counter. When the RES instruction
is executed, it resets the data having the same address as the RES instruction.

Using a RES instruction for a:

The controller resets the:

Timer
(Do not use a RES instruction with a TOF.)

ACC value to 0
DN bit
TT bit
EN bit

Counter

ACC value to 0
OV bit
UN bit
DN bit
CU bit
CD bit

Control

POS value to 0
EN bit
EU bit
DN bit
EM bit
ER bit
UL bit
IN and FD go to last state

Important: If using this instruction to reset the high-speed counter

accumulator, see page 14–19.

Entering the Instruction

You enter the instruction from within the program monitor functional area.

P 0 0 0

R E S

T 0 0

When resetting a counter, if the RES instruction is enabled and the counter
rung is enabled, the CU or CD bit is reset.

If the counter preset value is negative, the RES instruction sets the
accumulated value to zero. This in turn causes the done bit to be set by a
count down or count up instruction.

!

ATTENTION: Because the RES instruction resets the
accumulated value, and the done, timing, and enabled bits do not
use the RES instruction to reset a timer address used in a TOF
instruction. Otherwise, unpredictable machine operation or
injury to personnel may occur.

(RES)

Execution Times (

µ

sec) when:

True

False

15.19

4.25

Ladder representation:

T4:0

Reset (RES)

7

ENT

To enter the function code, press:

FUN

Advertising