beautypg.com

12 - using high-speed counter instructions, Using high-speed counter instructions, Programming – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 215

background image

Using High-Speed Counter Instructions

12–1

12

Using High-Speed Counter

Instructions

This chapter contains general information about the high-speed counter instructions
and explains how they function in your application program. Each of the
instructions includes information on:

what the instruction symbol looks like

typical execution time for the instruction

how to use the instruction

In addition, the last section contains an application example for a paper drilling
machine that shows the high-speed counter instructions in use.

High-Speed Counter Instructions

Instruction

Purpose

Page

Mnemonic

Name

Purpose

Page

HSC

High-Speed Counter

Applies configuration to the high-speed
counter hardware, updates the image
accumulator, enables counting when the HSC
is true, and disables counting when the HSC
rung is false.

12–6

HSL

High-Speed Counter
Load

Configures the low and high presets, the
output patterns, and mask bit patterns.

12–18

RES

High-Speed Counter
Reset

Writes a zero to the hardware accumulator
and image accumulator.

12–21

RAC

High-Speed Counter
Reset Accumulator

Writes the value specified to the hardware
accumulator and image accumulator.

12–22

HSE

HSD

High-Speed Counter
Interrupt Enable
High-Speed Counter
Interrupt Disable

Enables or disables execution of the
high-speed counter interrupt subroutine when
a high preset, low preset, overflow, or
underflow is reached.

12–23

OTE

Update High-Speed
Counter Image
Accumulator

Provides you with real-time access to the
hardware accumulator value by updating the
image accumulator.

12–24

Programming