Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 287
Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) Chapter 6
Description: If you negate a negative value, the result is positive. If you negate a positive value,
the result is negative.
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions: None
Execution:
Relay Ladder
Function Block
Condition Action
Prescan The rung-condition-out is set to false.
Rung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true Destination = 0 − Source
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.
Condition Action
Prescan No action taken.
Instruction first scan No action taken.
Instruction first run No action taken.
EnableIn is cleared EnableOut is cleared.
EnableIn is set The instruction executes.
EnableOut is set.
Postscan No action taken.