Max function, Min function, Min( a , b, ... ) – Delta RMC151 User Manual
Page 374: Max( a , b, ... )
RMC70/150 and RMCTools User Manual
Return Value
The LOG_EVENT function does not return a value.
Remarks
The LOG_EVENT function can only be used in the Expression (113) command and user
functions. Multiple LOG_EVENT statements can be used in a single Expression (113)
command. Do not use with the assignment operator (:=). Use this function by itself only.
Other functions can be nested inside.
For calculation-intensive projects, logging of assignment expressions, immediate
commands, and the COPY function may be disabled in the Programming Properties. The
LOG_EVENT function provides a method of troubleshooting even when the
aforementioned logging is disabled.
Examples
LOG_EVENT(_Axis[0].ActPos);
LOG_EVENT(MyVariable, _Axis[0].ActPos);
LOG_EVENT(MyVariable, ABS(_Axis[0].ActPos), MyArray[0]);
LOG_EVENT(MyVariable + MyOtherVariable, _Axis[0].StatusBits, SIN(123));
5.14.2.27. MAX Function
MAX (a, b, ...)
Returns the largest (most positive) value of the input parameters (up to 10 operands).
Parameters
a, b, etc. (REAL or DINT)
The input values. All input parameters must be of the same type.
Return Value
Returns the same data type as the input parameters.
Examples
MAX(3, 5, 1) returns 5
MAX(-7.0, 5.1) returns 5.1
5.14.2.28. MIN Function
MIN (a, b, ...)
Returns the smallest (most negative) value of the input parameters (up to 10 operands).
Parameters
a, b, etc. (REAL or DINT)
All input parameters must be of the same type.
Return Value
Returns the same data type as the input parameters.
Examples
354
Delta Computer Systems, Inc.