4 arc sine (asn), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 247: 3) programming examples

Advertising
background image

8 Command Reference

8.9.4 Arc Sine (ASN)

8-140

8.9.4 Arc Sine (ASN)

(1) Overview

The ASN command uses the specified variable or constant as input and returns the arc sine (unit = degrees) in a
real number register.

(2) Format

* Example: Calculates the arc sine of the input value (0.5): ASN (0.5) = 30.0 degrees.

The ASN command can use only real number data. If bits, integers, or double integers are specified, an error
will result at compilation.

(3) Programming Examples

ASN command programming examples are shown below.

Motion Programs

Sequence Programs

Applicable

Applicable

MF00100 = ASN (0.5);

A B

Item Description

Unit

Usable Registers

A

Angle

output

Degree

(

°)

• All real number type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers

B

Sine value

input

• All real number type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers
• Constants

MF00202=ASN(MF00200);

(30.0)

(0.5)

IMPORTANT

EXAMPLE

Type

Motion Programs/

Sequence Programs

Ladder Programs

B

W

L

F

DF00202=ASN(DF00200);

Advertising