0 - compute instructions, 0 compute instructions – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 95

Advertising
background image

5Ć1

5.0 Compute Instructions

Use compute instructions to perform math operations.
Choose from these compute instructions:
D Absolute Value (ABS)
D Add (ADD)
D Divide (DIV)
D Modulo (MOD)
D Multiply (MUL)
D Multiply Divide (MDV)
D Negate (NEG)
D Square Root (SQRT)
D Subtract (SUB)
The supported parameters are:
D simple integers and double integers
D integer and double integer constants
D elements of integer and double integer arrays
D Timer variables (name.TPreset and name.Elapsed)
D Counter variables (name.CPreset and name.Current)
See each input and output parameter description for each instruction for specific

information.
When integer and double integer variable types are mixed within a compute instruction,

integer values are converted to signed double integer values before the compute

operation is performed.

Advertising