beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 98

background image

5Ć4

5.1.2

Output Parameters for the Absolute Value Instruction

This table lists the outputs for the ABS instruction and the variable type and data

type/range that each output supports.

Parameter

Description

Variable Type

Data Type/Range

ENO

Use this output as the input to another instruction

for easily chaining multiple instructions. This outĆ

put follows the state of the EN input unless an erĆ

ror occurs.

Connect a contact, coil, or a Boolean input to another

instruction.

Out

This output contains the absolute value of In.

D simple
D element of an array

D integer (0 to 32767)
D double integer

(0 to 2147483647)

D timer (name.TPreset

and name.Elapsed)

D counter (name.CPreset

and name.Current)

5.1.3

Example of an Absolute Value Instruction

This logic shows that when the variable pass is

true the instruction calculates the absolute

value of the variable measure and stores it in

the variable tolerance.