![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429066.webp)
56
INT Function
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.
LOG Function
Purpose:
To return the natural logarithm of the argument
Format:
LOG(<x>)
<x> must be greater than 0.
Example:
A = LOG(5)
RND Function
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.
SGN Function
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.
SIN Function
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)
TAN Function
Purpose:
To return the tangent of the numeric value given by the argument
Format:
TAN(<x>)
BASIC Language
Section 4-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...