beautypg.com

Yaskawa MP940 User Manual

Page 34

background image

2.3 Function Lists

2-11

2

Se-
quence
Com-
mands

TAN

TANGENT

TAN(MF - );
TAN(45.0);

Obtains the tangent of the real number
(deg), and returns a real value.

ASN

ARC SINE

ASN(MF - );
ASN(90.0);

Obtains the arc sine of the real number
(deg), and returns a real value.

ACS

ARC COSINE

ACS(MF - );
ACS(90.0);

Obtains the arc cosine of the real number
(deg), and returns a real value.

ATN

ARC TANGENT

ATN(MW - );
ATN(45);

Obtains the arc tangent of the integer or
real number (deg), and returns a real
value.

SQT

SQUARE ROOT

SQT(MW - );
SQT(100);

Obtains the square root of the integer or
real number, and returns a real value.

BIN

BCD-TO-BINARY BIN (MW - );

Converts BCD data to binary data.

BCD

BINARY-TO-BCD BCD (MW - );

Converts binary data to BCD data.

==

MATCH

IF MW - == MW - ;
WHILE MW - == MW - ;

Used in an IF or WHILE conditional
expression. If the left side and right side
match, the condition is “true."

<>

MISMATCH

IF MW - <> MW - ;
WHILE MW - <> MW - ;

Used in an IF or WHILE conditional
expression. If the left side and right side
do not match, the condition is “true."

>

GREATER THAN IF MW - > MW - ;

WHILE MW - > MW - ;

Used in an IF or WHILE conditional
expression. If the left side is greater than
the right side, the condition is “true."

<

LESS THAN

IF MW - < MW - ;
WHILE MW - < MW - ;

Used in an IF or WHILE conditional
expression. If the left side is less than the
right side, the condition is “true."

>=

GREATER THAN
OR EQUAL TO

IF MW - >= MW - ;
WHILE MW - >= MW - ;

Used in an IF or WHILE conditional
expression. If the left side is greater than
or equal to the right side, the condition is
“true."

<=

LESS THAN OR
EQUAL TO

IF MW - <= MW - ;
WHILE MW - <= MW - ;

Used in an IF or WHILE conditional
expression. If the left side is less than or
equal to the right side, the condition is
“true."

SFR

RIGHT SHIFT

SFR MB - N - W - ;

Shifts only the designated number of
word variables to the right.

SFL

LEFT SHIFT

SFL MB - N - W - ;

Shifts only the designated number of
word variables to the left.

BLK

BLOCK MOVE

BLK MW - MW - W - ;

Moves the block (constant designation)
beginning with the designated bit (word)
variable.

CLR

CLEAR

CLR MB - W - ;

Sets the number of constants specified in
the variable group beginning with the
designated bit (word) variable to OFF
(“0").

Classifi-

cation

Command

Name

Programming Format

Function/Meaning