Omron SYSMAC C200H-ASC02 Operation Manual page 66

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language
INT Function
LOG Function
RND Function
SGN Function
SIN Function
TAN Function
56
Purpose:
To return the truncated integer of a numeric value
Format:
INT(<x>)
Example:
A = INT(B)
Remarks:
Returns the largest integer value less than or equal to the value specified by
the argument.
If the value of the argument is negative, this function returns a different value
than the FIX function returns.
Purpose:
To return the natural logarithm of the argument
Format:
LOG(<x>)
<x> must be greater than 0.
Example:
A = LOG(5)
Purpose:
To return a random number between 0 and 1.
Format:
RND [<x>]
Example:
A = RND(1)
Remarks:
If <x> is negative, a new random number is generated.
If <x> is omitted, or if it is positive, the next random number of the sequence
is generated.
If <x> is 0, the last generated random number is repeated.
The sequence can be changed by executing the RANDOM statement.
Purpose:
To return the sign of an argument
Format:
SIGN(<x>)
Example:
B = SGN(A)
Remarks:
If the value of <x> is positive, SGN returns 1.
If the value of <x> is negative, SGN returns -1.
If the the value of <x> is 0, SGN returns 0.
Purpose:
To return the sine of the numeric value given by the argument
Format:
SIN(<x>)
<x> is an expression in radian units.
Example:
A = SIN(pi)
Purpose:
To return the tangent of the numeric value given by the argument
Format:
TAN(<x>)
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents