Chapter 3 Creating and Editing Screens
MIN (Get Minimum Value of a Range of Data)
Equation
Var1 = MIN (Var2, Var3)
Explanation
Get the minimum value from Var2 and Var3 and store the result in Var1.
Remark
The calculation result can be stored as signed or unsigned WORD and DWORD.
Var1 can be internal memory only. Var2 and Var3 can be internal memory or
constant.
Example
Get the maximum value from $0 and $1 and store the result in $2 (this is an
operation of unsigned 16-bit data).
If $0 = 2 and $1 = 10, $2 = 2 after executing MAX command.
Revision May, 2010 3-339