Omron SYSMAC C200H-ASC02 Operation Manual page 65

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

Advertisement

BASIC Language
ASIN Function
ATN Function
CDBL Function
CINT Function
COS Function
CSNG Function
FIX Function
Example:
A = ACOS (1)
Remarks:
The arc cosine is given in radian units in the range of 0 to pi.
Purpose:
To return the arc sine of the value given by the argument
Format:
ASIN(<x>)
<x> is a number in the range of -1 to 1.
Example:
A = ASIN (1)
Remarks:
The arc sine is given in radian units in the range of -pi/2 to pi/2.
Purpose:
To return the arc tangent of the value given by the argument
Format:
ATN(<x>)
<x> is a number in the range of -1 to 1.
Example:
A = ATN (1)
Remarks:
The arc tangent is given in radian units in the range of -pi/2 to
pi/2.
Purpose:
To convert a single-precision numeric value into
double-precision
Format:
CDBL(<x>)
Example:
CDBL (2/3)
Purpose:
To round off a numeric value at the decimal point and convert it
into an integer
Format:
CINT(<x>)
Example:
A = CINT(B#)
Purpose:
To return the cosine of the numeric value given by the argument
Format:
COS(<x>)
<x> is an expression in radian units.
Example:
A = COS(pi/2)
Purpose:
To convert a numeric value into a single-precision real number
Format:
CSNG(<x>)
Example:
B = CSNG(C#)
Purpose:
To return the integer part of the expression specified by the argu-
ment
Format:
FIX(<x>)
Example:
A = FIX(B/3)
Remarks:
If the value of the argument is negative, this function returns a
different value than the INT function returns.
Section 4-2
55

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents