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

Page 75

Advertising
background image

Function Block Library

4–13

1336 FORCE — 5.9 August 1995

DERIV

BLOCK TYPE 7 decimal 7 hexadecimal

Derivative

ID =

Exec =

Out

NODE 0

In

NODE 1

t

IN

DEFINITION

The rate of change of input In over a single sample interval.

Τ

he

sample interval

t = .020 seconds. Output Out is clamped at

±

32767

and not allowed to over or under flow.

INPUT

In — A signed Integer.

OUTPUT

Out — A signed integer representing the derivative or change in
input in units per second.

FUNCTION

Out = 50

×

[InIn (previous)].

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

In

Signed Integer

Yes

0

±

32767

Out

Signed Integer

Yes

±

32767

Example 1

0

20

t

1

at t

1 Out = 5000

at t

2 Out = 5000

at t

3 Out = 2500

at t

4 Out = 2500

t

2

t

3

t

4

t in mS

IN

300

200

100

40

60

80

500

400

100

120

Advertising