Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 118

Advertising
background image

5Ć24

5.7.2

Output Parameters for the Negate Instruction

This table lists the outputs for the NEG 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 output follows

the state of the EN input unless an error occurs.

Connect a contact, coil, or a Boolean input to

another instruction.

Out

This output contains the negative value of In.

D simple
D element of an array

D integer
D double integer
D timer (name.TPreset

and name.Elapsed)

D counter

(name.CPreset and

name.Current)

5.7.3

Example of a Negate Instruction

When switch1 is true, the instruction negates

the value of 20 and stores a value of -20 in the

variable result.

Advertising