beautypg.com

7 negate (neg) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 116

background image

5Ć22

5.6.3

Example of a Multiply Divide Instruction

This logic shows that when the variable

parts.made is true the instruction multiplies the

constant 200 by the variable boxes. The

resulting double precision product is then

divided by the variable box_stock. The single

precision result of the calculation is stored in

the variable boxes_needed.

5.7

Negate (NEG)

Use this instruction to change the sign of a variable or constant. While EN is true, the

instruction changes the sign of the value of In. The result is stored in Out.