Asin; Atan; Atan2; Atype - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Command, function and parameter description

6-3-23 ASIN

Type:
Syntax:
Description:
Arguments:
Example:

6-3-24 ATAN

Type:
Syntax:
Description:
Arguments:
Example:

6-3-25 ATAN2

Type:
Syntax:
Description:
Arguments:
Example:

6-3-26 ATYPE

Type:
Therefore, VR(0) will contain the value 2.
01010
AND
10010
00010
Example 2
IF MPOS AXIS(0) > 0 AND MPOS AXIS(1) > 0 THEN GOTO cycle1
Mathematical Function
ASIN( expression )
The ASIN function returns the arc-sine of the expression. The expression
value must be between –1 and 1. The result in radians will be between –PI/2
and PI/2. Input values outside the range will return zero.
expression
Any valid BASIC expression.
>> PRINT ASIN(-1)
-1.5708
Mathematical Function
ATAN( expression )
The ATAN function returns the arc-tangent of the expression. ATAN can have
any value. The result will be in radians and will be between -PI/2 and PI/2.
expression
Any valid BASIC expression.
>> PRINT ATAN(1)
0.7854
Mathematical Function
ATAN2( expression_1 , expression_2 )
The ATAN2 function returns the arc-tangent of the nonzero complex number
(expression_2, expression_1), which is equivalent to the angle between a
point with coordinate (expression_1, expression_2) and the x-axis. If
expression_2 >= 0, the result is equal to the value of ATAN (expression_1 /
expression_2). The result in radians will be between –PI and PI.
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
>> PRINT ATAN2(0,1)
0.0000
Axis parameter
Section 6-3
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents