Ol2252 dual pulse counter cont’d, Theory of operation – Nematron OptiLogic Series User Manual

Page 23

Advertising
background image

Optimation, Inc.

(256)883-3050

23

www.optimate.com

OptiLogic Series

OL2252 Dual Pulse Counter cont’d

The OL2252 Dual Pulse input module is

designed to provide two independent pulse
counting inputs. Each input is independent of
the other. There are also a number of
configuration options available.

The following is a list of the input

connections.

Terminal

Label

Description

1

Common

Sourcing or sinking return line

2

Common

Sourcing or sinking return line

3

Pulse 1

Square wave input up to 15KHz

4

Pulse 2

Square wave input up to 15KHz

5

Reset 1

If configured as

“reset” input ,

will clear the pulse 1 count

when activated. If not

configured as

“reset” input, can

be used as a general purpose

input.

6

Reset 2

If configured as

“reset” input ,

will clear the pulse 2 count

when activated. If not

configured as

“reset” input, can

be used as a general purpose

input.

7

Enable 1

If configured as an

“enable”

input, enables the pulse 1

counter when active. If not

configured as an

“enable” input,

can be used as a general

purpose input.

8

Enable 2

If configured as an

“enable”

input, enables the pulse 2

counter when active. If not

configured as an

“enable” input,

can be used as a general

purpose input.

9

Input 6

General purpose input

10

Input 7

General purpose input

Theory of Operation

The OL2252 Pulse Counter has two

independent pulse counter inputs. These pulse
counter inputs will accurately count pulses
between 0 and 15KHz.

All counts begin at zero and count up to

the maximum number the counter can hold
(4,294,967,295). If the count should ever get
that high, it will roll over to zero.

In order to count, the count input must be

enabled. A message with an enable must come
from the host PC. The module can also be set up
to use the local hardware input enable (in
addition to the enable message). If you are using
Think & Do, all of this set up and signaling is
part of your Think & Do program. If you are
using Visual Basic or C, please refer to the
interface software manual.

The count can be reset to 0 at any time.

Again there is both a reset message that can be
sent from the PC and an optional hardware reset
signal.

Whether the hardware

“reset” and

“enable” are used is set up from the host PC via a
configuration message. Think & Do will take
care of the details. Visual Basic and C users can
also easily send this message as part ot their
application program.

Advertising