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

Page 66

Advertising
background image

Function Block Library

4–4

1336 FORCE — 5.9 August 1995

ABS

BLOCK TYPE 1 decimal 1 hexadecimal

Absolute

ID =

Exec =

Out

NODE 0

Input

NODE 1

IN

DEFINITION

An absolute (+) output value Out derived from a 16-bit signed
(+ or –) 2’s complement input Input.

INPUT

Input — A signed Integer.

OUTPUT

Out — An unsigned integer that is the absolute value of Input.

FUNCTION

Out = |Input|.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

Input

Signed Integer

Yes

0

±

32767

Out

Signed Integer

Yes

0 to + 32767

EXAMPLES

EXAMPLE 1

EXAMPLE 2

Input

4

– 4

Out

4

4

Advertising