beautypg.com

Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 104

background image

Function Block Library

4–42

1336 FORCE — 5.9 August 1995

PULSE CNTR

BLOCK TYPE 18 decimal 12 hexadecimal

Pulse Counter

ID =

Exec =

Out

NODE 0

In

NODE 1

Set

NODE 2

Preset

NODE 3

DEFINITION

Counts the rising edges of input signal In.

INPUTS

In — A logic input signal.

Set — A logic level value that preloads the pulse counter
accumulator with the Preset value when

0.

Preset — A signed integer that is preloaded into the pulse counter
accumulator when Set

0.

OUTPUT

Out — A signed integer that is incremented on every rising edge of

input signal In. Out increments to the positive limit but is
not allowed to roll over.

FUNCTION

If Set is true, then Out = Preset value.

If Set is false, then Out = Out + 1 on rising edge of In.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

In

Logic Input

Yes

0

True/False

Set

Logic Input

Yes

0

True/False

Preset

Signed Integer

No

0

±

32767

Out

Signed Integer

No

0

±

32767