beautypg.com

High-speed counter reset (res), Programming – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 235

background image

Using High-Speed Counter Instructions

12–21

High-Speed Counter Reset (RES)

The RES instruction allows you to write a zero to the hardware accumulator and
image accumulator.

The Counter referenced by this instruction has the same address as the HSC
instruction counter and is entered as C5:0.

Operation

Execution of this instruction immediately:

removes pending high-speed counter interrupts

resets the hardware and instruction accumulators

reset the PE, LS, OV, UN, and DN status bits

loads the instruction high preset to the hardware high preset (if the high-speed
counter is configured as an up counter)

resets the IL, IH, IN, or IV status bits

You can have more than one RES instruction in your program.

Programming

Execution Times

sec

)

when:

True

False

51.00

6.00

RES

C5:0

)

)