EasyManua.ls Logo

Control Techniques UD70 - Page 93

Control Techniques UD70
154 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UD70
Issue code: 70nu2
Reference 7-17
LN
Syntax
result = LN (expression)
This mathematical function returns the natural logarithm of an expression.
Example
y = LN(1.5)
This returns the value 0.405465108
See also
EXP
instruction.
MAX
Syntax
result% = MAX (expression_A%, expression_B%)
result = MAX (expression
_A, expression_B)
This mathematical function returns the greater of two expressions.
Example
a% = 12
b% = MAX (a%, 100)
The value returned in b% b% is 100 because a%a% is less than 100. If a%a% is 105, the
value returned in b%b% would be the value of a%a% (105).
MIN
Syntax
result% = MIN (expression_A%, expression_B%)
result = MIN (expression
_A, expression_B)
This mathematical function returns the smaller of two functions
Example
a% = 12
b% = MIN(a%, 100)
The value returned in b%b% is 12 because a%a% is less than 100. If a%a% is 105, the
value returned in b%b% would be 100.

Table of Contents

Other manuals for Control Techniques UD70

Related product manuals