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

Page 85

Advertising
background image

Function Block Library

4–23

1336 FORCE — 5.9 August 1995

FUNCTION

BLOCK TYPE 9 decimal 9 hexadecimal

Function

ID =

Exec =

NODE 0

Input

@Min Lim

NODE 8

@Max Lim

NODE 9

Output

NODE 10

NODE 1

Smp Val1

NODE 5

Smp Val5

NODE 6

Min Val

NODE 7

Max Val

NODE 4

Smp Val4

NODE 3

Smp Val3

NODE 2

Smp Val2

DEFINITION

A function generator that uses:

Sample values Smp Val1 Smp Val5 to define the y-axis
components.

(2) signed integers Min Val

&

Max Val to describe the x-axis

components spaced in (Max Val Min Val)/4 increments.

Interpolation between the y-components to calculate the output
Output.

INPUTS

Input — A signed integer specifying an x-axis coordinate.

Smp Val1 Smp Val5 — Signed integers representing the y-axis
components.

Min Val — A signed integer associated with Smp Val1 that defines
the smallest x-axis component.

Max Val — A signed integer associated with Smp Val5 that defines
the largest x-axis component.

OUTPUTS

@Min Lim — A logic value = true when Input < Min Val.

@Max Lim — A logic value = true when Input > Max Val.

Output — A signed integer representing the y-axis value, that
corresponds to the x-axis value specified by Input.

FUNCTION

1. If Input > Max Val, @Max Lim = true, @Min Lim = false, and

Output = Smp Val5.

2. If Input< Min Val, @Max Lim = false, @Min Lim = true, and

Output = Smp Val1.

Advertising